Execute go imports to format files

Signed-off-by: Zhengyi Lai <zheng1@kubesphere.io>
This commit is contained in:
Zhengyi Lai
2021-06-27 20:37:51 +08:00
parent d8cef2bcda
commit e26f70d0ca
95 changed files with 98 additions and 98 deletions

View File

@@ -24,7 +24,7 @@ import (
"strings"
"time"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"github.com/pkg/errors"
prommodel "github.com/prometheus/common/model"
"github.com/prometheus/prometheus/pkg/timestamp"

View File

@@ -20,7 +20,7 @@ import (
"strconv"
"time"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"kubesphere.io/kubesphere/pkg/simple/client/auditing"
)

View File

@@ -20,7 +20,7 @@ import (
"strconv"
"time"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"kubesphere.io/kubesphere/pkg/simple/client/events"
)

View File

@@ -20,7 +20,7 @@ import (
"strconv"
"time"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"kubesphere.io/kubesphere/pkg/simple/client/logging"
)

View File

@@ -3,7 +3,7 @@ package v1alpha1
import (
"time"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"kubesphere.io/kubesphere/pkg/apiserver/query"
model "kubesphere.io/kubesphere/pkg/models/monitoring"

View File

@@ -21,7 +21,7 @@ import (
"runtime"
"strings"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/klog"
)

View File

@@ -23,7 +23,7 @@ package v1alpha1
import (
auditregistrationv1alpha1 "k8s.io/api/auditregistration/v1alpha1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)

View File

@@ -21,7 +21,7 @@ limitations under the License.
package v1alpha1
import (
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)

View File

@@ -21,7 +21,7 @@ limitations under the License.
package v1alpha2
import (
"k8s.io/api/rbac/v1"
v1 "k8s.io/api/rbac/v1"
"k8s.io/apimachinery/pkg/runtime"
)

View File

@@ -21,7 +21,7 @@ limitations under the License.
package v1alpha1
import (
"k8s.io/api/networking/v1"
v1 "k8s.io/api/networking/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)

View File

@@ -21,7 +21,7 @@ limitations under the License.
package v2beta1
import (
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)

View File

@@ -21,7 +21,7 @@ limitations under the License.
package v1alpha2
import (
"k8s.io/apimachinery/pkg/apis/meta/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)

View File

@@ -21,7 +21,7 @@ limitations under the License.
package v1beta1
import (
"k8s.io/api/rbac/v1"
v1 "k8s.io/api/rbac/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)

View File

@@ -30,7 +30,7 @@ import (
"strconv"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/runtime/schema"
urlruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/sets"

View File

@@ -21,7 +21,7 @@ import (
"testing"
"golang.org/x/oauth2"
"gopkg.in/yaml.v3"
yaml "gopkg.in/yaml.v3"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/identityprovider"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/oauth"

View File

@@ -30,7 +30,7 @@ import (
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
"golang.org/x/oauth2"
"gopkg.in/yaml.v3"
yaml "gopkg.in/yaml.v3"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/identityprovider"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/oauth"

View File

@@ -22,7 +22,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"gopkg.in/yaml.v3"
yaml "gopkg.in/yaml.v3"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/oauth"
)

View File

@@ -27,8 +27,8 @@ import (
"kubesphere.io/kubesphere/pkg/utils/sliceutil"
"github.com/coreos/go-oidc"
"github.com/form3tech-oss/jwt-go"
oidc "github.com/coreos/go-oidc"
jwt "github.com/dgrijalva/jwt-go"
"github.com/mitchellh/mapstructure"
"golang.org/x/oauth2"

View File

@@ -32,11 +32,11 @@ import (
"testing"
"time"
"github.com/form3tech-oss/jwt-go"
jwt "github.com/dgrijalva/jwt-go"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gexec"
"gopkg.in/square/go-jose.v2"
jose "gopkg.in/square/go-jose.v2"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/identityprovider"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/oauth"

View File

@@ -22,7 +22,7 @@ import (
"time"
"github.com/google/go-cmp/cmp"
"gopkg.in/yaml.v3"
yaml "gopkg.in/yaml.v3"
)
func TestDefaultAuthOptions(t *testing.T) {

View File

@@ -20,7 +20,7 @@ import (
"fmt"
"time"
"github.com/form3tech-oss/jwt-go"
jwt "github.com/dgrijalva/jwt-go"
"k8s.io/apiserver/pkg/authentication/user"
"k8s.io/klog"
)

View File

@@ -24,7 +24,7 @@ import (
"time"
"github.com/google/go-cmp/cmp"
"gopkg.in/yaml.v2"
yaml "gopkg.in/yaml.v2"
networkv1alpha1 "kubesphere.io/kubesphere/pkg/apis/network/v1alpha1"
"kubesphere.io/kubesphere/pkg/apiserver/authentication/oauth"

View File

@@ -19,7 +19,7 @@ package query
import (
"strconv"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/labels"
"kubesphere.io/kubesphere/pkg/utils/sliceutil"

View File

@@ -21,7 +21,7 @@ import (
"net/http"
"testing"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"github.com/google/go-cmp/cmp"
)

View File

@@ -17,7 +17,7 @@ limitations under the License.
package runtime
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/runtime/schema"
)

View File

@@ -24,7 +24,7 @@ import (
"strings"
"time"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@@ -23,7 +23,7 @@ import (
"reflect"
"time"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@@ -23,7 +23,7 @@ import (
"reflect"
"time"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/runtime/schema"
"kubesphere.io/kubesphere/pkg/kapis/generic"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v2alpha1
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
promresourcesclient "github.com/prometheus-operator/prometheus-operator/pkg/client/versioned"
"k8s.io/klog"

View File

@@ -19,7 +19,7 @@ package v2alpha1
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
promresourcesclient "github.com/prometheus-operator/prometheus-operator/pkg/client/versioned"
"k8s.io/apimachinery/pkg/runtime/schema"

View File

@@ -28,8 +28,8 @@ import (
"strings"
"time"
"github.com/emicklei/go-restful"
"gopkg.in/yaml.v2"
restful "github.com/emicklei/go-restful"
yaml "gopkg.in/yaml.v2"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"

View File

@@ -19,7 +19,7 @@ package v1alpha1
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
"k8s.io/apimachinery/pkg/runtime/schema"
k8sinformers "k8s.io/client-go/informers"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1alpha2
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/runtime/schema"
kubesphereconfig "kubesphere.io/kubesphere/pkg/apiserver/config"

View File

@@ -23,7 +23,7 @@ import (
"net/http"
"strings"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apiserver/pkg/authentication/user"
log "k8s.io/klog"
"k8s.io/klog/v2"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1alpha2
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
"kubesphere.io/kubesphere/pkg/api"

View File

@@ -22,7 +22,7 @@ import (
"net/url"
"strings"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/proxy"

View File

@@ -21,7 +21,7 @@ import (
"net/http"
"code.cloudfoundry.org/bytefmt"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
"kubesphere.io/kubesphere/pkg/api"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1alpha3
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/client-go/informers"

View File

@@ -21,7 +21,7 @@ package v1alpha3
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime/schema"

View File

@@ -22,7 +22,7 @@ import (
"net/url"
"strings"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/proxy"
"k8s.io/klog"

View File

@@ -21,7 +21,7 @@ import (
"net/url"
"testing"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"github.com/google/go-cmp/cmp"
)

View File

@@ -25,7 +25,7 @@ import (
"kubesphere.io/kubesphere/pkg/apiserver/request"
"kubesphere.io/kubesphere/pkg/models/auth"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
rbacv1 "k8s.io/api/rbac/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/klog"

View File

@@ -21,7 +21,7 @@ import (
"kubesphere.io/kubesphere/pkg/apiserver/authorization/authorizer"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
rbacv1 "k8s.io/api/rbac/v1"
v1 "k8s.io/api/rbac/v1"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/runtime/schema"
"kubesphere.io/kubesphere/pkg/kapis/generic"

View File

@@ -19,7 +19,7 @@
package v1alpha1
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/client-go/kubernetes"
openpitrixoptions "kubesphere.io/kubesphere/pkg/simple/client/openpitrix"

View File

@@ -24,7 +24,7 @@ import (
"kubesphere.io/kubesphere/pkg/client/clientset/versioned"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes"

View File

@@ -23,6 +23,7 @@ import (
"regexp"
"strings"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
openpitrixoptions "kubesphere.io/kubesphere/pkg/simple/client/openpitrix"
@@ -31,7 +32,6 @@ import (
"kubesphere.io/kubesphere/pkg/client/clientset/versioned"
"kubesphere.io/kubesphere/pkg/models/openpitrix"
"github.com/emicklei/go-restful"
"k8s.io/client-go/kubernetes"
"kubesphere.io/kubesphere/pkg/api"

View File

@@ -29,7 +29,7 @@ import (
"github.com/jszwec/csvutil"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"github.com/pkg/errors"
corev1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@@ -7,7 +7,7 @@ import (
"kubesphere.io/kubesphere/pkg/models/openpitrix"
"kubesphere.io/kubesphere/pkg/server/params"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/klog"

View File

@@ -24,7 +24,7 @@ import (
"kubesphere.io/kubesphere/pkg/client/clientset/versioned"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes"

View File

@@ -22,7 +22,7 @@ import (
"net/http"
"net/url"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
"kubesphere.io/kubesphere/pkg/api"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/runtime/schema"
"kubesphere.io/kubesphere/pkg/kapis/generic"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v2beta1
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/client-go/kubernetes"
"k8s.io/klog"

View File

@@ -21,7 +21,7 @@ package v2beta1
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
openapi "github.com/emicklei/go-restful-openapi"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes"

View File

@@ -23,7 +23,7 @@ import (
"kubesphere.io/kubesphere/pkg/server/errors"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apiserver/pkg/authentication/user"

View File

@@ -19,7 +19,7 @@ package oauth
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
"kubesphere.io/kubesphere/pkg/api"

View File

@@ -20,7 +20,7 @@ import (
"fmt"
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
k8serr "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/client-go/kubernetes"

View File

@@ -19,7 +19,7 @@ package v1alpha2
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes"

View File

@@ -22,7 +22,7 @@ import (
"strconv"
"strings"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
v1 "k8s.io/api/core/v1"
k8serr "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/client-go/kubernetes"

View File

@@ -19,7 +19,7 @@ package v1alpha2
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"

View File

@@ -19,7 +19,7 @@ package v1alpha3
import (
"strings"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
"kubesphere.io/kubesphere/pkg/api"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1alpha3
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/cache"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package install
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
urlruntime "k8s.io/apimachinery/pkg/util/runtime"
"kubesphere.io/kubesphere/pkg/apiserver/runtime"

View File

@@ -21,7 +21,7 @@ import (
"io/ioutil"
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
"kubesphere.io/kubesphere/pkg/api"

View File

@@ -19,7 +19,7 @@ package v1alpha2
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
"k8s.io/apimachinery/pkg/runtime/schema"

View File

@@ -20,7 +20,7 @@ import (
"encoding/json"
"fmt"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

View File

@@ -3,7 +3,7 @@ package v1alpha2
import (
"fmt"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
"strconv"

View File

@@ -23,7 +23,7 @@ import (
"kubesphere.io/kubesphere/pkg/models/metering"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime/schema"

View File

@@ -24,7 +24,7 @@ import (
"kubesphere.io/kubesphere/pkg/apiserver/authorization/authorizer"
requestctx "kubesphere.io/kubesphere/pkg/apiserver/request"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"github.com/gorilla/websocket"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package v1alpha2
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
restfulspec "github.com/emicklei/go-restful-openapi"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/kubernetes"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package version
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/discovery"
"k8s.io/klog"

View File

@@ -19,7 +19,7 @@ package devops
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
"kubesphere.io/kubesphere/pkg/server/errors"

View File

@@ -26,7 +26,7 @@ import (
"code.cloudfoundry.org/bytefmt"
"github.com/aws/aws-sdk-go/aws/awserr"
awsS3 "github.com/aws/aws-sdk-go/service/s3"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/util/retry"
"k8s.io/klog"

View File

@@ -19,7 +19,7 @@ package git
import (
"fmt"
"gopkg.in/src-d/go-git.v4"
git "gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/config"
"gopkg.in/src-d/go-git.v4/plumbing/transport/http"
"gopkg.in/src-d/go-git.v4/storage/memory"

View File

@@ -15,6 +15,7 @@ package openpitrix
import (
"bytes"
"github.com/go-openapi/strfmt"
"k8s.io/klog"

View File

@@ -22,7 +22,7 @@ import (
"strings"
"github.com/docker/distribution/reference"
"github.com/opencontainers/go-digest"
digest "github.com/opencontainers/go-digest"
log "k8s.io/klog"
)

View File

@@ -19,7 +19,7 @@ package registries
import (
"time"
"github.com/opencontainers/go-digest"
digest "github.com/opencontainers/go-digest"
)
// ImageBlobInfo describes the info of an image.

View File

@@ -22,7 +22,7 @@ import (
"net/http"
"github.com/docker/distribution/manifest/schema2"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
log "k8s.io/klog"
)

View File

@@ -25,7 +25,7 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
corev1 "k8s.io/api/core/v1"
"k8s.io/client-go/informers"
"k8s.io/klog"

View File

@@ -20,7 +20,7 @@ import (
"fmt"
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
)
type Error struct {

View File

@@ -22,7 +22,7 @@ import (
"strconv"
"strings"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
)
const (

View File

@@ -22,9 +22,8 @@ import (
"reflect"
"testing"
restful "github.com/emicklei/go-restful"
"gotest.tools/assert"
"github.com/emicklei/go-restful"
)
func TestParseConditions(t *testing.T) {

View File

@@ -23,7 +23,7 @@ import (
"net/url"
"strings"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
v1 "k8s.io/api/core/v1"
devopsv1alpha3 "kubesphere.io/kubesphere/pkg/apis/devops/v1alpha3"

View File

@@ -22,7 +22,7 @@ import (
"strconv"
"time"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"kubesphere.io/kubesphere/pkg/simple/client/devops"
)

View File

@@ -19,7 +19,7 @@ import (
"net/http"
"strconv"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
v1 "k8s.io/api/core/v1"
"k8s.io/klog"

View File

@@ -17,7 +17,7 @@ limitations under the License.
package jenkins
import (
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
"kubesphere.io/kubesphere/pkg/simple/client/devops"

View File

@@ -20,7 +20,7 @@ import (
"fmt"
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"k8s.io/klog"
devopsv1alpha3 "kubesphere.io/kubesphere/pkg/apis/devops/v1alpha3"

View File

@@ -29,7 +29,7 @@ import (
"path/filepath"
"strings"
"github.com/form3tech-oss/jwt-go"
jwt "github.com/dgrijalva/jwt-go"
authtoken "kubesphere.io/kubesphere/pkg/apiserver/authentication/token"
"kubesphere.io/kubesphere/pkg/simple/client/devops"

View File

@@ -24,7 +24,7 @@ import (
"io/ioutil"
"time"
"github.com/elastic/go-elasticsearch/v5"
elasticsearch "github.com/elastic/go-elasticsearch/v5"
"github.com/elastic/go-elasticsearch/v5/esapi"
)

View File

@@ -24,7 +24,7 @@ import (
"io/ioutil"
"time"
"github.com/elastic/go-elasticsearch/v6"
elasticsearch "github.com/elastic/go-elasticsearch/v6"
"github.com/elastic/go-elasticsearch/v6/esapi"
)

View File

@@ -24,7 +24,7 @@ import (
"io/ioutil"
"time"
"github.com/elastic/go-elasticsearch/v7"
elasticsearch "github.com/elastic/go-elasticsearch/v7"
"github.com/elastic/go-elasticsearch/v7/esapi"
)

View File

@@ -22,7 +22,7 @@ import (
"github.com/golang/example/stringutil"
"github.com/sony/sonyflake"
"github.com/speps/go-hashids"
hashids "github.com/speps/go-hashids"
"kubesphere.io/kubesphere/pkg/utils/stringutils"
)

View File

@@ -20,7 +20,7 @@ package metrics
import (
"net/http"
"github.com/emicklei/go-restful"
restful "github.com/emicklei/go-restful"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
apimachineryversion "k8s.io/apimachinery/pkg/version"