Preparing report...

Report for tkestack.io/tke

A+    Excellent!    Found 512 issues across 2194 files

Tweet

gofmt97%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo94%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • /tkestack.io/tke/pkg/registry/harbor/client/api_preheat.go
    • Line 1353: warning: cyclomatic complexity 30 of function (*PreheatApiService).ListInstances() is high (> 15) (gocyclo)
    • Line 1193: warning: cyclomatic complexity 30 of function (*PreheatApiService).ListExecutions() is high (> 15) (gocyclo)
    • Line 1952: warning: cyclomatic complexity 30 of function (*PreheatApiService).ListTasks() is high (> 15) (gocyclo)
    • Line 1512: warning: cyclomatic complexity 28 of function (*PreheatApiService).ListPolicies() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 26 of function (*PreheatApiService).CreateInstance() is high (> 15) (gocyclo)
    • Line 2486: warning: cyclomatic complexity 24 of function (*PreheatApiService).UpdateInstance() is high (> 15) (gocyclo)
    • Line 596: warning: cyclomatic complexity 24 of function (*PreheatApiService).GetExecution() is high (> 15) (gocyclo)
    • Line 1799: warning: cyclomatic complexity 24 of function (*PreheatApiService).ListProvidersUnderProject() is high (> 15) (gocyclo)
    • Line 1038: warning: cyclomatic complexity 24 of function (*PreheatApiService).GetPreheatLog() is high (> 15) (gocyclo)
    • Line 1655: warning: cyclomatic complexity 24 of function (*PreheatApiService).ListProviders() is high (> 15) (gocyclo)
    • Line 889: warning: cyclomatic complexity 24 of function (*PreheatApiService).GetPolicy() is high (> 15) (gocyclo)
    • Line 743: warning: cyclomatic complexity 24 of function (*PreheatApiService).GetInstance() is high (> 15) (gocyclo)
    • Line 329: warning: cyclomatic complexity 22 of function (*PreheatApiService).DeleteInstance() is high (> 15) (gocyclo)
    • Line 2635: warning: cyclomatic complexity 22 of function (*PreheatApiService).UpdatePolicy() is high (> 15) (gocyclo)
    • Line 2110: warning: cyclomatic complexity 20 of function (*PreheatApiService).ManualPreheat() is high (> 15) (gocyclo)
    • Line 2353: warning: cyclomatic complexity 20 of function (*PreheatApiService).StopExecution() is high (> 15) (gocyclo)
    • Line 199: warning: cyclomatic complexity 20 of function (*PreheatApiService).CreatePolicy() is high (> 15) (gocyclo)
    • Line 465: warning: cyclomatic complexity 20 of function (*PreheatApiService).DeletePolicy() is high (> 15) (gocyclo)
    • Line 2241: warning: cyclomatic complexity 16 of function (*PreheatApiService).PingInstances() is high (> 15) (gocyclo)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_artifact.go
    • Line 1082: warning: cyclomatic complexity 40 of function (*ArtifactApiService).ListArtifacts() is high (> 15) (gocyclo)
    • Line 897: warning: cyclomatic complexity 38 of function (*ArtifactApiService).GetArtifact() is high (> 15) (gocyclo)
    • Line 1264: warning: cyclomatic complexity 34 of function (*ArtifactApiService).ListTags() is high (> 15) (gocyclo)
    • Line 733: warning: cyclomatic complexity 24 of function (*ArtifactApiService).GetAddition() is high (> 15) (gocyclo)
    • Line 332: warning: cyclomatic complexity 24 of function (*ArtifactApiService).CreateTag() is high (> 15) (gocyclo)
    • Line 189: warning: cyclomatic complexity 22 of function (*ArtifactApiService).CopyArtifact() is high (> 15) (gocyclo)
    • Line 45: warning: cyclomatic complexity 22 of function (*ArtifactApiService).AddLabel() is high (> 15) (gocyclo)
    • Line 1429: warning: cyclomatic complexity 20 of function (*ArtifactApiService).RemoveLabel() is high (> 15) (gocyclo)
    • Line 486: warning: cyclomatic complexity 18 of function (*ArtifactApiService).DeleteArtifact() is high (> 15) (gocyclo)
    • Line 609: warning: cyclomatic complexity 18 of function (*ArtifactApiService).DeleteTag() is high (> 15) (gocyclo)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_repository.go
    • Line 325: warning: cyclomatic complexity 30 of function (*RepositoryApiService).ListRepositories() is high (> 15) (gocyclo)
    • Line 173: warning: cyclomatic complexity 24 of function (*RepositoryApiService).GetRepository() is high (> 15) (gocyclo)
    • Line 481: warning: cyclomatic complexity 20 of function (*RepositoryApiService).UpdateRepository() is high (> 15) (gocyclo)
    • Line 43: warning: cyclomatic complexity 20 of function (*RepositoryApiService).DeleteRepository() is high (> 15) (gocyclo)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_project.go
    • Line 931: warning: cyclomatic complexity 28 of function (*ProjectApiService).ListProjects() is high (> 15) (gocyclo)
    • Line 295: warning: cyclomatic complexity 26 of function (*ProjectApiService).GetLogs() is high (> 15) (gocyclo)
    • Line 679: warning: cyclomatic complexity 24 of function (*ProjectApiService).GetProjectSummary() is high (> 15) (gocyclo)
    • Line 544: warning: cyclomatic complexity 22 of function (*ProjectApiService).GetProjectDeletable() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 20 of function (*ProjectApiService).DeleteProject() is high (> 15) (gocyclo)
    • Line 1061: warning: cyclomatic complexity 20 of function (*ProjectApiService).UpdateProject() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 18 of function (*ProjectApiService).CreateProject() is high (> 15) (gocyclo)
    • Line 429: warning: cyclomatic complexity 18 of function (*ProjectApiService).GetProject() is high (> 15) (gocyclo)
    • /tkestack.io/tke/pkg/monitor/storage/es/client/query.go
    • Line 206: warning: cyclomatic complexity 26 of function aggsDSL() is high (> 15) (gocyclo)
    • Line 60: warning: cyclomatic complexity 23 of function aggsDSLMonitor() is high (> 15) (gocyclo)
    • Line 347: warning: cyclomatic complexity 17 of function boolDSLMonitor() is high (> 15) (gocyclo)
    • Line 449: warning: cyclomatic complexity 17 of function boolDSL() is high (> 15) (gocyclo)
    • /tkestack.io/tke/cmd/tke-installer/app/installer/installer.go
    • Line 174: warning: cyclomatic complexity 23 of function (*TKE).initSteps() is high (> 15) (gocyclo)
    • Line 781: warning: cyclomatic complexity 20 of function (*TKE).validateConfig() is high (> 15) (gocyclo)
    • Line 2360: warning: cyclomatic complexity 19 of function (*TKE).registerAPI() is high (> 15) (gocyclo)
    • Line 1371: warning: cyclomatic complexity 17 of function (*TKE).prepareCertificates() is high (> 15) (gocyclo)

golint80%

Golint is a linter for Go source code.

    • /tkestack.io/tke/api/auth/v1/types.go
    • Line 58: warning: exported type FinalizerName should have comment or be unexported (golint)
    • Line 158: warning: exported const GroupActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 485: warning: exported const PolicyCustom should have comment (or a comment on this block) or be unexported (golint)
    • Line 493: warning: exported const PolicyPlatform should have comment (or a comment on this block) or be unexported (golint)
    • Line 564: warning: exported const BindingActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 565: warning: comment on exported const BindingTerminating should be of the form "BindingTerminating ..." (golint)
    • Line 764: warning: exported const RoleActive should have comment (or a comment on this block) or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/phases/kubeadm/kubeadm.go
    • Line 75: warning: exported function Install should have comment or be unexported (golint)
    • Line 99: warning: exported function Init should have comment or be unexported (golint)
    • Line 126: warning: exported function Join should have comment or be unexported (golint)
    • Line 163: warning: exported function Reset should have comment or be unexported (golint)
    • Line 180: warning: exported function RenewCerts should have comment or be unexported (golint)
    • Line 251: warning: exported function RestartControlPlane should have comment or be unexported (golint)
    • Line 263: warning: exported function DockerFilterForControlPlane should have comment or be unexported (golint)
    • Line 267: warning: exported function RestartContainerByFilter should have comment or be unexported (golint)
    • Line 292: warning: exported type NodeRole should have comment or be unexported (golint)
    • Line 295: warning: exported const NodeRoleMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 299: warning: exported type UpgradeOption should have comment or be unexported (golint)
    • Line 611: warning: comment on exported function MarkNextUpgradeWorkerNode should be of the form "MarkNextUpgradeWorkerNode ..." (golint)
    • Line 646: warning: exported function RemoveUpgradeLabel should have comment or be unexported (golint)
    • Line 655: warning: exported function AddNeedUpgradeLabel should have comment or be unexported (golint)
    • /tkestack.io/tke/api/application/types.go
    • Line 226: warning: comment on exported const AppPhaseChartFetched should be of the form "AppPhaseChartFetched ..." (golint)
    • Line 229: warning: comment on exported const AppPhaseChartFetchFailed should be of the form "AppPhaseChartFetchFailed ..." (golint)
    • Line 233: warning: comment on exported const AppPhaseInstalling should be of the form "AppPhaseInstalling ..." (golint)
    • Line 235: warning: comment on exported const AppPhaseUpgrading should be of the form "AppPhaseUpgrading ..." (golint)
    • Line 237: warning: comment on exported const AppPhaseSucceeded should be of the form "AppPhaseSucceeded ..." (golint)
    • Line 240: warning: comment on exported const AppPhaseFailed should be of the form "AppPhaseFailed ..." (golint)
    • Line 244: warning: comment on exported const AppPhaseRollingBack should be of the form "AppPhaseRollingBack ..." (golint)
    • Line 246: warning: comment on exported const AppPhaseRolledBack should be of the form "AppPhaseRolledBack ..." (golint)
    • Line 248: warning: comment on exported const AppPhaseRollbackFailed should be of the form "AppPhaseRollbackFailed ..." (golint)
    • Line 253: warning: comment on exported const AppPhaseSyncFailed should be of the form "AppPhaseSyncFailed ..." (golint)
    • /tkestack.io/tke/pkg/util/validation/validation.go
    • Line 34: warning: exported const DNSName should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: exported function IsValidDNSName should have comment or be unexported (golint)
    • Line 91: warning: exported function IsValidIP should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/monitor/util/cache/cache.go
    • Line 47: warning: exported type Component should have comment or be unexported (golint)
    • Line 50: warning: exported const AllNamespaces should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: exported var TAppResource should have comment or be unexported (golint)
    • Line 91: warning: exported type Cacher should have comment or be unexported (golint)
    • Line 338: warning: exported function NewCacher should have comment or be unexported (golint)
    • Line 413: warning: exported function IsScheduled should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/machine/create.go
    • Line 57: warning: exported method Provider.EnsureCopyFiles should have comment or be unexported (golint)
    • Line 84: warning: exported method Provider.EnsurePreInstallHook should have comment or be unexported (golint)
    • Line 97: warning: exported method Provider.EnsurePostInstallHook should have comment or be unexported (golint)
    • Line 110: warning: exported method Provider.EnsureClean should have comment or be unexported (golint)
    • Line 124: warning: exported method Provider.EnsurePreflight should have comment or be unexported (golint)
    • Line 138: warning: exported method Provider.EnsureRegistryHosts should have comment or be unexported (golint)
    • Line 165: warning: exported method Provider.EnsureKernelModule should have comment or be unexported (golint)
    • Line 191: warning: exported method Provider.EnsureSysctl should have comment or be unexported (golint)
    • Line 222: warning: exported method Provider.EnsureDisableSwap should have comment or be unexported (golint)
    • Line 236: warning: exported method Provider.EnsureDisableOffloading should have comment or be unexported (golint)
    • Line 250: warning: exported method Provider.EnsureManifestDir should have comment or be unexported (golint)
    • Line 263: warning: exported method Provider.EnsureKubeconfig should have comment or be unexported (golint)
    • Line 288: warning: exported method Provider.EnsureNvidiaDriver should have comment or be unexported (golint)
    • Line 301: warning: exported method Provider.EnsureNvidiaContainerRuntime should have comment or be unexported (golint)
    • Line 314: warning: exported method Provider.EnsureDocker should have comment or be unexported (golint)
    • Line 341: warning: exported method Provider.EnsureKubelet should have comment or be unexported (golint)
    • Line 355: warning: exported method Provider.EnsureCNIPlugins should have comment or be unexported (golint)
    • Line 369: warning: exported method Provider.EnsureConntrackTools should have comment or be unexported (golint)
    • Line 383: warning: exported method Provider.EnsureKubeadm should have comment or be unexported (golint)
    • Line 397: warning: exported method Provider.EnsureJoinPhasePreflight should have comment or be unexported (golint)
    • Line 411: warning: exported method Provider.EnsureJoinPhaseKubeletStart should have comment or be unexported (golint)
    • Line 424: warning: exported method Provider.EnsureMarkNode should have comment or be unexported (golint)
    • Line 441: warning: exported method Provider.EnsureNodeReady should have comment or be unexported (golint)
    • Line 463: warning: exported method Provider.EnsureInitAPIServerHost should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/cluster/create.go
    • Line 81: warning: exported method Provider.EnsureCopyFiles should have comment or be unexported (golint)
    • Line 114: warning: exported method Provider.EnsurePreClusterInstallHook should have comment or be unexported (golint)
    • Line 121: warning: exported method Provider.EnsurePreInstallHook should have comment or be unexported (golint)
    • Line 128: warning: exported method Provider.EnsurePostInstallHook should have comment or be unexported (golint)
    • Line 133: warning: exported method Provider.EnsurePostClusterInstallHook should have comment or be unexported (golint)
    • Line 138: warning: exported method Provider.EnsurePreflight should have comment or be unexported (golint)
    • Line 157: warning: exported method Provider.EnsureRegistryHosts should have comment or be unexported (golint)
    • Line 188: warning: exported method Provider.EnsureKernelModule should have comment or be unexported (golint)
    • Line 220: warning: exported method Provider.EnsureSysctl should have comment or be unexported (golint)
    • Line 254: warning: exported method Provider.EnsureDisableSwap should have comment or be unexported (golint)
    • Line 273: warning: exported method Provider.EnsureDisableOffloading should have comment or be unexported (golint)
    • Line 289: warning: comment on exported method Provider.EnsureClusterComplete should be of the form "EnsureClusterComplete ..." (golint)
    • Line 439: warning: exported method Provider.EnsureKubeconfig should have comment or be unexported (golint)
    • Line 461: warning: exported method Provider.EnsureNvidiaDriver should have comment or be unexported (golint)
    • Line 483: warning: exported method Provider.EnsureNvidiaContainerRuntime should have comment or be unexported (golint)
    • Line 505: warning: exported method Provider.EnsureDocker should have comment or be unexported (golint)
    • Line 536: warning: exported method Provider.EnsureKubernetesImages should have comment or be unexported (golint)
    • Line 555: warning: exported method Provider.EnsureConntrackTools should have comment or be unexported (golint)
    • Line 574: warning: exported method Provider.EnsureKubeadm should have comment or be unexported (golint)
    • Line 641: warning: exported method Provider.EnsureThirdPartyHAInit should have comment or be unexported (golint)
    • Line 683: warning: exported method Provider.EnsureAuthzWebhook should have comment or be unexported (golint)
    • Line 719: warning: exported method Provider.EnsurePrepareForControlplane should have comment or be unexported (golint)
    • Line 788: warning: exported method Provider.EnsureKubeadmInitPhaseKubeletStart should have comment or be unexported (golint)
    • Line 806: warning: exported method Provider.EnsureKubeadmInitPhaseCerts should have comment or be unexported (golint)
    • Line 817: warning: exported method Provider.EnsureKubeadmInitPhaseKubeConfig should have comment or be unexported (golint)
    • Line 828: warning: exported method Provider.EnsureKubeadmInitPhaseControlPlane should have comment or be unexported (golint)
    • Line 839: warning: exported method Provider.EnsureKubeadmInitPhaseETCD should have comment or be unexported (golint)
    • Line 850: warning: exported method Provider.EnsureKubeadmInitPhaseUploadConfig should have comment or be unexported (golint)
    • Line 861: warning: exported method Provider.EnsureKubeadmInitPhaseUploadCerts should have comment or be unexported (golint)
    • Line 869: warning: exported method Provider.EnsureKubeadmInitPhaseBootstrapToken should have comment or be unexported (golint)
    • Line 880: warning: exported method Provider.EnsureKubeadmInitPhaseAddon should have comment or be unexported (golint)
    • Line 891: warning: exported method Provider.EnsureGalaxy should have comment or be unexported (golint)
    • Line 923: warning: exported method Provider.EnsureJoinPhasePreflight should have comment or be unexported (golint)
    • Line 943: warning: exported method Provider.EnsureJoinPhaseControlPlanePrepare should have comment or be unexported (golint)
    • Line 962: warning: exported method Provider.EnsureJoinPhaseKubeletStart should have comment or be unexported (golint)
    • Line 981: warning: exported method Provider.EnsureJoinPhaseControlPlaneJoinETCD should have comment or be unexported (golint)
    • Line 1000: warning: exported method Provider.EnsureJoinPhaseControlPlaneJoinUpdateStatus should have comment or be unexported (golint)
    • Line 1019: warning: exported method Provider.EnsureStoreCredential should have comment or be unexported (golint)
    • Line 1091: warning: exported method Provider.EnsurePatchAnnotation should have comment or be unexported (golint)
    • Line 1136: warning: exported method Provider.EnsureKubelet should have comment or be unexported (golint)
    • Line 1155: warning: exported method Provider.EnsureCNIPlugins should have comment or be unexported (golint)
    • Line 1175: warning: exported method Provider.EnsureKubeadmInitPhaseWaitControlPlane should have comment or be unexported (golint)
    • Line 1197: warning: exported method Provider.EnsureMarkControlPlane should have comment or be unexported (golint)
    • Line 1235: warning: exported method Provider.EnsureNvidiaDevicePlugin should have comment or be unexported (golint)
    • Line 1259: warning: exported method Provider.EnsureGPUManager should have comment or be unexported (golint)
    • Line 1292: warning: exported method Provider.EnsureMetricsServer should have comment or be unexported (golint)
    • Line 1324: warning: exported method Provider.EnsureCilium should have comment or be unexported (golint)
    • Line 1367: warning: exported method Provider.EnsureCSIOperator should have comment or be unexported (golint)
    • Line 1398: warning: exported method Provider.EnsureKeepalivedWithLBOption should have comment or be unexported (golint)
    • Line 1439: warning: exported method Provider.EnsureThirdPartyHA should have comment or be unexported (golint)
    • Line 1469: warning: exported method Provider.EnsureCleanup should have comment or be unexported (golint)
    • Line 1484: warning: exported method Provider.EnsureCreateClusterMark should have comment or be unexported (golint)
    • Line 1513: warning: exported method Provider.EnsureInitAPIServerHost should have comment or be unexported (golint)
    • Line 1518: warning: exported method Provider.EnsureModifyAPIServerHost should have comment or be unexported (golint)
    • /tkestack.io/tke/api/auth/v1/types_swagger_doc_generated.go
    • Line 32: warning: don't use underscores in Go names; var map_APIKey should be mapAPIKey (golint)
    • Line 37: warning: exported method APIKey.SwaggerDoc should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; var map_APIKeyList should be mapAPIKeyList (golint)
    • Line 46: warning: exported method APIKeyList.SwaggerDoc should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; var map_APIKeyReq should be mapAPIKeyReq (golint)
    • Line 56: warning: exported method APIKeyReq.SwaggerDoc should have comment or be unexported (golint)
    • Line 60: warning: don't use underscores in Go names; var map_APIKeyReqPassword should be mapAPIKeyReqPassword (golint)
    • Line 69: warning: exported method APIKeyReqPassword.SwaggerDoc should have comment or be unexported (golint)
    • Line 73: warning: don't use underscores in Go names; var map_APIKeySpec should be mapAPIKeySpec (golint)
    • Line 82: warning: exported method APIKeySpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 86: warning: don't use underscores in Go names; var map_APIKeyStatus should be mapAPIKeyStatus (golint)
    • Line 92: warning: exported method APIKeyStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 96: warning: don't use underscores in Go names; var map_APISigningKey should be mapAPISigningKey (golint)
    • Line 100: warning: exported method APISigningKey.SwaggerDoc should have comment or be unexported (golint)
    • Line 104: warning: don't use underscores in Go names; var map_APISigningKeyList should be mapAPISigningKeyList (golint)
    • Line 109: warning: exported method APISigningKeyList.SwaggerDoc should have comment or be unexported (golint)
    • Line 113: warning: don't use underscores in Go names; var map_Action should be mapAction (golint)
    • Line 119: warning: exported method Action.SwaggerDoc should have comment or be unexported (golint)
    • Line 123: warning: don't use underscores in Go names; var map_AllowedStatus should be mapAllowedStatus (golint)
    • Line 133: warning: exported method AllowedStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 137: warning: don't use underscores in Go names; var map_Binding should be mapBinding (golint)
    • Line 143: warning: exported method Binding.SwaggerDoc should have comment or be unexported (golint)
    • Line 147: warning: don't use underscores in Go names; var map_Category should be mapCategory (golint)
    • Line 151: warning: exported method Category.SwaggerDoc should have comment or be unexported (golint)
    • Line 155: warning: don't use underscores in Go names; var map_CategoryList should be mapCategoryList (golint)
    • Line 160: warning: exported method CategoryList.SwaggerDoc should have comment or be unexported (golint)
    • Line 164: warning: don't use underscores in Go names; var map_CategorySpec should be mapCategorySpec (golint)
    • Line 170: warning: exported method CategorySpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 174: warning: don't use underscores in Go names; var map_Client should be mapClient (golint)
    • Line 179: warning: exported method Client.SwaggerDoc should have comment or be unexported (golint)
    • Line 183: warning: don't use underscores in Go names; var map_ClientList should be mapClientList (golint)
    • Line 188: warning: exported method ClientList.SwaggerDoc should have comment or be unexported (golint)
    • Line 192: warning: don't use underscores in Go names; var map_ClientSpec should be mapClientSpec (golint)
    • Line 198: warning: exported method ClientSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 202: warning: don't use underscores in Go names; var map_ConfigMap should be mapConfigMap (golint)
    • Line 208: warning: exported method ConfigMap.SwaggerDoc should have comment or be unexported (golint)
    • Line 212: warning: don't use underscores in Go names; var map_ConfigMapList should be mapConfigMapList (golint)
    • Line 217: warning: exported method ConfigMapList.SwaggerDoc should have comment or be unexported (golint)
    • Line 221: warning: don't use underscores in Go names; var map_CustomPolicyBinding should be mapCustomPolicyBinding (golint)
    • Line 225: warning: exported method CustomPolicyBinding.SwaggerDoc should have comment or be unexported (golint)
    • Line 229: warning: don't use underscores in Go names; var map_CustomPolicyBindingList should be mapCustomPolicyBindingList (golint)
    • Line 234: warning: exported method CustomPolicyBindingList.SwaggerDoc should have comment or be unexported (golint)
    • Line 238: warning: don't use underscores in Go names; var map_CustomPolicyBindingSpec should be mapCustomPolicyBindingSpec (golint)
    • Line 242: warning: exported method CustomPolicyBindingSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 246: warning: don't use underscores in Go names; var map_CustomPolicyBindingStatus should be mapCustomPolicyBindingStatus (golint)
    • Line 250: warning: exported method CustomPolicyBindingStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 254: warning: don't use underscores in Go names; var map_Group should be mapGroup (golint)
    • Line 259: warning: exported method Group.SwaggerDoc should have comment or be unexported (golint)
    • Line 263: warning: don't use underscores in Go names; var map_GroupList should be mapGroupList (golint)
    • Line 268: warning: exported method GroupList.SwaggerDoc should have comment or be unexported (golint)
    • Line 272: warning: don't use underscores in Go names; var map_GroupSpec should be mapGroupSpec (golint)
    • Line 276: warning: exported method GroupSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 280: warning: don't use underscores in Go names; var map_GroupStatus should be mapGroupStatus (golint)
    • Line 285: warning: exported method GroupStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 289: warning: don't use underscores in Go names; var map_IdentityProvider should be mapIdentityProvider (golint)
    • Line 294: warning: exported method IdentityProvider.SwaggerDoc should have comment or be unexported (golint)
    • Line 298: warning: don't use underscores in Go names; var map_IdentityProviderList should be mapIdentityProviderList (golint)
    • Line 303: warning: exported method IdentityProviderList.SwaggerDoc should have comment or be unexported (golint)
    • Line 307: warning: don't use underscores in Go names; var map_IdentityProviderSpec should be mapIdentityProviderSpec (golint)
    • Line 315: warning: exported method IdentityProviderSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 319: warning: don't use underscores in Go names; var map_LocalGroup should be mapLocalGroup (golint)
    • Line 324: warning: exported method LocalGroup.SwaggerDoc should have comment or be unexported (golint)
    • Line 328: warning: don't use underscores in Go names; var map_LocalGroupList should be mapLocalGroupList (golint)
    • Line 333: warning: exported method LocalGroupList.SwaggerDoc should have comment or be unexported (golint)
    • Line 337: warning: don't use underscores in Go names; var map_LocalGroupSpec should be mapLocalGroupSpec (golint)
    • Line 341: warning: exported method LocalGroupSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 345: warning: don't use underscores in Go names; var map_LocalGroupStatus should be mapLocalGroupStatus (golint)
    • Line 350: warning: exported method LocalGroupStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 354: warning: don't use underscores in Go names; var map_LocalIdentity should be mapLocalIdentity (golint)
    • Line 359: warning: exported method LocalIdentity.SwaggerDoc should have comment or be unexported (golint)
    • Line 363: warning: don't use underscores in Go names; var map_LocalIdentityList should be mapLocalIdentityList (golint)
    • Line 368: warning: exported method LocalIdentityList.SwaggerDoc should have comment or be unexported (golint)
    • Line 372: warning: don't use underscores in Go names; var map_LocalIdentitySpec should be mapLocalIdentitySpec (golint)
    • Line 376: warning: exported method LocalIdentitySpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 380: warning: don't use underscores in Go names; var map_LocalIdentityStatus should be mapLocalIdentityStatus (golint)
    • Line 385: warning: exported method LocalIdentityStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 389: warning: don't use underscores in Go names; var map_NonResourceAttributes should be mapNonResourceAttributes (golint)
    • Line 395: warning: exported method NonResourceAttributes.SwaggerDoc should have comment or be unexported (golint)
    • Line 399: warning: don't use underscores in Go names; var map_PasswordReq should be mapPasswordReq (golint)
    • Line 403: warning: exported method PasswordReq.SwaggerDoc should have comment or be unexported (golint)
    • Line 407: warning: don't use underscores in Go names; var map_Policy should be mapPolicy (golint)
    • Line 412: warning: exported method Policy.SwaggerDoc should have comment or be unexported (golint)
    • Line 416: warning: don't use underscores in Go names; var map_PolicyBinding should be mapPolicyBinding (golint)
    • Line 421: warning: exported method PolicyBinding.SwaggerDoc should have comment or be unexported (golint)
    • Line 425: warning: don't use underscores in Go names; var map_PolicyList should be mapPolicyList (golint)
    • Line 430: warning: exported method PolicyList.SwaggerDoc should have comment or be unexported (golint)
    • Line 434: warning: don't use underscores in Go names; var map_PolicySpec should be mapPolicySpec (golint)
    • Line 438: warning: exported method PolicySpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 442: warning: don't use underscores in Go names; var map_PolicyStatus should be mapPolicyStatus (golint)
    • Line 448: warning: exported method PolicyStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 452: warning: don't use underscores in Go names; var map_Project should be mapProject (golint)
    • Line 456: warning: exported method Project.SwaggerDoc should have comment or be unexported (golint)
    • Line 460: warning: don't use underscores in Go names; var map_ProjectBelongs should be mapProjectBelongs (golint)
    • Line 464: warning: exported method ProjectBelongs.SwaggerDoc should have comment or be unexported (golint)
    • Line 468: warning: don't use underscores in Go names; var map_ProjectList should be mapProjectList (golint)
    • Line 473: warning: exported method ProjectList.SwaggerDoc should have comment or be unexported (golint)
    • Line 477: warning: don't use underscores in Go names; var map_ProjectPolicyBinding should be mapProjectPolicyBinding (golint)
    • Line 481: warning: exported method ProjectPolicyBinding.SwaggerDoc should have comment or be unexported (golint)
    • Line 485: warning: don't use underscores in Go names; var map_ProjectPolicyBindingList should be mapProjectPolicyBindingList (golint)
    • Line 490: warning: exported method ProjectPolicyBindingList.SwaggerDoc should have comment or be unexported (golint)
    • Line 494: warning: don't use underscores in Go names; var map_ProjectPolicyBindingRequest should be mapProjectPolicyBindingRequest (golint)
    • Line 499: warning: exported method ProjectPolicyBindingRequest.SwaggerDoc should have comment or be unexported (golint)
    • Line 503: warning: don't use underscores in Go names; var map_ProjectPolicyBindingSpec should be mapProjectPolicyBindingSpec (golint)
    • Line 508: warning: exported method ProjectPolicyBindingSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 512: warning: don't use underscores in Go names; var map_ProjectPolicyBindingStatus should be mapProjectPolicyBindingStatus (golint)
    • Line 516: warning: exported method ProjectPolicyBindingStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 520: warning: don't use underscores in Go names; var map_ResourceAttributes should be mapResourceAttributes (golint)
    • Line 531: warning: exported method ResourceAttributes.SwaggerDoc should have comment or be unexported (golint)
    • Line 535: warning: don't use underscores in Go names; var map_Role should be mapRole (golint)
    • Line 540: warning: exported method Role.SwaggerDoc should have comment or be unexported (golint)
    • Line 544: warning: don't use underscores in Go names; var map_RoleList should be mapRoleList (golint)
    • Line 549: warning: exported method RoleList.SwaggerDoc should have comment or be unexported (golint)
    • Line 553: warning: don't use underscores in Go names; var map_RoleSpec should be mapRoleSpec (golint)
    • Line 558: warning: exported method RoleSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 562: warning: don't use underscores in Go names; var map_RoleStatus should be mapRoleStatus (golint)
    • Line 568: warning: exported method RoleStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 572: warning: don't use underscores in Go names; var map_Rule should be mapRule (golint)
    • Line 577: warning: exported method Rule.SwaggerDoc should have comment or be unexported (golint)
    • Line 581: warning: don't use underscores in Go names; var map_RuleList should be mapRuleList (golint)
    • Line 586: warning: exported method RuleList.SwaggerDoc should have comment or be unexported (golint)
    • Line 590: warning: don't use underscores in Go names; var map_RuleSpec should be mapRuleSpec (golint)
    • Line 594: warning: exported method RuleSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 598: warning: don't use underscores in Go names; var map_Statement should be mapStatement (golint)
    • Line 603: warning: exported method Statement.SwaggerDoc should have comment or be unexported (golint)
    • Line 607: warning: don't use underscores in Go names; var map_Subject should be mapSubject (golint)
    • Line 611: warning: exported method Subject.SwaggerDoc should have comment or be unexported (golint)
    • Line 615: warning: don't use underscores in Go names; var map_SubjectAccessReview should be mapSubjectAccessReview (golint)
    • Line 621: warning: exported method SubjectAccessReview.SwaggerDoc should have comment or be unexported (golint)
    • Line 625: warning: don't use underscores in Go names; var map_SubjectAccessReviewSpec should be mapSubjectAccessReviewSpec (golint)
    • Line 636: warning: exported method SubjectAccessReviewSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 640: warning: don't use underscores in Go names; var map_SubjectAccessReviewStatus should be mapSubjectAccessReviewStatus (golint)
    • Line 649: warning: exported method SubjectAccessReviewStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 653: warning: don't use underscores in Go names; var map_User should be mapUser (golint)
    • Line 658: warning: exported method User.SwaggerDoc should have comment or be unexported (golint)
    • Line 662: warning: don't use underscores in Go names; var map_UserList should be mapUserList (golint)
    • Line 667: warning: exported method UserList.SwaggerDoc should have comment or be unexported (golint)
    • Line 671: warning: don't use underscores in Go names; var map_UserSpec should be mapUserSpec (golint)
    • Line 676: warning: exported method UserSpec.SwaggerDoc should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/apiserver/conversion.go
    • Line 154: warning: don't use underscores in Go names; func autoConvert_url_Values_To_v1_PodExecOptions should be autoConvertURLValuesToV1PodExecOptions (golint)
    • Line 201: warning: don't use underscores in Go names; func Convert_url_Values_To_v1_PodExecOptions should be ConvertURLValuesToV1PodExecOptions (golint)
    • Line 205: warning: don't use underscores in Go names; func autoConvert_url_Values_To_v1_PodLogOptions should be autoConvertURLValuesToV1PodLogOptions (golint)
    • Line 275: warning: don't use underscores in Go names; func Convert_url_Values_To_v1_PodLogOptions should be ConvertURLValuesToV1PodLogOptions (golint)
    • /tkestack.io/tke/pkg/registry/harbor/harbor.go
    • Line 43: warning: exported const AuthPrefix should have comment or be unexported (golint)
    • Line 44: warning: exported const ChartAPIPrefix should have comment or be unexported (golint)
    • Line 45: warning: exported const ChartPrefix should have comment or be unexported (golint)
    • Line 46: warning: exported const CompatibleChartPrefix should have comment or be unexported (golint)
    • Line 48: warning: exported type Options should have comment or be unexported (golint)
    • Line 54: warning: comment on exported function IgnoreAuthPathPrefixes should be of the form "IgnoreAuthPathPrefixes ..." (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/harbor_model_internal_chart_api_error.go
    • Line 1: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 9: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 11: warning: comment on exported type HarborInternalChartApiError should be of the form "HarborInternalChartApiError ..." (with optional leading article) (golint)
    • Line 14: warning: don't use underscores in Go names; struct field Error_ should be Error (golint)
    • /tkestack.io/tke/pkg/mesh/util/proxy/options.go
    • Line 29: warning: exported type Opt should have comment or be unexported (golint)
    • Line 31: warning: exported function WithPatch should have comment or be unexported (golint)
    • Line 37: warning: exported function WithHeader should have comment or be unexported (golint)
    • Line 43: warning: exported function WithRequestMethod should have comment or be unexported (golint)
    • Line 49: warning: exported function WithModifyResponse should have comment or be unexported (golint)
    • Line 55: warning: exported function WithTargetURL should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/monitor/apis/config/types.go
    • Line 34: warning: exported type Storage should have comment or be unexported (golint)
    • Line 43: warning: exported type ThanosStorage should have comment or be unexported (golint)
    • Line 47: warning: exported type ThanosStorageServer should have comment or be unexported (golint)
    • Line 51: warning: exported type InfluxDBStorage should have comment or be unexported (golint)
    • Line 55: warning: exported type InfluxDBStorageServer should have comment or be unexported (golint)
    • Line 65: warning: exported type ElasticSearchStorage should have comment or be unexported (golint)
    • Line 69: warning: exported type ElasticSearchStorageServer should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/registry/chartgroup/storage/rest.go
    • Line 55: warning: exported type ChartGroupStorage should have comment or be unexported (golint)
    • Line 93: warning: exported method REST.StorageVersion should have comment or be unexported (golint)
    • Line 102: warning: exported method REST.NamespaceScoped should have comment or be unexported (golint)
    • Line 106: warning: exported method REST.New should have comment or be unexported (golint)
    • Line 110: warning: exported method REST.NewList should have comment or be unexported (golint)
    • Line 114: warning: exported method REST.Get should have comment or be unexported (golint)
    • Line 118: warning: exported method REST.List should have comment or be unexported (golint)
    • Line 122: warning: exported method REST.Watch should have comment or be unexported (golint)
    • Line 126: warning: exported method REST.Export should have comment or be unexported (golint)
    • Line 130: warning: exported method REST.Create should have comment or be unexported (golint)
    • Line 163: warning: exported method REST.Delete should have comment or be unexported (golint)
    • Line 186: warning: exported method REST.Update should have comment or be unexported (golint)
    • Line 225: warning: exported method REST.ConvertToTable should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/logagent/util/cluster.go
    • Line 70: warning: comment on exported function APIServerLocationByCluster should be of the form "APIServerLocationByCluster ..." (golint)
    • Line 110: warning: comment on exported function GetClusterPodIP should be of the form "GetClusterPodIP ..." (golint)
    • Line 125: warning: comment on exported function BuildTransportV1 should be of the form "BuildTransportV1 ..." (golint)
    • /tkestack.io/tke/pkg/monitor/storage/metric.go
    • Line 34: warning: exported type MetricStorage should have comment or be unexported (golint)
    • Line 38: warning: exported type ProjectStorage should have comment or be unexported (golint)
    • Line 42: warning: exported function NewMetricStorage should have comment or be unexported (golint)
    • Line 53: warning: exported function NewProjectStorage should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/business/controller/namespace/cluster/cluster.go
    • Line 36: warning: exported function CalculateNamespaceUsed should have comment or be unexported (golint)
    • Line 55: warning: exported function CheckNamespaceOnCluster should have comment or be unexported (golint)
    • Line 88: warning: exported function EnsureNamespaceOnCluster should have comment or be unexported (golint)
    • Line 133: warning: exported function EnsureResourceQuotaOnCluster should have comment or be unexported (golint)
    • Line 170: warning: exported function DetachFromClusterNamespace should have comment or be unexported (golint)
    • Line 188: warning: exported function DeleteNamespaceFromCluster should have comment or be unexported (golint)
    • /tkestack.io/tke/cmd/tke-upgrade/app/options/options.go
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 19: warning: exported type TKE should have comment or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported method TKE.Init should have comment or be unexported (golint)
    • Line 78: warning: exported method TKE.GetFullName should have comment or be unexported (golint)
    • Line 82: warning: exported method TKE.TKEGateway should have comment or be unexported (golint)
    • Line 105: warning: exported method TKE.ETCD should have comment or be unexported (golint)
    • Line 112: warning: exported method TKE.TKEAuthAPI should have comment or be unexported (golint)
    • Line 124: warning: exported method TKE.TKEAuthController should have comment or be unexported (golint)
    • Line 134: warning: exported method TKE.TKEPlatformAPI should have comment or be unexported (golint)
    • Line 148: warning: exported method TKE.TKEPlatformController should have comment or be unexported (golint)
    • Line 188: warning: exported method TKE.TKEBusinessAPI should have comment or be unexported (golint)
    • Line 206: warning: exported method TKE.TKEBusinessController should have comment or be unexported (golint)
    • Line 216: warning: exported method TKE.InfluxDB should have comment or be unexported (golint)
    • Line 224: warning: exported method TKE.TKEMonitorAPI should have comment or be unexported (golint)
    • Line 258: warning: exported method TKE.TKEMonitorController should have comment or be unexported (golint)
    • Line 286: warning: exported method TKE.TKENotifyAPI should have comment or be unexported (golint)
    • Line 300: warning: exported method TKE.TKENotifyController should have comment or be unexported (golint)
    • Line 308: warning: exported method TKE.TKERegistryAPI should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/harbor_model_unauthorized_chart_api_error.go
    • Line 1: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 9: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 11: warning: comment on exported type HarborUnauthorizedChartApiError should be of the form "HarborUnauthorizedChartApiError ..." (with optional leading article) (golint)
    • Line 14: warning: don't use underscores in Go names; struct field Error_ should be Error (golint)
    • /tkestack.io/tke/cmd/tke-monitor-controller/app/options/feature.go
    • Line 37: warning: exported type FeatureOptions should have comment or be unexported (golint)
    • Line 42: warning: exported function NewFeatureOptions should have comment or be unexported (golint)
    • Line 46: warning: exported method FeatureOptions.AddFlags should have comment or be unexported (golint)
    • Line 55: warning: exported method FeatureOptions.ApplyFlags should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/client.go
    • Line 1: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 9: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 153: warning: comment on exported method APIClient.ChangeBasePath should be of the form "ChangeBasePath ..." (golint)
    • /tkestack.io/tke/pkg/logagent/registry/logagent/storage/filecontent.go
    • Line 40: warning: comment on exported type FileContentREST should be of the form "FileContentREST ..." (with optional leading article) (golint)
    • Line 51: warning: exported method FileContentREST.New should have comment or be unexported (golint)
    • Line 55: warning: exported type FileContentProxy should have comment or be unexported (golint)
    • Line 61: warning: exported method FileContentProxy.GetReaderCloser should have comment or be unexported (golint)
    • Line 84: warning: exported method FileContentREST.Create should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_scan.go
    • Line 2: warning: package comment should be of the form "Package client ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 27: warning: exported type ScanApiService should have comment or be unexported (golint)
    • Line 41: warning: exported type ScanApiGetReportLogOpts should have comment or be unexported (golint)
    • Line 45: warning: exported method ScanApiService.GetReportLog should have comment or be unexported (golint)
    • Line 181: warning: exported type ScanApiScanArtifactOpts should have comment or be unexported (golint)
    • Line 185: warning: exported method ScanApiService.ScanArtifact should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/controller/addon/ipam/images/images.go
    • Line 34: warning: exported type Components should have comment or be unexported (golint)
    • Line 38: warning: exported method Components.Get should have comment or be unexported (golint)
    • Line 55: warning: exported function List should have comment or be unexported (golint)
    • Line 73: warning: exported function Validate should have comment or be unexported (golint)
    • Line 81: warning: exported function Get should have comment or be unexported (golint)
    • /tkestack.io/tke/api/platform/cluster.go
    • Line 32: warning: exported method ClusterMachine.SSH should have comment or be unexported (golint)
    • Line 46: warning: exported method Cluster.Host should have comment or be unexported (golint)
    • Line 74: warning: exported method Cluster.AuthzWebhookEnabled should have comment or be unexported (golint)
    • /tkestack.io/tke/api/registry/v1/defaults.go
    • Line 29: warning: exported function SetDefaults_ConfigMap should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; func SetDefaults_ConfigMap should be SetDefaultsConfigMap (golint)
    • Line 35: warning: exported function SetDefaults_NamespaceSpec should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; func SetDefaults_NamespaceSpec should be SetDefaultsNamespaceSpec (golint)
    • Line 41: warning: exported function SetDefaults_RepositorySpec should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; func SetDefaults_RepositorySpec should be SetDefaultsRepositorySpec (golint)
    • Line 47: warning: exported function SetDefaults_RepositoryStatus should have comment or be unexported (golint)
    • Line 47: warning: don't use underscores in Go names; func SetDefaults_RepositoryStatus should be SetDefaultsRepositoryStatus (golint)
    • Line 53: warning: exported function SetDefaults_ChartGroupSpec should have comment or be unexported (golint)
    • Line 53: warning: don't use underscores in Go names; func SetDefaults_ChartGroupSpec should be SetDefaultsChartGroupSpec (golint)
    • Line 73: warning: exported function SetDefaults_ChartGroupStatus should have comment or be unexported (golint)
    • Line 73: warning: don't use underscores in Go names; func SetDefaults_ChartGroupStatus should be SetDefaultsChartGroupStatus (golint)
    • Line 79: warning: exported function SetDefaults_ChartSpec should have comment or be unexported (golint)
    • Line 79: warning: don't use underscores in Go names; func SetDefaults_ChartSpec should be SetDefaultsChartSpec (golint)
    • Line 90: warning: exported function SetDefaults_ChartStatus should have comment or be unexported (golint)
    • Line 90: warning: don't use underscores in Go names; func SetDefaults_ChartStatus should be SetDefaultsChartStatus (golint)
    • Line 99: warning: exported function SetDefaults_ChartInfoSpec should have comment or be unexported (golint)
    • Line 99: warning: don't use underscores in Go names; func SetDefaults_ChartInfoSpec should be SetDefaultsChartInfoSpec (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/cluster/update.go
    • Line 49: warning: exported method Provider.EnsureRenewCerts should have comment or be unexported (golint)
    • Line 87: warning: exported method Provider.EnsureAPIServerCert should have comment or be unexported (golint)
    • Line 145: warning: exported method Provider.EnsurePreClusterUpgradeHook should have comment or be unexported (golint)
    • Line 149: warning: exported method Provider.EnsureUpgradeCoreDNS should have comment or be unexported (golint)
    • Line 196: warning: exported method Provider.EnsureUpgradeControlPlaneNode should have comment or be unexported (golint)
    • Line 259: warning: exported method Provider.EnsurePostClusterUpgradeHook should have comment or be unexported (golint)
    • /tkestack.io/tke/api/business/types.go
    • Line 26: warning: exported const CertOptionValidDays should have comment or be unexported (golint)
    • Line 152: warning: comment on exported type NamespaceCertOptions should be of the form "NamespaceCertOptions ..." (with optional leading article) (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/harbor_model_chart_api_error.go
    • Line 1: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 9: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 11: warning: comment on exported type HarborChartApiError should be of the form "HarborChartApiError ..." (with optional leading article) (golint)
    • Line 14: warning: don't use underscores in Go names; struct field Error_ should be Error (golint)
    • /tkestack.io/tke/cmd/tke-notify-api/app/options/feature.go
    • Line 33: warning: exported type FeatureOptions should have comment or be unexported (golint)
    • Line 37: warning: exported function NewFeatureOptions should have comment or be unexported (golint)
    • Line 41: warning: exported method FeatureOptions.AddFlags should have comment or be unexported (golint)
    • Line 47: warning: exported method FeatureOptions.ApplyFlags should have comment or be unexported (golint)
    • /tkestack.io/tke/api/application/v1/types.go
    • Line 226: warning: comment on exported const AppPhaseChartFetched should be of the form "AppPhaseChartFetched ..." (golint)
    • Line 229: warning: comment on exported const AppPhaseChartFetchFailed should be of the form "AppPhaseChartFetchFailed ..." (golint)
    • Line 233: warning: comment on exported const AppPhaseInstalling should be of the form "AppPhaseInstalling ..." (golint)
    • Line 235: warning: comment on exported const AppPhaseUpgrading should be of the form "AppPhaseUpgrading ..." (golint)
    • Line 237: warning: comment on exported const AppPhaseSucceeded should be of the form "AppPhaseSucceeded ..." (golint)
    • Line 240: warning: comment on exported const AppPhaseFailed should be of the form "AppPhaseFailed ..." (golint)
    • Line 244: warning: comment on exported const AppPhaseRollingBack should be of the form "AppPhaseRollingBack ..." (golint)
    • Line 246: warning: comment on exported const AppPhaseRolledBack should be of the form "AppPhaseRolledBack ..." (golint)
    • Line 248: warning: comment on exported const AppPhaseRollbackFailed should be of the form "AppPhaseRollbackFailed ..." (golint)
    • Line 253: warning: comment on exported const AppPhaseSyncFailed should be of the form "AppPhaseSyncFailed ..." (golint)
    • /tkestack.io/tke/test/e2e/certs/certs.go
    • Line 49: warning: exported type TkeCert should have comment or be unexported (golint)
    • Line 53: warning: exported method TkeCert.InitTmpDir should have comment or be unexported (golint)
    • Line 59: warning: exported method TkeCert.ClearTmpDir should have comment or be unexported (golint)
    • Line 64: warning: exported method TkeCert.CreateCertMap should have comment or be unexported (golint)
    • Line 130: warning: exported method TkeCert.WriteKubeConfig should have comment or be unexported (golint)
    • Line 159: warning: exported method TkeCert.GetKubeConfig should have comment or be unexported (golint)
    • Line 168: warning: exported method TkeCert.GetKubeConfigFile should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/apis/kubelet/config/v1beta1/types.go
    • Line 760: warning: exported type KubeletAuthorizationMode should have comment or be unexported (golint)
    • Line 769: warning: exported type KubeletAuthorization should have comment or be unexported (golint)
    • Line 781: warning: exported type KubeletWebhookAuthorization should have comment or be unexported (golint)
    • Line 790: warning: exported type KubeletAuthentication should have comment or be unexported (golint)
    • Line 802: warning: exported type KubeletX509Authentication should have comment or be unexported (golint)
    • Line 810: warning: exported type KubeletWebhookAuthentication should have comment or be unexported (golint)
    • Line 819: warning: exported type KubeletAnonymousAuthentication should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/monitor/util/types.go
    • Line 82: warning: exported type ClusterClientSets should have comment or be unexported (golint)
    • Line 83: warning: exported type MetricServerClientSets should have comment or be unexported (golint)
    • Line 84: warning: exported type DynamicClientSet should have comment or be unexported (golint)
    • Line 85: warning: exported type ClusterSet should have comment or be unexported (golint)
    • Line 86: warning: exported type ClusterCredentialSet should have comment or be unexported (golint)
    • Line 87: warning: exported type ClusterStatisticSet should have comment or be unexported (golint)
    • Line 89: warning: exported type WorkloadCounter should have comment or be unexported (golint)
    • Line 96: warning: exported method WorkloadCounter.Total should have comment or be unexported (golint)
    • Line 100: warning: exported type ResourceCounter should have comment or be unexported (golint)
    • Line 135: warning: exported type ComponentHealth should have comment or be unexported (golint)
    • Line 141: warning: exported method ComponentHealth.AllHealthy should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/util/array.go
    • Line 87: warning: comment on exported function In2DStringSlice should be of the form "In2DStringSlice ..." (golint)
    • Line 102: warning: comment on exported function Diff2DStringSlice should be of the form "Diff2DStringSlice ..." (golint)
    • /tkestack.io/tke/pkg/util/supervisor/systemd.go
    • Line 30: warning: exported const DefaultSystemdUnitFilePath should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type SystemdSupervisor should have comment or be unexported (golint)
    • Line 38: warning: exported method SystemdSupervisor.Deploy should have comment or be unexported (golint)
    • Line 57: warning: exported method SystemdSupervisor.Start should have comment or be unexported (golint)
    • /tkestack.io/tke/test/util/env/env.go
    • Line 45: warning: exported const VERSION should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported function ImageVersion should have comment or be unexported (golint)
    • Line 63: warning: exported function Kubeconfig should have comment or be unexported (golint)
    • Line 67: warning: exported function SecretID should have comment or be unexported (golint)
    • Line 71: warning: exported function SecretKey should have comment or be unexported (golint)
    • Line 75: warning: exported function Region should have comment or be unexported (golint)
    • Line 79: warning: exported function Password should have comment or be unexported (golint)
    • Line 83: warning: exported function CreateInstancesParam should have comment or be unexported (golint)
    • Line 87: warning: exported function InstanceTypes should have comment or be unexported (golint)
    • Line 96: warning: exported function NeedDelete should have comment or be unexported (golint)
    • Line 100: warning: exported function ProviderResImageVersion should have comment or be unexported (golint)
    • Line 108: warning: exported function K8sVersion should have comment or be unexported (golint)
    • /tkestack.io/tke/api/platform/v1/machine.go
    • Line 28: warning: exported method MachineSpec.SSH should have comment or be unexported (golint)
    • Line 42: warning: exported method Machine.GetCondition should have comment or be unexported (golint)
    • Line 52: warning: exported method Machine.SetCondition should have comment or be unexported (golint)
    • /tkestack.io/tke/api/logagent/v1/types.go
    • Line 111: warning: comment on exported type LogFileTree should be of the form "LogFileTree ..." (with optional leading article) (golint)
    • Line 117: warning: exported type LogFileTreeSpec should have comment or be unexported (golint)
    • Line 126: warning: comment on exported type LogFileContent should be of the form "LogFileContent ..." (with optional leading article) (golint)
    • Line 132: warning: exported type LogFileContentSpec should have comment or be unexported (golint)
    • Line 155: warning: comment on exported type LogEsDetection should be of the form "LogEsDetection ..." (with optional leading article) (golint)
    • /tkestack.io/tke/pkg/registry/util/coredns.go
    • Line 35: warning: exported const DNS should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type CoreFileBlock should have comment or be unexported (golint)
    • Line 49: warning: exported type CoreFile should have comment or be unexported (golint)
    • Line 50: warning: exported type CoreFileHosts should have comment or be unexported (golint)
    • Line 52: warning: exported type CoreDNS should have comment or be unexported (golint)
    • Line 58: warning: exported function NewCoreDNS should have comment or be unexported (golint)
    • Line 68: warning: exported method CoreDNS.LoadCoreFile should have comment or be unexported (golint)
    • Line 79: warning: exported method CoreDNS.StoreCoreFile should have comment or be unexported (golint)
    • Line 87: warning: exported method CoreDNS.ParseCoreFile should have comment or be unexported (golint)
    • Line 107: warning: exported method CoreDNS.ParseBlockDNS should have comment or be unexported (golint)
    • Line 124: warning: exported method CoreDNS.ParseSectionRewrite should have comment or be unexported (golint)
    • /tkestack.io/tke/api/auth/types.go
    • Line 77: warning: comment on exported const LocalGroupFinalize should be of the form "LocalGroupFinalize ..." (golint)
    • Line 160: warning: exported const GroupActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 392: warning: exported type CategorySpec should have comment or be unexported (golint)
    • Line 432: warning: exported const ProjectOwnerPolicyID should have comment (or a comment on this block) or be unexported (golint)
    • Line 477: warning: exported const PolicyCustom should have comment (or a comment on this block) or be unexported (golint)
    • Line 485: warning: exported const PolicyPlatform should have comment (or a comment on this block) or be unexported (golint)
    • Line 570: warning: exported const BindingActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 571: warning: comment on exported const BindingTerminating should be of the form "BindingTerminating ..." (golint)
    • Line 633: warning: exported const DefaultRuleModel should have comment (or a comment on this block) or be unexported (golint)
    • Line 738: warning: exported const RoleActive should have comment (or a comment on this block) or be unexported (golint)
    • /tkestack.io/tke/pkg/logagent/util/registry.go
    • Line 26: warning: exported function Init should have comment or be unexported (golint)
    • Line 31: warning: exported function GetRegistryDomain should have comment or be unexported (golint)
    • Line 35: warning: exported function GetRegistryNamespace should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/external/tcmesh/client.go
    • Line 34: warning: exported const TcmAPIPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported var TcmAuthHeader should have comment or be unexported (golint)
    • Line 49: warning: exported type Client should have comment or be unexported (golint)
    • Line 54: warning: exported function BuildClientConfig should have comment or be unexported (golint)
    • Line 60: warning: exported function NewForConfig should have comment or be unexported (golint)
    • Line 75: warning: exported method Client.RESTClient should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.Cache should have comment or be unexported (golint)
    • Line 86: warning: exported method Client.ReloadMeshes should have comment or be unexported (golint)
    • Line 90: warning: exported method Client.GetMeshes should have comment or be unexported (golint)
    • Line 107: warning: exported method Client.GetMesh should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/util/simplerest/client.go
    • Line 40: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 52: warning: exported type ClientContentConfig should have comment or be unexported (golint)
    • Line 140: warning: exported method Client.Verb should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/util/containerregistry/image.go
    • Line 31: warning: exported function Init should have comment or be unexported (golint)
    • Line 36: warning: exported type Image should have comment or be unexported (golint)
    • Line 41: warning: exported method Image.BaseName should have comment or be unexported (golint)
    • Line 50: warning: exported method Image.FullName should have comment or be unexported (golint)
    • Line 54: warning: exported function GetImagePrefix should have comment or be unexported (golint)
    • Line 58: warning: exported function GetPrefix should have comment or be unexported (golint)
    • /tkestack.io/tke/api/monitor/v1/defaults.go
    • Line 29: warning: exported function SetDefaults_ConfigMap should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; func SetDefaults_ConfigMap should be SetDefaultsConfigMap (golint)
    • Line 35: warning: exported function SetDefaults_PrometheusStatus should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; func SetDefaults_PrometheusStatus should be SetDefaultsPrometheusStatus (golint)
    • /tkestack.io/tke/api/monitor/v1/types.go
    • Line 174: warning: exported type MetricQuery should have comment or be unexported (golint)
    • Line 191: warning: exported type MetricQueryCondition should have comment or be unexported (golint)
    • Line 211: warning: exported type ClusterOverviewResult should have comment or be unexported (golint)
    • Line 232: warning: exported type ClusterStatistic should have comment or be unexported (golint)
    • /tkestack.io/tke/api/platform/types.go
    • Line 393: warning: exported type HA should have comment or be unexported (golint)
    • Line 398: warning: exported type TKEHA should have comment or be unexported (golint)
    • Line 403: warning: exported type ThirdPartyHA should have comment or be unexported (golint)
    • Line 408: warning: exported type File should have comment or be unexported (golint)
    • Line 413: warning: exported type HookType should have comment or be unexported (golint)
    • Line 415: warning: exported type CSIOperatorFeature should have comment or be unexported (golint)
    • Line 419: warning: exported type AuthzWebhookAddr should have comment or be unexported (golint)
    • Line 426: warning: exported type BuiltinAuthzWebhookAddr should have comment or be unexported (golint)
    • Line 428: warning: exported type ExternalAuthzWebhookAddr should have comment or be unexported (golint)
    • Line 434: warning: comment on exported const HookPreInstall should be of the form "HookPreInstall ..." (golint)
    • Line 436: warning: exported const HookPostInstall should have comment (or a comment on this block) or be unexported (golint)
    • Line 440: warning: comment on exported const HookPreClusterInstall should be of the form "HookPreClusterInstall ..." (golint)
    • Line 501: warning: exported type Upgrade should have comment or be unexported (golint)
    • Line 508: warning: exported type UpgradeMode should have comment or be unexported (golint)
    • Line 511: warning: comment on exported const UpgradeModeAuto should be of the form "UpgradeModeAuto ..." (golint)
    • Line 513: warning: comment on exported const UpgradeModeManual should be of the form "UpgradeModeManual ..." (golint)
    • /tkestack.io/tke/cmd/tke-business-api/app/options/feature.go
    • Line 41: warning: exported const DefaultPlatform should have comment or be unexported (golint)
    • Line 43: warning: exported type FeatureOptions should have comment or be unexported (golint)
    • Line 49: warning: exported function NewFeatureOptions should have comment or be unexported (golint)
    • Line 56: warning: exported method FeatureOptions.AddFlags should have comment or be unexported (golint)
    • Line 68: warning: exported method FeatureOptions.ApplyFlags should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/util/simplerest/request.go
    • Line 38: warning: exported type Request should have comment or be unexported (golint)
    • Line 141: warning: exported method Request.SetHeader should have comment or be unexported (golint)
    • Line 343: warning: exported method Result.Get should have comment or be unexported (golint)
    • Line 366: warning: exported method Result.Into should have comment or be unexported (golint)
    • /tkestack.io/tke/test/tke/installer.go
    • Line 18: warning: exported type Installer should have comment or be unexported (golint)
    • Line 22: warning: exported function InitInstaller should have comment or be unexported (golint)
    • Line 30: warning: exported method Installer.RunCMD should have comment or be unexported (golint)
    • Line 46: warning: exported method Installer.InstallInstaller should have comment or be unexported (golint)
    • Line 55: warning: exported method Installer.CreateClusterParaTemplate should have comment or be unexported (golint)
    • Line 92: warning: exported method Installer.Install should have comment or be unexported (golint)
    • Line 137: warning: exported method Installer.GetInstallProgress should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/application/registry/application/storage/rest.go
    • Line 59: warning: exported type ApplicationStorage should have comment or be unexported (golint)
    • Line 99: warning: exported method REST.StorageVersion should have comment or be unexported (golint)
    • Line 108: warning: exported method REST.NamespaceScoped should have comment or be unexported (golint)
    • Line 112: warning: exported method REST.New should have comment or be unexported (golint)
    • Line 116: warning: exported method REST.NewList should have comment or be unexported (golint)
    • Line 120: warning: exported method REST.Get should have comment or be unexported (golint)
    • Line 124: warning: exported method REST.List should have comment or be unexported (golint)
    • Line 128: warning: exported method REST.Watch should have comment or be unexported (golint)
    • Line 132: warning: exported method REST.Export should have comment or be unexported (golint)
    • Line 136: warning: exported method REST.Create should have comment or be unexported (golint)
    • Line 167: warning: exported method REST.Delete should have comment or be unexported (golint)
    • Line 177: warning: exported method REST.Update should have comment or be unexported (golint)
    • Line 249: warning: exported method REST.ConvertToTable should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/util/json/json.go
    • Line 33: warning: exported var MarshalToString should have comment or be unexported (golint)
    • Line 43: warning: exported function NewJSONRequest should have comment or be unexported (golint)
    • Line 56: warning: exported type Request should have comment or be unexported (golint)
    • Line 61: warning: exported method Request.FindObject should have comment or be unexported (golint)
    • /tkestack.io/tke/api/platform/v1/defaults.go
    • Line 30: warning: exported function SetDefaults_ClusterSpec should have comment or be unexported (golint)
    • Line 30: warning: don't use underscores in Go names; func SetDefaults_ClusterSpec should be SetDefaultsClusterSpec (golint)
    • Line 40: warning: exported function SetDefaults_ClusterStatus should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; func SetDefaults_ClusterStatus should be SetDefaultsClusterStatus (golint)
    • Line 55: warning: exported function SetDefaults_MachineStatus should have comment or be unexported (golint)
    • Line 55: warning: don't use underscores in Go names; func SetDefaults_MachineStatus should be SetDefaultsMachineStatus (golint)
    • Line 61: warning: exported function SetDefaults_ConfigMap should have comment or be unexported (golint)
    • Line 61: warning: don't use underscores in Go names; func SetDefaults_ConfigMap should be SetDefaultsConfigMap (golint)
    • Line 69: warning: comment on exported function SetDefaults_PersistentEventStatus should be of the form "SetDefaults_PersistentEventStatus ..." (golint)
    • Line 70: warning: don't use underscores in Go names; func SetDefaults_PersistentEventStatus should be SetDefaultsPersistentEventStatus (golint)
    • Line 76: warning: exported function SetDefaults_HelmStatus should have comment or be unexported (golint)
    • Line 76: warning: don't use underscores in Go names; func SetDefaults_HelmStatus should be SetDefaultsHelmStatus (golint)
    • Line 82: warning: exported function SetDefaults_TappControllerStatus should have comment or be unexported (golint)
    • Line 82: warning: don't use underscores in Go names; func SetDefaults_TappControllerStatus should be SetDefaultsTappControllerStatus (golint)
    • Line 88: warning: exported function SetDefaults_CSIOperatorStatus should have comment or be unexported (golint)
    • Line 88: warning: don't use underscores in Go names; func SetDefaults_CSIOperatorStatus should be SetDefaultsCSIOperatorStatus (golint)
    • Line 94: warning: exported function SetDefaults_VolumeDecoratorStatus should have comment or be unexported (golint)
    • Line 94: warning: don't use underscores in Go names; func SetDefaults_VolumeDecoratorStatus should be SetDefaultsVolumeDecoratorStatus (golint)
    • Line 100: warning: exported function SetDefaults_LogCollectorStatus should have comment or be unexported (golint)
    • Line 100: warning: don't use underscores in Go names; func SetDefaults_LogCollectorStatus should be SetDefaultsLogCollectorStatus (golint)
    • Line 106: warning: exported function SetDefaults_CronHPAStatus should have comment or be unexported (golint)
    • Line 106: warning: don't use underscores in Go names; func SetDefaults_CronHPAStatus should be SetDefaultsCronHPAStatus (golint)
    • Line 112: warning: exported function SetDefaults_PrometheusStatus should have comment or be unexported (golint)
    • Line 112: warning: don't use underscores in Go names; func SetDefaults_PrometheusStatus should be SetDefaultsPrometheusStatus (golint)
    • Line 118: warning: exported function SetDefaults_IPAMStatus should have comment or be unexported (golint)
    • Line 118: warning: don't use underscores in Go names; func SetDefaults_IPAMStatus should be SetDefaultsIPAMStatus (golint)
    • Line 124: warning: exported function SetDefaults_LBCFStatus should have comment or be unexported (golint)
    • Line 124: warning: don't use underscores in Go names; func SetDefaults_LBCFStatus should be SetDefaultsLBCFStatus (golint)
    • /tkestack.io/tke/api/notify/v1/types_swagger_doc_generated.go
    • Line 32: warning: don't use underscores in Go names; var map_Channel should be mapChannel (golint)
    • Line 37: warning: exported method Channel.SwaggerDoc should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; var map_ChannelList should be mapChannelList (golint)
    • Line 46: warning: exported method ChannelList.SwaggerDoc should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; var map_ChannelSMTP should be mapChannelSMTP (golint)
    • Line 54: warning: exported method ChannelSMTP.SwaggerDoc should have comment or be unexported (golint)
    • Line 58: warning: don't use underscores in Go names; var map_ChannelSpec should be mapChannelSpec (golint)
    • Line 63: warning: exported method ChannelSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; var map_ChannelStatus should be mapChannelStatus (golint)
    • Line 71: warning: exported method ChannelStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 75: warning: don't use underscores in Go names; var map_ChannelTencentCloudSMS should be mapChannelTencentCloudSMS (golint)
    • Line 79: warning: exported method ChannelTencentCloudSMS.SwaggerDoc should have comment or be unexported (golint)
    • Line 83: warning: don't use underscores in Go names; var map_ChannelWebhook should be mapChannelWebhook (golint)
    • Line 87: warning: exported method ChannelWebhook.SwaggerDoc should have comment or be unexported (golint)
    • Line 91: warning: don't use underscores in Go names; var map_ChannelWechat should be mapChannelWechat (golint)
    • Line 96: warning: exported method ChannelWechat.SwaggerDoc should have comment or be unexported (golint)
    • Line 100: warning: don't use underscores in Go names; var map_ConfigMap should be mapConfigMap (golint)
    • Line 106: warning: exported method ConfigMap.SwaggerDoc should have comment or be unexported (golint)
    • Line 110: warning: don't use underscores in Go names; var map_ConfigMapList should be mapConfigMapList (golint)
    • Line 115: warning: exported method ConfigMapList.SwaggerDoc should have comment or be unexported (golint)
    • Line 119: warning: don't use underscores in Go names; var map_Message should be mapMessage (golint)
    • Line 124: warning: exported method Message.SwaggerDoc should have comment or be unexported (golint)
    • Line 128: warning: don't use underscores in Go names; var map_MessageList should be mapMessageList (golint)
    • Line 133: warning: exported method MessageList.SwaggerDoc should have comment or be unexported (golint)
    • Line 137: warning: don't use underscores in Go names; var map_MessageRequest should be mapMessageRequest (golint)
    • Line 142: warning: exported method MessageRequest.SwaggerDoc should have comment or be unexported (golint)
    • Line 146: warning: don't use underscores in Go names; var map_MessageRequestList should be mapMessageRequestList (golint)
    • Line 151: warning: exported method MessageRequestList.SwaggerDoc should have comment or be unexported (golint)
    • Line 155: warning: don't use underscores in Go names; var map_MessageRequestSpec should be mapMessageRequestSpec (golint)
    • Line 159: warning: exported method MessageRequestSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 163: warning: don't use underscores in Go names; var map_MessageRequestStatus should be mapMessageRequestStatus (golint)
    • Line 169: warning: exported method MessageRequestStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 173: warning: don't use underscores in Go names; var map_MessageSpec should be mapMessageSpec (golint)
    • Line 177: warning: exported method MessageSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 181: warning: don't use underscores in Go names; var map_MessageStatus should be mapMessageStatus (golint)
    • Line 186: warning: exported method MessageStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 190: warning: don't use underscores in Go names; var map_Receiver should be mapReceiver (golint)
    • Line 195: warning: exported method Receiver.SwaggerDoc should have comment or be unexported (golint)
    • Line 199: warning: don't use underscores in Go names; var map_ReceiverGroup should be mapReceiverGroup (golint)
    • Line 204: warning: exported method ReceiverGroup.SwaggerDoc should have comment or be unexported (golint)
    • Line 208: warning: don't use underscores in Go names; var map_ReceiverGroupList should be mapReceiverGroupList (golint)
    • Line 213: warning: exported method ReceiverGroupList.SwaggerDoc should have comment or be unexported (golint)
    • Line 217: warning: don't use underscores in Go names; var map_ReceiverGroupSpec should be mapReceiverGroupSpec (golint)
    • Line 221: warning: exported method ReceiverGroupSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 225: warning: don't use underscores in Go names; var map_ReceiverList should be mapReceiverList (golint)
    • Line 230: warning: exported method ReceiverList.SwaggerDoc should have comment or be unexported (golint)
    • Line 234: warning: don't use underscores in Go names; var map_ReceiverSpec should be mapReceiverSpec (golint)
    • Line 239: warning: exported method ReceiverSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 243: warning: don't use underscores in Go names; var map_Template should be mapTemplate (golint)
    • Line 248: warning: exported method Template.SwaggerDoc should have comment or be unexported (golint)
    • Line 252: warning: don't use underscores in Go names; var map_TemplateList should be mapTemplateList (golint)
    • Line 257: warning: exported method TemplateList.SwaggerDoc should have comment or be unexported (golint)
    • Line 261: warning: don't use underscores in Go names; var map_TemplateSpec should be mapTemplateSpec (golint)
    • Line 265: warning: exported method TemplateSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 269: warning: don't use underscores in Go names; var map_TemplateTencentCloudSMS should be mapTemplateTencentCloudSMS (golint)
    • Line 273: warning: exported method TemplateTencentCloudSMS.SwaggerDoc should have comment or be unexported (golint)
    • Line 277: warning: don't use underscores in Go names; var map_TemplateText should be mapTemplateText (golint)
    • Line 281: warning: exported method TemplateText.SwaggerDoc should have comment or be unexported (golint)
    • Line 285: warning: don't use underscores in Go names; var map_TemplateWechat should be mapTemplateWechat (golint)
    • Line 292: warning: exported method TemplateWechat.SwaggerDoc should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/util/apiclient/idempotency.go
    • Line 70: warning: comment on exported const LabelASNCilium should be of the form "LabelASNCilium ..." (golint)
    • Line 72: warning: comment on exported const LabelSwitchIPCilium should be of the form "LabelSwitchIPCilium ..." (golint)
    • Line 131: warning: comment on exported function CreateOrUpdatePod should be of the form "CreateOrUpdatePod ..." (golint)
    • Line 513: warning: exported function DeleteDeployment should have comment or be unexported (golint)
    • Line 516: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /tkestack.io/tke/pkg/logagent/registry/logagent/storage/esdetection.go
    • Line 44: warning: comment on exported type ESDetectionREST should be of the form "ESDetectionREST ..." (with optional leading article) (golint)
    • Line 58: warning: exported type ESDetectionProxy should have comment or be unexported (golint)
    • Line 66: warning: exported method ESDetectionProxy.GetReaderCloser should have comment or be unexported (golint)
    • Line 93: warning: exported method ESDetectionREST.Create should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/monitor/controller/prometheus/images/images.go
    • Line 34: warning: exported type Components should have comment or be unexported (golint)
    • Line 47: warning: exported method Components.Get should have comment or be unexported (golint)
    • Line 73: warning: exported function List should have comment or be unexported (golint)
    • Line 91: warning: exported function Validate should have comment or be unexported (golint)
    • Line 99: warning: exported function Get should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_repository.go
    • Line 2: warning: package comment should be of the form "Package client ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 27: warning: exported type RepositoryApiService should have comment or be unexported (golint)
    • Line 39: warning: exported type RepositoryApiDeleteRepositoryOpts should have comment or be unexported (golint)
    • Line 43: warning: exported method RepositoryApiService.DeleteRepository should have comment or be unexported (golint)
    • Line 169: warning: exported type RepositoryApiGetRepositoryOpts should have comment or be unexported (golint)
    • Line 173: warning: exported method RepositoryApiService.GetRepository should have comment or be unexported (golint)
    • Line 318: warning: exported type RepositoryApiListRepositoriesOpts should have comment or be unexported (golint)
    • Line 325: warning: exported method RepositoryApiService.ListRepositories should have comment or be unexported (golint)
    • Line 477: warning: exported type RepositoryApiUpdateRepositoryOpts should have comment or be unexported (golint)
    • Line 481: warning: exported method RepositoryApiService.UpdateRepository should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/audit/storage/es/es.go
    • Line 38: warning: exported function NewStorage should have comment or be unexported (golint)
    • Line 262: warning: exported type Result should have comment or be unexported (golint)
    • Line 266: warning: exported type ResultV7 should have comment or be unexported (golint)
    • Line 270: warning: exported type Hits should have comment or be unexported (golint)
    • Line 275: warning: exported type HitsV7 should have comment or be unexported (golint)
    • Line 280: warning: exported type TotalV7 should have comment or be unexported (golint)
    • Line 284: warning: exported type Document should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/auth/filter/inspector.go
    • Line 52: warning: exported type Inspector should have comment or be unexported (golint)
    • Line 64: warning: exported function NewClusterInspector should have comment or be unexported (golint)
    • Line 200: warning: exported function CheckClustersTenant should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/cluster/util.go
    • Line 38: warning: exported function GetNodeCIDRMaskSize should have comment or be unexported (golint)
    • Line 57: warning: exported function GetServiceCIDRAndNodeCIDRMaskSize should have comment or be unexported (golint)
    • Line 88: warning: exported function GetIndexedIP should have comment or be unexported (golint)
    • Line 121: warning: exported function CalcNodeCidrSize should have comment or be unexported (golint)
    • Line 146: warning: exported function PrepareClusterScale should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/apis/config/types.go
    • Line 42: warning: exported type Storage should have comment or be unexported (golint)
    • Line 54: warning: exported type EtcdStorage should have comment or be unexported (golint)
    • Line 63: warning: exported type FileSystemStorage should have comment or be unexported (golint)
    • Line 69: warning: exported type InMemoryStorage should have comment or be unexported (golint)
    • Line 75: warning: exported const S3StorageClassStandard should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: exported type S3Storage should have comment or be unexported (golint)
    • Line 122: warning: exported type Security should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/types/types.go
    • Line 41: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 46: warning: exported function GetClusterByName should have comment or be unexported (golint)
    • Line 64: warning: exported function GetCluster should have comment or be unexported (golint)
    • Line 86: warning: exported method Cluster.Clientset should have comment or be unexported (golint)
    • Line 95: warning: exported method Cluster.ClientsetForBootstrap should have comment or be unexported (golint)
    • Line 103: warning: exported method Cluster.RESTConfigForBootstrap should have comment or be unexported (golint)
    • Line 140: warning: exported method Cluster.RESTConfig should have comment or be unexported (golint)
    • Line 158: warning: exported method Cluster.RESTConfigForClientX509 should have comment or be unexported (golint)
    • Line 171: warning: exported method Cluster.HostForBootstrap should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/machine/interface.go
    • Line 40: warning: exported const ReasonWaiting should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported type Handler should have comment or be unexported (golint)
    • Line 68: warning: exported method Handler.Name should have comment or be unexported (golint)
    • Line 77: warning: exported type DelegateProvider should have comment or be unexported (golint)
    • Line 89: warning: exported method DelegateProvider.Name should have comment or be unexported (golint)
    • Line 96: warning: exported method DelegateProvider.Validate should have comment or be unexported (golint)
    • Line 104: warning: exported method DelegateProvider.PreCreate should have comment or be unexported (golint)
    • Line 112: warning: exported method DelegateProvider.AfterCreate should have comment or be unexported (golint)
    • Line 120: warning: exported method DelegateProvider.OnCreate should have comment or be unexported (golint)
    • Line 175: warning: exported method DelegateProvider.OnUpdate should have comment or be unexported (golint)
    • Line 197: warning: exported method DelegateProvider.OnDelete should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/configuration.go
    • Line 1: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 9: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 51: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 60: warning: exported function NewConfiguration should have comment or be unexported (golint)
    • Line 69: warning: exported method Configuration.AddDefaultHeader should have comment or be unexported (golint)
    • /tkestack.io/tke/api/platform/v1/cluster.go
    • Line 36: warning: exported method ClusterMachine.SSH should have comment or be unexported (golint)
    • Line 50: warning: exported method Cluster.Address should have comment or be unexported (golint)
    • Line 60: warning: exported method Cluster.AddAddress should have comment or be unexported (golint)
    • Line 74: warning: exported method Cluster.RemoveAddress should have comment or be unexported (golint)
    • Line 85: warning: exported method Cluster.GetCondition should have comment or be unexported (golint)
    • Line 95: warning: exported method Cluster.KeepHistory should have comment or be unexported (golint)
    • Line 102: warning: exported method Cluster.SetCondition should have comment or be unexported (golint)
    • Line 139: warning: exported method Cluster.Host should have comment or be unexported (golint)
    • Line 163: warning: exported method Cluster.AuthzWebhookEnabled should have comment or be unexported (golint)
    • Line 168: warning: exported method Cluster.AuthzWebhookExternEndpoint should have comment or be unexported (golint)
    • Line 182: warning: exported method Cluster.AuthzWebhookBuiltinEndpoint should have comment or be unexported (golint)
    • /tkestack.io/tke/api/registry/v1/types_swagger_doc_generated.go
    • Line 32: warning: don't use underscores in Go names; var map_Chart should be mapChart (golint)
    • Line 37: warning: exported method Chart.SwaggerDoc should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; var map_ChartGroup should be mapChartGroup (golint)
    • Line 46: warning: exported method ChartGroup.SwaggerDoc should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; var map_ChartGroupImport should be mapChartGroupImport (golint)
    • Line 54: warning: exported method ChartGroupImport.SwaggerDoc should have comment or be unexported (golint)
    • Line 58: warning: don't use underscores in Go names; var map_ChartGroupList should be mapChartGroupList (golint)
    • Line 63: warning: exported method ChartGroupList.SwaggerDoc should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; var map_ChartGroupSpec should be mapChartGroupSpec (golint)
    • Line 71: warning: exported method ChartGroupSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 75: warning: don't use underscores in Go names; var map_ChartGroupStatus should be mapChartGroupStatus (golint)
    • Line 82: warning: exported method ChartGroupStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 86: warning: don't use underscores in Go names; var map_ChartInfo should be mapChartInfo (golint)
    • Line 91: warning: exported method ChartInfo.SwaggerDoc should have comment or be unexported (golint)
    • Line 95: warning: don't use underscores in Go names; var map_ChartInfoSpec should be mapChartInfoSpec (golint)
    • Line 99: warning: exported method ChartInfoSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 103: warning: don't use underscores in Go names; var map_ChartList should be mapChartList (golint)
    • Line 108: warning: exported method ChartList.SwaggerDoc should have comment or be unexported (golint)
    • Line 112: warning: don't use underscores in Go names; var map_ChartProxyOptions should be mapChartProxyOptions (golint)
    • Line 116: warning: exported method ChartProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 120: warning: don't use underscores in Go names; var map_ChartStatus should be mapChartStatus (golint)
    • Line 126: warning: exported method ChartStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 130: warning: don't use underscores in Go names; var map_ConfigMap should be mapConfigMap (golint)
    • Line 136: warning: exported method ConfigMap.SwaggerDoc should have comment or be unexported (golint)
    • Line 140: warning: don't use underscores in Go names; var map_ConfigMapList should be mapConfigMapList (golint)
    • Line 145: warning: exported method ConfigMapList.SwaggerDoc should have comment or be unexported (golint)
    • Line 149: warning: don't use underscores in Go names; var map_Namespace should be mapNamespace (golint)
    • Line 154: warning: exported method Namespace.SwaggerDoc should have comment or be unexported (golint)
    • Line 158: warning: don't use underscores in Go names; var map_NamespaceList should be mapNamespaceList (golint)
    • Line 163: warning: exported method NamespaceList.SwaggerDoc should have comment or be unexported (golint)
    • Line 167: warning: don't use underscores in Go names; var map_NamespaceSpec should be mapNamespaceSpec (golint)
    • Line 171: warning: exported method NamespaceSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 175: warning: don't use underscores in Go names; var map_NamespaceStatus should be mapNamespaceStatus (golint)
    • Line 179: warning: exported method NamespaceStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 183: warning: don't use underscores in Go names; var map_Repository should be mapRepository (golint)
    • Line 188: warning: exported method Repository.SwaggerDoc should have comment or be unexported (golint)
    • Line 192: warning: don't use underscores in Go names; var map_RepositoryList should be mapRepositoryList (golint)
    • Line 197: warning: exported method RepositoryList.SwaggerDoc should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/gateway/apis/config/types.go
    • Line 41: warning: exported type Components should have comment or be unexported (golint)
    • Line 84: warning: exported type Component should have comment or be unexported (golint)
    • Line 97: warning: exported type FrontProxyComponent should have comment or be unexported (golint)
    • Line 121: warning: exported type PassthroughComponent should have comment or be unexported (golint)
    • Line 128: warning: exported type Registry should have comment or be unexported (golint)
    • Line 134: warning: exported type Auth should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/util/ssh/helper.go
    • Line 31: warning: exported function MakePrivateKeySignerFromFile should have comment or be unexported (golint)
    • Line 40: warning: exported function MakePrivateKeySigner should have comment or be unexported (golint)
    • Line 54: warning: exported function ParsePublicKeyFromFile should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/controller/addon/helm/images/images.go
    • Line 34: warning: exported type Components should have comment or be unexported (golint)
    • Line 40: warning: exported method Components.GetTag should have comment or be unexported (golint)
    • Line 51: warning: exported method Components.Get should have comment or be unexported (golint)
    • Line 70: warning: exported function List should have comment or be unexported (golint)
    • Line 88: warning: exported function Validate should have comment or be unexported (golint)
    • Line 96: warning: exported function Get should have comment or be unexported (golint)
    • /tkestack.io/tke/test/util/client/client.go
    • Line 43: warning: exported function LoadOrSetupTKE should have comment or be unexported (golint)
    • Line 60: warning: exported function GetTKEClientFromEnv should have comment or be unexported (golint)
    • Line 73: warning: exported function GetTKEClientWithAdminToken should have comment or be unexported (golint)
    • Line 81: warning: exported function GenerateTKEAdminKubeConfig should have comment or be unexported (golint)
    • Line 113: warning: exported function GetTKEClient should have comment or be unexported (golint)
    • Line 122: warning: exported function GetRESTConfig should have comment or be unexported (golint)
    • Line 138: warning: exported function GetClientSet should have comment or be unexported (golint)
    • /tkestack.io/tke/api/application/v1/types_swagger_doc_generated.go
    • Line 32: warning: don't use underscores in Go names; var map_App should be mapApp (golint)
    • Line 37: warning: exported method App.SwaggerDoc should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; var map_AppHistory should be mapAppHistory (golint)
    • Line 46: warning: exported method AppHistory.SwaggerDoc should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; var map_AppHistorySpec should be mapAppHistorySpec (golint)
    • Line 54: warning: exported method AppHistorySpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 58: warning: don't use underscores in Go names; var map_AppList should be mapAppList (golint)
    • Line 63: warning: exported method AppList.SwaggerDoc should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; var map_AppResource should be mapAppResource (golint)
    • Line 72: warning: exported method AppResource.SwaggerDoc should have comment or be unexported (golint)
    • Line 76: warning: don't use underscores in Go names; var map_AppResourceSpec should be mapAppResourceSpec (golint)
    • Line 80: warning: exported method AppResourceSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 84: warning: don't use underscores in Go names; var map_AppSpec should be mapAppSpec (golint)
    • Line 89: warning: exported method AppSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 93: warning: don't use underscores in Go names; var map_AppStatus should be mapAppStatus (golint)
    • Line 107: warning: exported method AppStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 111: warning: don't use underscores in Go names; var map_AppValues should be mapAppValues (golint)
    • Line 115: warning: exported method AppValues.SwaggerDoc should have comment or be unexported (golint)
    • Line 119: warning: don't use underscores in Go names; var map_Chart should be mapChart (golint)
    • Line 123: warning: exported method Chart.SwaggerDoc should have comment or be unexported (golint)
    • Line 127: warning: don't use underscores in Go names; var map_ConfigMap should be mapConfigMap (golint)
    • Line 133: warning: exported method ConfigMap.SwaggerDoc should have comment or be unexported (golint)
    • Line 137: warning: don't use underscores in Go names; var map_ConfigMapList should be mapConfigMapList (golint)
    • Line 142: warning: exported method ConfigMapList.SwaggerDoc should have comment or be unexported (golint)
    • Line 146: warning: don't use underscores in Go names; var map_History should be mapHistory (golint)
    • Line 150: warning: exported method History.SwaggerDoc should have comment or be unexported (golint)
    • Line 154: warning: don't use underscores in Go names; var map_RollbackProxyOptions should be mapRollbackProxyOptions (golint)
    • Line 158: warning: exported method RollbackProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/phases/gpu/gpu.go
    • Line 32: warning: exported type NvidiaDriverOption should have comment or be unexported (golint)
    • Line 35: warning: exported function InstallNvidiaDriver should have comment or be unexported (golint)
    • Line 62: warning: exported type NvidiaContainerRuntimeOption should have comment or be unexported (golint)
    • Line 65: warning: exported function InstallNvidiaContainerRuntime should have comment or be unexported (golint)
    • Line 86: warning: exported type NvidiaDevicePluginOption should have comment or be unexported (golint)
    • Line 90: warning: exported function InstallNvidiaDevicePlugin should have comment or be unexported (golint)
    • Line 98: warning: exported function IsEnable should have comment or be unexported (golint)
    • Line 102: warning: exported function MachineIsSupport should have comment or be unexported (golint)
    • /tkestack.io/tke/cmd/tke-installer/app/installer/types/types.go
    • Line 30: warning: exported type CreateClusterPara should have comment or be unexported (golint)
    • Line 51: warning: exported type Basic should have comment or be unexported (golint)
    • Line 56: warning: exported type Auth should have comment or be unexported (golint)
    • Line 61: warning: exported type TKEAuth should have comment or be unexported (golint)
    • Line 67: warning: exported type OIDCAuth should have comment or be unexported (golint)
    • Line 80: warning: exported type Audit should have comment or be unexported (golint)
    • Line 84: warning: exported type ElasticSearch should have comment or be unexported (golint)
    • Line 92: warning: exported method Registry.Domain should have comment or be unexported (golint)
    • Line 102: warning: exported method Registry.Namespace should have comment or be unexported (golint)
    • Line 112: warning: exported method Registry.Username should have comment or be unexported (golint)
    • Line 122: warning: exported method Registry.Password should have comment or be unexported (golint)
    • Line 132: warning: exported method Registry.Prefix should have comment or be unexported (golint)
    • Line 136: warning: exported method Registry.IsOfficial should have comment or be unexported (golint)
    • Line 140: warning: exported type TKERegistry should have comment or be unexported (golint)
    • Line 149: warning: exported type ThirdPartyRegistry should have comment or be unexported (golint)
    • Line 156: warning: exported type UserInputRegistry should have comment or be unexported (golint)
    • Line 163: warning: exported type Business should have comment or be unexported (golint)
    • Line 166: warning: exported type Application should have comment or be unexported (golint)
    • Line 172: warning: exported type Monitor should have comment or be unexported (golint)
    • Line 178: warning: exported type ThanosMonitor should have comment or be unexported (golint)
    • Line 182: warning: exported type ThanosBucketConfig should have comment or be unexported (golint)
    • Line 187: warning: exported type Mesh should have comment or be unexported (golint)
    • Line 190: warning: exported type ESMonitor should have comment or be unexported (golint)
    • Line 196: warning: exported type InfluxDBMonitor should have comment or be unexported (golint)
    • Line 201: warning: exported type LocalInfluxDBMonitor should have comment or be unexported (golint)
    • Line 204: warning: exported type ExternalInfluxDBMonitor should have comment or be unexported (golint)
    • Line 210: warning: exported type HA should have comment or be unexported (golint)
    • Line 215: warning: exported method HA.VIP should have comment or be unexported (golint)
    • Line 222: warning: exported type TKEHA should have comment or be unexported (golint)
    • Line 227: warning: exported type ThirdPartyHA should have comment or be unexported (golint)
    • Line 232: warning: exported type Gateway should have comment or be unexported (golint)
    • Line 237: warning: exported type Cert should have comment or be unexported (golint)
    • Line 242: warning: exported type SelfSignedCert should have comment or be unexported (golint)
    • Line 245: warning: exported type ThirdPartyCert should have comment or be unexported (golint)
    • Line 250: warning: exported type Keepalived should have comment or be unexported (golint)
    • Line 254: warning: exported type ClusterProgress should have comment or be unexported (golint)
    • Line 266: warning: exported type ClusterProgressStatus should have comment or be unexported (golint)
    • Line 269: warning: exported const StatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 276: warning: exported type Handler should have comment or be unexported (golint)
    • Line 281: warning: exported type Logagent should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/images/images.go
    • Line 27: warning: exported type Components should have comment or be unexported (golint)
    • Line 47: warning: exported method Components.Get should have comment or be unexported (golint)
    • Line 80: warning: exported function List should have comment or be unexported (golint)
    • Line 99: warning: exported function Get should have comment or be unexported (golint)
    • Line 103: warning: exported function ListKubernetesImageFullNamesWithVerion should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/apis/config/types.go
    • Line 37: warning: exported type Region should have comment or be unexported (golint)
    • Line 41: warning: exported type Istio should have comment or be unexported (golint)
    • Line 47: warning: exported type IstioLabelSelector should have comment or be unexported (golint)
    • Line 52: warning: exported type IstioGateway should have comment or be unexported (golint)
    • Line 56: warning: exported type Components should have comment or be unexported (golint)
    • Line 60: warning: exported type MeshManagerConfig should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/client/response.go
    • Line 1: warning: package comment should be of the form "Package client ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 15: warning: exported type APIResponse should have comment or be unexported (golint)
    • Line 32: warning: exported function NewAPIResponse should have comment or be unexported (golint)
    • Line 38: warning: exported function NewAPIResponseWithError should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/apis/config/v1/types.go
    • Line 42: warning: exported type Storage should have comment or be unexported (golint)
    • Line 55: warning: exported type EtcdStorage should have comment or be unexported (golint)
    • Line 64: warning: exported type FileSystemStorage should have comment or be unexported (golint)
    • Line 70: warning: exported type InMemoryStorage should have comment or be unexported (golint)
    • Line 76: warning: exported const S3StorageClassStandard should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: exported type S3Storage should have comment or be unexported (golint)
    • Line 123: warning: exported type Security should have comment or be unexported (golint)
    • /tkestack.io/tke/api/business/v1/defaults.go
    • Line 29: warning: exported function SetDefaults_ProjectStatus should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; func SetDefaults_ProjectStatus should be SetDefaultsProjectStatus (golint)
    • Line 44: warning: exported function SetDefaults_ProjectSpec should have comment or be unexported (golint)
    • Line 44: warning: don't use underscores in Go names; func SetDefaults_ProjectSpec should be SetDefaultsProjectSpec (golint)
    • Line 53: warning: exported function SetDefaults_NamespaceSpec should have comment or be unexported (golint)
    • Line 53: warning: don't use underscores in Go names; func SetDefaults_NamespaceSpec should be SetDefaultsNamespaceSpec (golint)
    • Line 59: warning: exported function SetDefaults_NamespaceStatus should have comment or be unexported (golint)
    • Line 59: warning: don't use underscores in Go names; func SetDefaults_NamespaceStatus should be SetDefaultsNamespaceStatus (golint)
    • Line 68: warning: exported function SetDefaults_ConfigMap should have comment or be unexported (golint)
    • Line 68: warning: don't use underscores in Go names; func SetDefaults_ConfigMap should be SetDefaultsConfigMap (golint)
    • Line 74: warning: exported function SetDefaults_ImageNamespaceStatus should have comment or be unexported (golint)
    • Line 74: warning: don't use underscores in Go names; func SetDefaults_ImageNamespaceStatus should be SetDefaultsImageNamespaceStatus (golint)
    • Line 80: warning: exported function SetDefaults_ChartGroupStatus should have comment or be unexported (golint)
    • Line 80: warning: don't use underscores in Go names; func SetDefaults_ChartGroupStatus should be SetDefaultsChartGroupStatus (golint)
    • Line 86: warning: exported function SetDefaults_NsEmigrationStatus should have comment or be unexported (golint)
    • Line 86: warning: don't use underscores in Go names; func SetDefaults_NsEmigrationStatus should be SetDefaultsNsEmigrationStatus (golint)
    • /tkestack.io/tke/pkg/mesh/external/tcmesh/cache.go
    • Line 37: warning: exported const ClusterRoleMaster should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type Cacher should have comment or be unexported (golint)
    • Line 52: warning: exported function GetCacher should have comment or be unexported (golint)
    • Line 71: warning: exported method Cacher.ReloadMeshes should have comment or be unexported (golint)
    • Line 134: warning: exported method Cacher.Clusters should have comment or be unexported (golint)
    • Line 153: warning: exported method Cacher.MainClusters should have comment or be unexported (golint)
    • Line 163: warning: exported method Cacher.MainClustersMap should have comment or be unexported (golint)
    • Line 181: warning: exported method Cacher.MemberClusters should have comment or be unexported (golint)
    • Line 200: warning: exported method Cacher.GetMeshByCluster should have comment or be unexported (golint)
    • Line 219: warning: exported method Cacher.GetMainClusterByMemberCluster should have comment or be unexported (golint)
    • /tkestack.io/tke/api/logagent/v1/types_swagger_doc_generated.go
    • Line 32: warning: don't use underscores in Go names; var map_ConfigMap should be mapConfigMap (golint)
    • Line 38: warning: exported method ConfigMap.SwaggerDoc should have comment or be unexported (golint)
    • Line 42: warning: don't use underscores in Go names; var map_ConfigMapList should be mapConfigMapList (golint)
    • Line 47: warning: exported method ConfigMapList.SwaggerDoc should have comment or be unexported (golint)
    • Line 51: warning: don't use underscores in Go names; var map_LogAgent should be mapLogAgent (golint)
    • Line 56: warning: exported method LogAgent.SwaggerDoc should have comment or be unexported (golint)
    • Line 60: warning: don't use underscores in Go names; var map_LogAgentList should be mapLogAgentList (golint)
    • Line 65: warning: exported method LogAgentList.SwaggerDoc should have comment or be unexported (golint)
    • Line 69: warning: don't use underscores in Go names; var map_LogAgentProxyOptions should be mapLogAgentProxyOptions (golint)
    • Line 73: warning: exported method LogAgentProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 77: warning: don't use underscores in Go names; var map_LogAgentSpec should be mapLogAgentSpec (golint)
    • Line 81: warning: exported method LogAgentSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 85: warning: don't use underscores in Go names; var map_LogAgentStatus should be mapLogAgentStatus (golint)
    • Line 93: warning: exported method LogAgentStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 97: warning: don't use underscores in Go names; var map_LogEsDetection should be mapLogEsDetection (golint)
    • Line 101: warning: exported method LogEsDetection.SwaggerDoc should have comment or be unexported (golint)
    • Line 105: warning: don't use underscores in Go names; var map_LogFileContent should be mapLogFileContent (golint)
    • Line 109: warning: exported method LogFileContent.SwaggerDoc should have comment or be unexported (golint)
    • Line 113: warning: don't use underscores in Go names; var map_LogFileProxyOptions should be mapLogFileProxyOptions (golint)
    • Line 117: warning: exported method LogFileProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 121: warning: don't use underscores in Go names; var map_LogFileTree should be mapLogFileTree (golint)
    • Line 125: warning: exported method LogFileTree.SwaggerDoc should have comment or be unexported (golint)
    • /tkestack.io/tke/api/mesh/v1/defaults.go
    • Line 29: warning: exported function SetDefaults_ConfigMap should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; func SetDefaults_ConfigMap should be SetDefaultsConfigMap (golint)
    • Line 35: warning: exported function SetDefaults_MeshManagerStatus should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; func SetDefaults_MeshManagerStatus should be SetDefaultsMeshManagerStatus (golint)
    • /tkestack.io/tke/pkg/auth/util/subject.go
    • Line 26: warning: exported function InSubjects should have comment or be unexported (golint)
    • Line 35: warning: exported function InSubjectsWithIDOrName should have comment or be unexported (golint)
    • Line 52: warning: exported function RemoveDuplicateSubjects should have comment or be unexported (golint)
    • Line 64: warning: exported function RemoveDuplicateSubjectsByIDOrName should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/auth/util/policy.go
    • Line 23: warning: exported function ProjectOwnerPolicyID should have comment or be unexported (golint)
    • Line 27: warning: exported function ProjectMemberPolicyID should have comment or be unexported (golint)
    • Line 31: warning: exported function ProjectViewerPolicyID should have comment or be unexported (golint)
    • Line 35: warning: exported function ChartGroupPullPolicyID should have comment or be unexported (golint)
    • Line 39: warning: exported function ChartGroupFullPolicyID should have comment or be unexported (golint)
    • Line 43: warning: exported function ChartPullPolicyID should have comment or be unexported (golint)
    • Line 47: warning: exported function ChartPushPolicyID should have comment or be unexported (golint)
    • Line 51: warning: exported function ChartDeletePolicyID should have comment or be unexported (golint)
    • Line 55: warning: exported function ChartFullPolicyID should have comment or be unexported (golint)
    • Line 59: warning: exported function ChartGroupPolicyResources should have comment or be unexported (golint)
    • Line 63: warning: exported function ChartPolicyResources should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/controller/meshmanager/images/images.go
    • Line 35: warning: exported type Components should have comment or be unexported (golint)
    • Line 42: warning: exported method Components.Get should have comment or be unexported (golint)
    • Line 62: warning: exported function List should have comment or be unexported (golint)
    • Line 80: warning: exported function Validate should have comment or be unexported (golint)
    • Line 88: warning: exported function Get should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_preheat.go
    • Line 2: warning: package comment should be of the form "Package client ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 27: warning: exported type PreheatApiService should have comment or be unexported (golint)
    • Line 38: warning: exported type PreheatApiCreateInstanceOpts should have comment or be unexported (golint)
    • Line 42: warning: exported method PreheatApiService.CreateInstance should have comment or be unexported (golint)
    • Line 195: warning: exported type PreheatApiCreatePolicyOpts should have comment or be unexported (golint)
    • Line 199: warning: exported method PreheatApiService.CreatePolicy should have comment or be unexported (golint)
    • Line 325: warning: exported type PreheatApiDeleteInstanceOpts should have comment or be unexported (golint)
    • Line 329: warning: exported method PreheatApiService.DeleteInstance should have comment or be unexported (golint)
    • Line 461: warning: exported type PreheatApiDeletePolicyOpts should have comment or be unexported (golint)
    • Line 465: warning: exported method PreheatApiService.DeletePolicy should have comment or be unexported (golint)
    • Line 592: warning: exported type PreheatApiGetExecutionOpts should have comment or be unexported (golint)
    • Line 596: warning: exported method PreheatApiService.GetExecution should have comment or be unexported (golint)
    • Line 739: warning: exported type PreheatApiGetInstanceOpts should have comment or be unexported (golint)
    • Line 743: warning: exported method PreheatApiService.GetInstance should have comment or be unexported (golint)
    • Line 885: warning: exported type PreheatApiGetPolicyOpts should have comment or be unexported (golint)
    • Line 889: warning: exported method PreheatApiService.GetPolicy should have comment or be unexported (golint)
    • Line 1034: warning: exported type PreheatApiGetPreheatLogOpts should have comment or be unexported (golint)
    • Line 1038: warning: exported method PreheatApiService.GetPreheatLog should have comment or be unexported (golint)
    • Line 1186: warning: exported type PreheatApiListExecutionsOpts should have comment or be unexported (golint)
    • Line 1193: warning: exported method PreheatApiService.ListExecutions should have comment or be unexported (golint)
    • Line 1346: warning: exported type PreheatApiListInstancesOpts should have comment or be unexported (golint)
    • Line 1353: warning: exported method PreheatApiService.ListInstances should have comment or be unexported (golint)
    • Line 1505: warning: exported type PreheatApiListPoliciesOpts should have comment or be unexported (golint)
    • Line 1512: warning: exported method PreheatApiService.ListPolicies should have comment or be unexported (golint)
    • Line 1651: warning: exported type PreheatApiListProvidersOpts should have comment or be unexported (golint)
    • Line 1655: warning: exported method PreheatApiService.ListProviders should have comment or be unexported (golint)
    • Line 1795: warning: exported type PreheatApiListProvidersUnderProjectOpts should have comment or be unexported (golint)
    • Line 1799: warning: exported method PreheatApiService.ListProvidersUnderProject should have comment or be unexported (golint)
    • Line 1945: warning: exported type PreheatApiListTasksOpts should have comment or be unexported (golint)
    • Line 1952: warning: exported method PreheatApiService.ListTasks should have comment or be unexported (golint)
    • Line 2106: warning: exported type PreheatApiManualPreheatOpts should have comment or be unexported (golint)
    • Line 2110: warning: exported method PreheatApiService.ManualPreheat should have comment or be unexported (golint)
    • Line 2237: warning: exported type PreheatApiPingInstancesOpts should have comment or be unexported (golint)
    • Line 2241: warning: exported method PreheatApiService.PingInstances should have comment or be unexported (golint)
    • Line 2349: warning: exported type PreheatApiStopExecutionOpts should have comment or be unexported (golint)
    • Line 2353: warning: exported method PreheatApiService.StopExecution should have comment or be unexported (golint)
    • Line 2482: warning: exported type PreheatApiUpdateInstanceOpts should have comment or be unexported (golint)
    • Line 2486: warning: exported method PreheatApiService.UpdateInstance should have comment or be unexported (golint)
    • Line 2631: warning: exported type PreheatApiUpdatePolicyOpts should have comment or be unexported (golint)
    • Line 2635: warning: exported method PreheatApiService.UpdatePolicy should have comment or be unexported (golint)
    • /tkestack.io/tke/api/monitor/types.go
    • Line 137: warning: exported type OverviewProjectStatus should have comment or be unexported (golint)
    • Line 140: warning: exported const OverviewProjectStatusNotFound should have comment (or a comment on this block) or be unexported (golint)
    • Line 175: warning: exported type MetricQuery should have comment or be unexported (golint)
    • Line 192: warning: exported type MetricQueryCondition should have comment or be unexported (golint)
    • Line 212: warning: exported type ClusterOverviewResult should have comment or be unexported (golint)
    • Line 233: warning: exported type ClusterStatistic should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/monitor/storage/es/client/client.go
    • Line 39: warning: exported method Client.QueryMonitor should have comment or be unexported (golint)
    • Line 91: warning: exported method Client.Query should have comment or be unexported (golint)
    • Line 140: warning: exported method Client.SimpleQuery should have comment or be unexported (golint)
    • Line 159: warning: exported method Client.Indices should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/gateway/api/sysinfo.go
    • Line 46: warning: exported type GroupVersion should have comment or be unexported (golint)
    • Line 65: warning: exported type SysInfo should have comment or be unexported (golint)
    • Line 71: warning: exported type Registry should have comment or be unexported (golint)
    • Line 76: warning: exported type Auth should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/auth/util/group.go
    • Line 36: warning: exported function GroupKey should have comment or be unexported (golint)
    • Line 40: warning: exported function GroupPrefix should have comment or be unexported (golint)
    • Line 44: warning: exported function GetPoliciesFromGroupExtra should have comment or be unexported (golint)
    • Line 70: warning: exported function BindGroupPolicies should have comment or be unexported (golint)
    • Line 92: warning: exported function UnBindGroupPolicies should have comment or be unexported (golint)
    • Line 114: warning: exported function HandleGroupPoliciesUpdate should have comment or be unexported (golint)
    • Line 144: warning: exported function FillGroupPolicies should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/util/validation/validation.go
    • Line 35: warning: exported type ClusterGetter should have comment or be unexported (golint)
    • Line 39: warning: exported type BusinessObjectGetter should have comment or be unexported (golint)
    • Line 44: warning: exported function NewClusterGetter should have comment or be unexported (golint)
    • Line 48: warning: exported function NewObjectGetter should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_project.go
    • Line 2: warning: package comment should be of the form "Package client ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 27: warning: exported type ProjectApiService should have comment or be unexported (golint)
    • Line 38: warning: exported type ProjectApiCreateProjectOpts should have comment or be unexported (golint)
    • Line 42: warning: exported method ProjectApiService.CreateProject should have comment or be unexported (golint)
    • Line 157: warning: exported type ProjectApiDeleteProjectOpts should have comment or be unexported (golint)
    • Line 161: warning: exported method ProjectApiService.DeleteProject should have comment or be unexported (golint)
    • Line 288: warning: exported type ProjectApiGetLogsOpts should have comment or be unexported (golint)
    • Line 295: warning: exported method ProjectApiService.GetLogs should have comment or be unexported (golint)
    • Line 425: warning: exported type ProjectApiGetProjectOpts should have comment or be unexported (golint)
    • Line 429: warning: exported method ProjectApiService.GetProject should have comment or be unexported (golint)
    • Line 540: warning: exported type ProjectApiGetProjectDeletableOpts should have comment or be unexported (golint)
    • Line 544: warning: exported method ProjectApiService.GetProjectDeletable should have comment or be unexported (golint)
    • Line 675: warning: exported type ProjectApiGetProjectSummaryOpts should have comment or be unexported (golint)
    • Line 679: warning: exported method ProjectApiService.GetProjectSummary should have comment or be unexported (golint)
    • Line 820: warning: exported type ProjectApiHeadProjectOpts should have comment or be unexported (golint)
    • Line 824: warning: exported method ProjectApiService.HeadProject should have comment or be unexported (golint)
    • Line 922: warning: exported type ProjectApiListProjectsOpts should have comment or be unexported (golint)
    • Line 931: warning: exported method ProjectApiService.ListProjects should have comment or be unexported (golint)
    • Line 1057: warning: exported type ProjectApiUpdateProjectOpts should have comment or be unexported (golint)
    • Line 1061: warning: exported method ProjectApiService.UpdateProject should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/external/tcmesh/types/config/mesh_config.go
    • Line 32: warning: exported type MeshConfig should have comment or be unexported (golint)
    • Line 88: warning: exported type GatewaySDSConfiguration should have comment or be unexported (golint)
    • Line 93: warning: exported type GatewayConfiguration should have comment or be unexported (golint)
    • Line 105: warning: exported type IngressGatewayConfiguration should have comment or be unexported (golint)
    • Line 113: warning: exported type K8SIngressConfiguration should have comment or be unexported (golint)
    • Line 152: warning: exported type OutboundTrafficPolicyConfiguration should have comment or be unexported (golint)
    • Line 156: warning: exported type MeshTracingConfiguration should have comment or be unexported (golint)
    • Line 165: warning: exported type CommonConfiguration should have comment or be unexported (golint)
    • Line 175: warning: exported type CommonServiceConfiguration should have comment or be unexported (golint)
    • Line 181: warning: exported type MeshKubeOperatorConfiguration should have comment or be unexported (golint)
    • Line 185: warning: exported type ComponentDeployMode should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/logagent/registry/logagent/storage/filetree.go
    • Line 40: warning: comment on exported type FileNodeREST should be of the form "FileNodeREST ..." (with optional leading article) (golint)
    • Line 57: warning: exported type FileNodeRequest should have comment or be unexported (golint)
    • Line 63: warning: exported type FileNodeProxy should have comment or be unexported (golint)
    • Line 69: warning: exported method FileNodeProxy.GetReaderCloser should have comment or be unexported (golint)
    • Line 91: warning: exported method FileNodeREST.Create should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/config/config.go
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 47: warning: exported type Config should have comment or be unexported (golint)
    • Line 61: warning: exported method Config.Save should have comment or be unexported (golint)
    • Line 72: warning: exported method Config.AuditEnabled should have comment or be unexported (golint)
    • Line 76: warning: exported method Config.BusinessEnabled should have comment or be unexported (golint)
    • Line 80: warning: exported type Registry should have comment or be unexported (golint)
    • Line 87: warning: exported method Registry.NeedSetHosts should have comment or be unexported (golint)
    • Line 91: warning: exported type Audit should have comment or be unexported (golint)
    • Line 95: warning: exported type Feature should have comment or be unexported (golint)
    • Line 99: warning: exported type Docker should have comment or be unexported (golint)
    • Line 103: warning: exported type Kubelet should have comment or be unexported (golint)
    • Line 107: warning: exported type APIServer should have comment or be unexported (golint)
    • Line 111: warning: exported type ControllerManager should have comment or be unexported (golint)
    • Line 115: warning: exported type Scheduler should have comment or be unexported (golint)
    • Line 119: warning: exported type AuthzWebhook should have comment or be unexported (golint)
    • Line 122: warning: exported type Business should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/api_version.go
    • Line 2: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 10: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 25: warning: exported type VersionApiService should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method VersionApiService.VersionGet should be of the form "VersionGet ..." (golint)
    • /tkestack.io/tke/api/notify/v1/defaults.go
    • Line 29: warning: exported function SetDefaults_ChannelStatus should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; func SetDefaults_ChannelStatus should be SetDefaultsChannelStatus (golint)
    • Line 35: warning: exported function SetDefaults_TemplateSpec should have comment or be unexported (golint)
    • Line 35: warning: don't use underscores in Go names; func SetDefaults_TemplateSpec should be SetDefaultsTemplateSpec (golint)
    • Line 41: warning: exported function SetDefaults_ReceiverSpec should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; func SetDefaults_ReceiverSpec should be SetDefaultsReceiverSpec (golint)
    • Line 47: warning: exported function SetDefaults_ReceiverGroupSpec should have comment or be unexported (golint)
    • Line 47: warning: don't use underscores in Go names; func SetDefaults_ReceiverGroupSpec should be SetDefaultsReceiverGroupSpec (golint)
    • Line 53: warning: exported function SetDefaults_MessageRequestSpec should have comment or be unexported (golint)
    • Line 53: warning: don't use underscores in Go names; func SetDefaults_MessageRequestSpec should be SetDefaultsMessageRequestSpec (golint)
    • Line 65: warning: exported function SetDefaults_MessageRequestStatus should have comment or be unexported (golint)
    • Line 65: warning: don't use underscores in Go names; func SetDefaults_MessageRequestStatus should be SetDefaultsMessageRequestStatus (golint)
    • Line 74: warning: exported function SetDefaults_MessageStatus should have comment or be unexported (golint)
    • Line 74: warning: don't use underscores in Go names; func SetDefaults_MessageStatus should be SetDefaultsMessageStatus (golint)
    • Line 80: warning: exported function SetDefaults_ConfigMap should have comment or be unexported (golint)
    • Line 80: warning: don't use underscores in Go names; func SetDefaults_ConfigMap should be SetDefaultsConfigMap (golint)
    • /tkestack.io/tke/pkg/logagent/controller/logagent/images/images.go
    • Line 34: warning: exported type Components should have comment or be unexported (golint)
    • Line 39: warning: exported method Components.Get should have comment or be unexported (golint)
    • Line 57: warning: exported function List should have comment or be unexported (golint)
    • Line 75: warning: exported function Validate should have comment or be unexported (golint)
    • Line 83: warning: exported function Get should have comment or be unexported (golint)
    • /tkestack.io/tke/api/business/v1/types_swagger_doc_generated.go
    • Line 32: warning: don't use underscores in Go names; var map_ChartGroup should be mapChartGroup (golint)
    • Line 37: warning: exported method ChartGroup.SwaggerDoc should have comment or be unexported (golint)
    • Line 41: warning: don't use underscores in Go names; var map_ChartGroupList should be mapChartGroupList (golint)
    • Line 46: warning: exported method ChartGroupList.SwaggerDoc should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; var map_ChartGroupSpec should be mapChartGroupSpec (golint)
    • Line 55: warning: exported method ChartGroupSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 59: warning: don't use underscores in Go names; var map_ChartGroupStatus should be mapChartGroupStatus (golint)
    • Line 66: warning: exported method ChartGroupStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 70: warning: don't use underscores in Go names; var map_ConfigMap should be mapConfigMap (golint)
    • Line 76: warning: exported method ConfigMap.SwaggerDoc should have comment or be unexported (golint)
    • Line 80: warning: don't use underscores in Go names; var map_ConfigMapList should be mapConfigMapList (golint)
    • Line 85: warning: exported method ConfigMapList.SwaggerDoc should have comment or be unexported (golint)
    • Line 89: warning: don't use underscores in Go names; var map_HardQuantity should be mapHardQuantity (golint)
    • Line 93: warning: exported method HardQuantity.SwaggerDoc should have comment or be unexported (golint)
    • Line 97: warning: don't use underscores in Go names; var map_ImageNamespace should be mapImageNamespace (golint)
    • Line 102: warning: exported method ImageNamespace.SwaggerDoc should have comment or be unexported (golint)
    • Line 106: warning: don't use underscores in Go names; var map_ImageNamespaceList should be mapImageNamespaceList (golint)
    • Line 111: warning: exported method ImageNamespaceList.SwaggerDoc should have comment or be unexported (golint)
    • Line 115: warning: don't use underscores in Go names; var map_ImageNamespaceSpec should be mapImageNamespaceSpec (golint)
    • Line 120: warning: exported method ImageNamespaceSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 124: warning: don't use underscores in Go names; var map_ImageNamespaceStatus should be mapImageNamespaceStatus (golint)
    • Line 131: warning: exported method ImageNamespaceStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 135: warning: don't use underscores in Go names; var map_Namespace should be mapNamespace (golint)
    • Line 140: warning: exported method Namespace.SwaggerDoc should have comment or be unexported (golint)
    • Line 144: warning: don't use underscores in Go names; var map_NamespaceCert should be mapNamespaceCert (golint)
    • Line 148: warning: exported method NamespaceCert.SwaggerDoc should have comment or be unexported (golint)
    • Line 152: warning: don't use underscores in Go names; var map_NamespaceCertOptions should be mapNamespaceCertOptions (golint)
    • Line 157: warning: exported method NamespaceCertOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 161: warning: don't use underscores in Go names; var map_NamespaceList should be mapNamespaceList (golint)
    • Line 166: warning: exported method NamespaceList.SwaggerDoc should have comment or be unexported (golint)
    • Line 170: warning: don't use underscores in Go names; var map_NamespaceSpec should be mapNamespaceSpec (golint)
    • Line 176: warning: exported method NamespaceSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 180: warning: don't use underscores in Go names; var map_NamespaceStatus should be mapNamespaceStatus (golint)
    • Line 188: warning: exported method NamespaceStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 192: warning: don't use underscores in Go names; var map_NsEmigration should be mapNsEmigration (golint)
    • Line 197: warning: exported method NsEmigration.SwaggerDoc should have comment or be unexported (golint)
    • Line 201: warning: don't use underscores in Go names; var map_NsEmigrationList should be mapNsEmigrationList (golint)
    • Line 206: warning: exported method NsEmigrationList.SwaggerDoc should have comment or be unexported (golint)
    • Line 210: warning: don't use underscores in Go names; var map_NsEmigrationSpec should be mapNsEmigrationSpec (golint)
    • Line 214: warning: exported method NsEmigrationSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 218: warning: don't use underscores in Go names; var map_NsEmigrationStatus should be mapNsEmigrationStatus (golint)
    • Line 225: warning: exported method NsEmigrationStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 229: warning: don't use underscores in Go names; var map_Platform should be mapPlatform (golint)
    • Line 234: warning: exported method Platform.SwaggerDoc should have comment or be unexported (golint)
    • Line 238: warning: don't use underscores in Go names; var map_PlatformList should be mapPlatformList (golint)
    • Line 243: warning: exported method PlatformList.SwaggerDoc should have comment or be unexported (golint)
    • Line 247: warning: don't use underscores in Go names; var map_PlatformSpec should be mapPlatformSpec (golint)
    • Line 251: warning: exported method PlatformSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 255: warning: don't use underscores in Go names; var map_Portal should be mapPortal (golint)
    • Line 262: warning: exported method Portal.SwaggerDoc should have comment or be unexported (golint)
    • Line 266: warning: don't use underscores in Go names; var map_PortalProject should be mapPortalProject (golint)
    • Line 272: warning: exported method PortalProject.SwaggerDoc should have comment or be unexported (golint)
    • Line 276: warning: don't use underscores in Go names; var map_Project should be mapProject (golint)
    • Line 281: warning: exported method Project.SwaggerDoc should have comment or be unexported (golint)
    • Line 285: warning: don't use underscores in Go names; var map_ProjectList should be mapProjectList (golint)
    • Line 290: warning: exported method ProjectList.SwaggerDoc should have comment or be unexported (golint)
    • Line 294: warning: don't use underscores in Go names; var map_ProjectSpec should be mapProjectSpec (golint)
    • Line 302: warning: exported method ProjectSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 306: warning: don't use underscores in Go names; var map_ProjectStatus should be mapProjectStatus (golint)
    • Line 314: warning: exported method ProjectStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 318: warning: don't use underscores in Go names; var map_UsedQuantity should be mapUsedQuantity (golint)
    • Line 322: warning: exported method UsedQuantity.SwaggerDoc should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/handler/service.go
    • Line 14: warning: exported function CreateProject should have comment or be unexported (golint)
    • Line 31: warning: exported function DeleteProject should have comment or be unexported (golint)
    • Line 87: warning: exported function DeleteRepo should have comment or be unexported (golint)
    • Line 96: warning: exported function DeleteChart should have comment or be unexported (golint)
    • /tkestack.io/tke/api/registry/v1/types.go
    • Line 111: warning: exported type RepositorySpec should have comment or be unexported (golint)
    • Line 121: warning: exported type RepositoryStatus should have comment or be unexported (golint)
    • Line 128: warning: exported type RepositoryTag should have comment or be unexported (golint)
    • Line 278: warning: exported type ChartSpec should have comment or be unexported (golint)
    • Line 290: warning: exported type ChartStatus should have comment or be unexported (golint)
    • Line 308: warning: exported type ChartVersion should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/constants/constants.go
    • Line 28: warning: exported const AuditPolicyConfigName should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported const KubernetesDir should be of the form "KubernetesDir ..." (golint)
    • Line 63: warning: comment on exported const AppAdminCertFile should be of the form "AppAdminCertFile ..." (golint)
    • Line 67: warning: comment on exported const EtcdDataDir should be of the form "EtcdDataDir ..." (golint)
    • Line 72: warning: comment on exported const CertificatesDir should be of the form "CertificatesDir ..." (golint)
    • Line 110: warning: comment on exported const ProviderDir should be of the form "ProviderDir ..." (golint)
    • /tkestack.io/tke/pkg/platform/provider/cluster/interface.go
    • Line 41: warning: exported const ReasonWaiting should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported type APIProvider should have comment or be unexported (golint)
    • Line 57: warning: exported type ControllerProvider should have comment or be unexported (golint)
    • Line 88: warning: exported type Handler should have comment or be unexported (golint)
    • Line 90: warning: exported method Handler.Name should have comment or be unexported (golint)
    • Line 99: warning: exported type DelegateProvider should have comment or be unexported (golint)
    • Line 114: warning: exported method DelegateProvider.Name should have comment or be unexported (golint)
    • Line 121: warning: exported method DelegateProvider.Setup should have comment or be unexported (golint)
    • Line 125: warning: exported method DelegateProvider.Teardown should have comment or be unexported (golint)
    • Line 129: warning: exported method DelegateProvider.RegisterHandler should have comment or be unexported (golint)
    • Line 132: warning: exported method DelegateProvider.Validate should have comment or be unexported (golint)
    • Line 140: warning: exported method DelegateProvider.PreCreate should have comment or be unexported (golint)
    • Line 148: warning: exported method DelegateProvider.AfterCreate should have comment or be unexported (golint)
    • Line 170: warning: exported method DelegateProvider.OnCreate should have comment or be unexported (golint)
    • Line 228: warning: exported method DelegateProvider.OnUpdate should have comment or be unexported (golint)
    • Line 303: warning: exported method DelegateProvider.OnDelete should have comment or be unexported (golint)
    • Line 322: warning: exported method DelegateProvider.OnRunning should have comment or be unexported (golint)
    • Line 326: warning: exported method DelegateProvider.OnFilter should have comment or be unexported (golint)
    • /tkestack.io/tke/api/mesh/v1/types_swagger_doc_generated.go
    • Line 32: warning: don't use underscores in Go names; var map_ConfigMap should be mapConfigMap (golint)
    • Line 38: warning: exported method ConfigMap.SwaggerDoc should have comment or be unexported (golint)
    • Line 42: warning: don't use underscores in Go names; var map_ConfigMapList should be mapConfigMapList (golint)
    • Line 47: warning: exported method ConfigMapList.SwaggerDoc should have comment or be unexported (golint)
    • Line 51: warning: don't use underscores in Go names; var map_DataBase should be mapDataBase (golint)
    • Line 55: warning: exported method DataBase.SwaggerDoc should have comment or be unexported (golint)
    • Line 59: warning: don't use underscores in Go names; var map_MeshManager should be mapMeshManager (golint)
    • Line 64: warning: exported method MeshManager.SwaggerDoc should have comment or be unexported (golint)
    • Line 68: warning: don't use underscores in Go names; var map_MeshManagerList should be mapMeshManagerList (golint)
    • Line 73: warning: exported method MeshManagerList.SwaggerDoc should have comment or be unexported (golint)
    • Line 77: warning: don't use underscores in Go names; var map_MeshManagerSpec should be mapMeshManagerSpec (golint)
    • Line 81: warning: exported method MeshManagerSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 85: warning: don't use underscores in Go names; var map_MeshManagerStatus should be mapMeshManagerStatus (golint)
    • Line 93: warning: exported method MeshManagerStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 97: warning: don't use underscores in Go names; var map_StorageBackend should be mapStorageBackend (golint)
    • Line 101: warning: exported method StorageBackend.SwaggerDoc should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/apiserver/filter/authentication.go
    • Line 169: warning: exported function GetClusterFromGroups should have comment or be unexported (golint)
    • Line 178: warning: exported function IsAnonymous should have comment or be unexported (golint)
    • Line 187: warning: exported function GroupWithProject should have comment or be unexported (golint)
    • Line 191: warning: exported function GetValueFromGroups should have comment or be unexported (golint)
    • Line 201: warning: exported function MakeAllIgnoreAuthPathPrefixes should have comment or be unexported (golint)
    • Line 208: warning: exported function Unauthorized should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/monitor/apis/config/v1/types.go
    • Line 34: warning: exported type Storage should have comment or be unexported (golint)
    • Line 43: warning: exported type ThanosStorage should have comment or be unexported (golint)
    • Line 47: warning: exported type ThanosStorageServer should have comment or be unexported (golint)
    • Line 51: warning: exported type InfluxDBStorage should have comment or be unexported (golint)
    • Line 55: warning: exported type InfluxDBStorageServer should have comment or be unexported (golint)
    • Line 65: warning: exported type ElasticSearchStorage should have comment or be unexported (golint)
    • Line 69: warning: exported type ElasticSearchStorageServer should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/util/proxy/proxy.go
    • Line 41: warning: exported function New should have comment or be unexported (golint)
    • Line 51: warning: exported type Proxy should have comment or be unexported (golint)
    • Line 59: warning: exported type Request should have comment or be unexported (golint)
    • Line 130: warning: exported method Proxy.Proxy should have comment or be unexported (golint)
    • Line 180: warning: exported function NewDumpResponseWriter should have comment or be unexported (golint)
    • Line 187: warning: exported type DumpResponseWriter should have comment or be unexported (golint)
    • Line 194: warning: exported method DumpResponseWriter.Header should have comment or be unexported (golint)
    • Line 205: warning: exported method DumpResponseWriter.WriteHeader should have comment or be unexported (golint)
    • Line 209: warning: exported method DumpResponseWriter.Unmarshal should have comment or be unexported (golint)
    • Line 216: warning: exported method DumpResponseWriter.OnData should have comment or be unexported (golint)
    • Line 246: warning: exported function NewLoopPageProxy should have comment or be unexported (golint)
    • Line 259: warning: exported type LoopPageProxy should have comment or be unexported (golint)
    • Line 271: warning: exported method LoopPageProxy.LastWriter should have comment or be unexported (golint)
    • Line 278: warning: exported method LoopPageProxy.ResponseStatus should have comment or be unexported (golint)
    • Line 282: warning: exported method LoopPageProxy.Loop should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/phases/kubeadm/types.go
    • Line 34: warning: exported var Scheme should have comment or be unexported (golint)
    • Line 35: warning: exported var Codecs should have comment or be unexported (golint)
    • Line 41: warning: exported var AddToScheme should have comment or be unexported (golint)
    • Line 47: warning: exported type InitConfig should have comment or be unexported (golint)
    • Line 54: warning: exported method InitConfig.Marshal should have comment or be unexported (golint)
    • Line 77: warning: comment on exported function MarshalToYAML should be of the form "MarshalToYAML ..." (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/api_chart_repository.go
    • Line 2: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 10: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 27: warning: exported type ChartRepositoryApiService should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method ChartRepositoryApiService.ChartrepoChartsPost should be of the form "ChartrepoChartsPost ..." (golint)
    • Line 102: warning: comment on exported method ChartRepositoryApiService.ChartrepoHealthGet should be of the form "ChartrepoHealthGet ..." (golint)
    • Line 185: warning: comment on exported method ChartRepositoryApiService.ChartrepoRepoChartsGet should be of the form "ChartrepoRepoChartsGet ..." (golint)
    • Line 270: warning: comment on exported method ChartRepositoryApiService.ChartrepoRepoChartsNameDelete should be of the form "ChartrepoRepoChartsNameDelete ..." (golint)
    • Line 340: warning: comment on exported method ChartRepositoryApiService.ChartrepoRepoChartsNameGet should be of the form "ChartrepoRepoChartsNameGet ..." (golint)
    • Line 427: warning: comment on exported method ChartRepositoryApiService.ChartrepoRepoChartsNameVersionDelete should be of the form "ChartrepoRepoChartsNameVersionDelete ..." (golint)
    • Line 499: warning: comment on exported method ChartRepositoryApiService.ChartrepoRepoChartsNameVersionGet should be of the form "ChartrepoRepoChartsNameVersionGet ..." (golint)
    • Line 588: warning: comment on exported method ChartRepositoryApiService.ChartrepoRepoChartsPost should be of the form "ChartrepoRepoChartsPost ..." (golint)
    • Line 664: warning: comment on exported method ChartRepositoryApiService.ChartrepoRepoProvPost should be of the form "ChartrepoRepoProvPost ..." (golint)
    • /tkestack.io/tke/api/application/v1/defaults.go
    • Line 29: warning: exported function SetDefaults_AppSpec should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; func SetDefaults_AppSpec should be SetDefaultsAppSpec (golint)
    • Line 40: warning: exported function SetDefaults_AppStatus should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; func SetDefaults_AppStatus should be SetDefaultsAppStatus (golint)
    • Line 46: warning: exported function SetDefaults_AppHistorySpec should have comment or be unexported (golint)
    • Line 46: warning: don't use underscores in Go names; func SetDefaults_AppHistorySpec should be SetDefaultsAppHistorySpec (golint)
    • Line 52: warning: exported function SetDefaults_ConfigMap should have comment or be unexported (golint)
    • Line 52: warning: don't use underscores in Go names; func SetDefaults_ConfigMap should be SetDefaultsConfigMap (golint)
    • /tkestack.io/tke/pkg/platform/controller/addon/lbcf/images/images.go
    • Line 34: warning: exported type Components should have comment or be unexported (golint)
    • Line 38: warning: exported method Components.Get should have comment or be unexported (golint)
    • Line 55: warning: exported function List should have comment or be unexported (golint)
    • Line 73: warning: exported function Validate should have comment or be unexported (golint)
    • Line 81: warning: exported function Get should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/util/proxy/models.go
    • Line 26: warning: exported type BaseAPIResponse should have comment or be unexported (golint)
    • Line 33: warning: exported type Response should have comment or be unexported (golint)
    • Line 44: warning: exported type Page should have comment or be unexported (golint)
    • Line 67: warning: exported type APIError should have comment or be unexported (golint)
    • Line 72: warning: exported method APIResponse.Code should have comment or be unexported (golint)
    • Line 76: warning: exported method APIResponse.Message should have comment or be unexported (golint)
    • Line 80: warning: exported method APIResponse.RawData should have comment or be unexported (golint)
    • Line 84: warning: exported method APIResponse.SetData should have comment or be unexported (golint)
    • Line 88: warning: exported type APIPageResponse should have comment or be unexported (golint)
    • Line 98: warning: exported method APIPageResponse.Code should have comment or be unexported (golint)
    • Line 102: warning: exported method APIPageResponse.Message should have comment or be unexported (golint)
    • Line 106: warning: exported method APIPageResponse.RawData should have comment or be unexported (golint)
    • Line 110: warning: exported method APIPageResponse.SetData should have comment or be unexported (golint)
    • Line 114: warning: exported type APIPage should have comment or be unexported (golint)
    • Line 119: warning: exported type PageItems should have comment or be unexported (golint)
    • Line 121: warning: exported method PageItems.Filter should have comment or be unexported (golint)
    • Line 133: warning: exported method PageItems.First should have comment or be unexported (golint)
    • Line 145: warning: exported method PageItems.Paging should have comment or be unexported (golint)
    • Line 165: warning: exported type PageQuery should have comment or be unexported (golint)
    • Line 170: warning: exported type TCMErrorResponse should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_icon.go
    • Line 2: warning: package comment should be of the form "Package client ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 27: warning: exported type IconApiService should have comment or be unexported (golint)
    • Line 38: warning: exported type IconApiGetIconOpts should have comment or be unexported (golint)
    • Line 42: warning: exported method IconApiService.GetIcon should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/services/rest/types.go
    • Line 76: warning: exported type MetricRequest should have comment or be unexported (golint)
    • Line 88: warning: exported type Condition should have comment or be unexported (golint)
    • Line 90: warning: exported type MetricData should have comment or be unexported (golint)
    • Line 95: warning: exported type MetricQuery should have comment or be unexported (golint)
    • Line 112: warning: exported type MetricQueryCondition should have comment or be unexported (golint)
    • Line 118: warning: exported type TopoQuery should have comment or be unexported (golint)
    • Line 129: warning: exported type TopoData should have comment or be unexported (golint)
    • Line 134: warning: exported type Edge should have comment or be unexported (golint)
    • Line 140: warning: exported type Node should have comment or be unexported (golint)
    • Line 149: warning: exported type HTTPMetric should have comment or be unexported (golint)
    • Line 157: warning: exported type TCPMetric should have comment or be unexported (golint)
    • Line 163: warning: exported type MicroService should have comment or be unexported (golint)
    • Line 173: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 180: warning: exported type Workload should have comment or be unexported (golint)
    • /tkestack.io/tke/api/monitor/v1/types_swagger_doc_generated.go
    • Line 32: warning: don't use underscores in Go names; var map_ClusterOverview should be mapClusterOverview (golint)
    • Line 36: warning: exported method ClusterOverview.SwaggerDoc should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; var map_ConfigMap should be mapConfigMap (golint)
    • Line 46: warning: exported method ConfigMap.SwaggerDoc should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; var map_ConfigMapList should be mapConfigMapList (golint)
    • Line 55: warning: exported method ConfigMapList.SwaggerDoc should have comment or be unexported (golint)
    • Line 59: warning: don't use underscores in Go names; var map_Metric should be mapMetric (golint)
    • Line 63: warning: exported method Metric.SwaggerDoc should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; var map_MetricList should be mapMetricList (golint)
    • Line 72: warning: exported method MetricList.SwaggerDoc should have comment or be unexported (golint)
    • Line 76: warning: don't use underscores in Go names; var map_Prometheus should be mapPrometheus (golint)
    • Line 81: warning: exported method Prometheus.SwaggerDoc should have comment or be unexported (golint)
    • Line 85: warning: don't use underscores in Go names; var map_PrometheusList should be mapPrometheusList (golint)
    • Line 90: warning: exported method PrometheusList.SwaggerDoc should have comment or be unexported (golint)
    • Line 94: warning: don't use underscores in Go names; var map_PrometheusRemoteAddr should be mapPrometheusRemoteAddr (golint)
    • Line 98: warning: exported method PrometheusRemoteAddr.SwaggerDoc should have comment or be unexported (golint)
    • Line 102: warning: don't use underscores in Go names; var map_PrometheusSpec should be mapPrometheusSpec (golint)
    • Line 113: warning: exported method PrometheusSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 117: warning: don't use underscores in Go names; var map_PrometheusStatus should be mapPrometheusStatus (golint)
    • Line 126: warning: exported method PrometheusStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 130: warning: don't use underscores in Go names; var map_ResourceRequirements should be mapResourceRequirements (golint)
    • Line 134: warning: exported method ResourceRequirements.SwaggerDoc should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/auth/apiserver/apiserver.go
    • Line 58: warning: exported const OIDCPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: exported function IgnoreAuthPathPrefixes should have comment or be unexported (golint)
    • Line 73: warning: exported function IgnoreAuthzPathPrefixes should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/util/mark/mark.go
    • Line 32: warning: exported const Name should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported function Get should have comment or be unexported (golint)
    • Line 40: warning: exported function Create should have comment or be unexported (golint)
    • Line 51: warning: exported function Delete should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/res/res.go
    • Line 34: warning: exported var Docker should have comment or be unexported (golint)
    • Line 61: warning: exported type Package should have comment or be unexported (golint)
    • Line 69: warning: exported method Package.InstallWithDefault should have comment or be unexported (golint)
    • Line 74: warning: exported method Package.Install should have comment or be unexported (golint)
    • Line 92: warning: comment on exported method Package.CopyToNodeWithDefault should be of the form "CopyToNodeWithDefault ..." (golint)
    • Line 111: warning: exported method Package.ResourceForNode should have comment or be unexported (golint)
    • Line 115: warning: exported method Package.Resource should have comment or be unexported (golint)
    • Line 128: warning: exported method Package.DefaultVersion should have comment or be unexported (golint)
    • Line 132: warning: exported method Package.NormalizeVersion should have comment or be unexported (golint)
    • Line 150: warning: exported function Arch should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_auditlog.go
    • Line 2: warning: package comment should be of the form "Package client ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 26: warning: exported type AuditlogApiService should have comment or be unexported (golint)
    • Line 39: warning: exported type AuditlogApiListAuditLogsOpts should have comment or be unexported (golint)
    • Line 46: warning: exported method AuditlogApiService.ListAuditLogs should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/harbor_model_forbidden_chart_api_error.go
    • Line 1: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 9: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 11: warning: comment on exported type HarborForbiddenChartApiError should be of the form "HarborForbiddenChartApiError ..." (with optional leading article) (golint)
    • Line 14: warning: don't use underscores in Go names; struct field Error_ should be Error (golint)
    • /tkestack.io/tke/pkg/registry/harbor/client/api_artifact.go
    • Line 2: warning: package comment should be of the form "Package client ..." (golint)
    • Line 2: warning: package comment should not have leading space (golint)
    • Line 27: warning: exported type ArtifactApiService should have comment or be unexported (golint)
    • Line 41: warning: exported type ArtifactApiAddLabelOpts should have comment or be unexported (golint)
    • Line 45: warning: exported method ArtifactApiService.AddLabel should have comment or be unexported (golint)
    • Line 185: warning: exported type ArtifactApiCopyArtifactOpts should have comment or be unexported (golint)
    • Line 189: warning: exported method ArtifactApiService.CopyArtifact should have comment or be unexported (golint)
    • Line 328: warning: exported type ArtifactApiCreateTagOpts should have comment or be unexported (golint)
    • Line 332: warning: exported method ArtifactApiService.CreateTag should have comment or be unexported (golint)
    • Line 482: warning: exported type ArtifactApiDeleteArtifactOpts should have comment or be unexported (golint)
    • Line 486: warning: exported method ArtifactApiService.DeleteArtifact should have comment or be unexported (golint)
    • Line 605: warning: exported type ArtifactApiDeleteTagOpts should have comment or be unexported (golint)
    • Line 609: warning: exported method ArtifactApiService.DeleteTag should have comment or be unexported (golint)
    • Line 729: warning: exported type ArtifactApiGetAdditionOpts should have comment or be unexported (golint)
    • Line 733: warning: exported method ArtifactApiService.GetAddition should have comment or be unexported (golint)
    • Line 886: warning: exported type ArtifactApiGetArtifactOpts should have comment or be unexported (golint)
    • Line 897: warning: exported method ArtifactApiService.GetArtifact should have comment or be unexported (golint)
    • Line 1070: warning: exported type ArtifactApiListArtifactsOpts should have comment or be unexported (golint)
    • Line 1082: warning: exported method ArtifactApiService.ListArtifacts should have comment or be unexported (golint)
    • Line 1255: warning: exported type ArtifactApiListTagsOpts should have comment or be unexported (golint)
    • Line 1264: warning: exported method ArtifactApiService.ListTags should have comment or be unexported (golint)
    • Line 1425: warning: exported type ArtifactApiRemoveLabelOpts should have comment or be unexported (golint)
    • Line 1429: warning: exported method ArtifactApiService.RemoveLabel should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/gateway/apis/config/v1/types.go
    • Line 40: warning: exported type Components should have comment or be unexported (golint)
    • Line 83: warning: exported type Component should have comment or be unexported (golint)
    • Line 96: warning: exported type FrontProxyComponent should have comment or be unexported (golint)
    • Line 120: warning: exported type PassthroughComponent should have comment or be unexported (golint)
    • Line 127: warning: exported type Registry should have comment or be unexported (golint)
    • Line 133: warning: exported type Auth should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/apis/config/v1/types.go
    • Line 37: warning: exported type Region should have comment or be unexported (golint)
    • Line 41: warning: exported type Istio should have comment or be unexported (golint)
    • Line 47: warning: exported type IstioLabelSelector should have comment or be unexported (golint)
    • Line 52: warning: exported type IstioGateway should have comment or be unexported (golint)
    • Line 56: warning: exported type Components should have comment or be unexported (golint)
    • Line 60: warning: exported type MeshManagerConfig should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/mesh/services/types.go
    • Line 79: warning: comment on exported type MeshClusterService should be of the form "MeshClusterService ..." (with optional leading article) (golint)
    • Line 92: warning: comment on exported type MonitorService should be of the form "MonitorService ..." (with optional leading article) (golint)
    • /tkestack.io/tke/pkg/platform/types/v1/types.go
    • Line 45: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 51: warning: exported function GetClusterByName should have comment or be unexported (golint)
    • Line 59: warning: exported function GetCluster should have comment or be unexported (golint)
    • Line 82: warning: exported function Clientset should have comment or be unexported (golint)
    • Line 86: warning: exported method Cluster.Clientset should have comment or be unexported (golint)
    • Line 95: warning: exported method Cluster.ClientsetForBootstrap should have comment or be unexported (golint)
    • Line 103: warning: exported method Cluster.PlatformClientsetForBootstrap should have comment or be unexported (golint)
    • Line 111: warning: exported method Cluster.RegistryClientsetForBootstrap should have comment or be unexported (golint)
    • Line 119: warning: exported method Cluster.RegistryApplicationForBootstrap should have comment or be unexported (golint)
    • Line 127: warning: exported method Cluster.RESTConfigForBootstrap should have comment or be unexported (golint)
    • Line 164: warning: exported method Cluster.RESTConfig should have comment or be unexported (golint)
    • Line 187: warning: exported method Cluster.RESTConfigForClientX509 should have comment or be unexported (golint)
    • Line 200: warning: exported method Cluster.Host should have comment or be unexported (golint)
    • Line 229: warning: exported method Cluster.HostForBootstrap should have comment or be unexported (golint)
    • /tkestack.io/tke/api/platform/v1/types.go
    • Line 399: warning: exported type HA should have comment or be unexported (golint)
    • Line 404: warning: exported type TKEHA should have comment or be unexported (golint)
    • Line 409: warning: exported type ThirdPartyHA should have comment or be unexported (golint)
    • Line 414: warning: exported type File should have comment or be unexported (golint)
    • Line 419: warning: exported type HookType should have comment or be unexported (golint)
    • Line 421: warning: exported type CSIOperatorFeature should have comment or be unexported (golint)
    • Line 425: warning: exported type AuthzWebhookAddr should have comment or be unexported (golint)
    • Line 432: warning: exported type BuiltinAuthzWebhookAddr should have comment or be unexported (golint)
    • Line 434: warning: exported type ExternalAuthzWebhookAddr should have comment or be unexported (golint)
    • Line 440: warning: comment on exported const HookPreInstall should be of the form "HookPreInstall ..." (golint)
    • Line 442: warning: exported const HookPostInstall should have comment (or a comment on this block) or be unexported (golint)
    • Line 446: warning: comment on exported const HookPreClusterInstall should be of the form "HookPreClusterInstall ..." (golint)
    • Line 512: warning: exported type Upgrade should have comment or be unexported (golint)
    • Line 521: warning: exported type UpgradeMode should have comment or be unexported (golint)
    • Line 524: warning: comment on exported const UpgradeModeAuto should be of the form "UpgradeModeAuto ..." (golint)
    • Line 526: warning: comment on exported const UpgradeModeManual should be of the form "UpgradeModeManual ..." (golint)
    • /tkestack.io/tke/pkg/logagent/util/http.go
    • Line 26: warning: exported type ErrorCode should have comment or be unexported (golint)
    • Line 29: warning: exported const ErrorNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type ResponseError should have comment or be unexported (golint)
    • Line 39: warning: exported function WriteResponseError should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/util/log/log.go
    • Line 271: warning: exported function V should have comment or be unexported (golint)
    • Line 291: warning: exported function WithValues should have comment or be unexported (golint)
    • Line 297: warning: exported function WithName should have comment or be unexported (golint)
    • Line 358: warning: exported function Infow should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/client/configuration.go
    • Line 1: warning: package comment should be of the form "Package client ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 51: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 60: warning: exported function NewConfiguration should have comment or be unexported (golint)
    • Line 69: warning: exported method Configuration.AddDefaultHeader should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/util/ssh/ssh.go
    • Line 46: warning: exported type SSH should have comment or be unexported (golint)
    • Line 54: warning: exported type Config should have comment or be unexported (golint)
    • Line 72: warning: exported function New should have comment or be unexported (golint)
    • Line 116: warning: exported method SSH.Ping should have comment or be unexported (golint)
    • Line 122: warning: exported method SSH.CombinedOutput should have comment or be unexported (golint)
    • Line 133: warning: exported method SSH.Execf should have comment or be unexported (golint)
    • Line 137: warning: exported method SSH.Exec should have comment or be unexported (golint)
    • Line 174: warning: exported method SSH.CopyFile should have comment or be unexported (golint)
    • Line 184: warning: exported method SSH.CopyDir should have comment or be unexported (golint)
    • Line 199: warning: exported method SSH.WriteFile should have comment or be unexported (golint)
    • Line 230: warning: exported method SSH.ReadFile should have comment or be unexported (golint)
    • Line 234: warning: exported method SSH.Exist should have comment or be unexported (golint)
    • Line 243: warning: exported method SSH.LookPath should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/harbor_model_not_found_chart_api_error.go
    • Line 1: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 9: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 11: warning: comment on exported type HarborNotFoundChartApiError should be of the form "HarborNotFoundChartApiError ..." (with optional leading article) (golint)
    • Line 14: warning: don't use underscores in Go names; struct field Error_ should be Error (golint)
    • /tkestack.io/tke/api/logagent/types.go
    • Line 123: warning: comment on exported type LogFileTree should be of the form "LogFileTree ..." (with optional leading article) (golint)
    • Line 129: warning: exported type LogFileTreeSpec should have comment or be unexported (golint)
    • Line 139: warning: comment on exported type LogFileContent should be of the form "LogFileContent ..." (with optional leading article) (golint)
    • Line 145: warning: exported type LogFileContentSpec should have comment or be unexported (golint)
    • Line 168: warning: comment on exported type LogEsDetection should be of the form "LogEsDetection ..." (with optional leading article) (golint)
    • /tkestack.io/tke/pkg/auth/filter/filter.go
    • Line 66: warning: exported var AllowClusterNotFoundActions should have comment or be unexported (golint)
    • Line 69: warning: exported function ExtractClusterNames should have comment or be unexported (golint)
    • Line 87: warning: exported function ForbiddenResponse should have comment or be unexported (golint)
    • Line 160: warning: exported function WithInspectors should have comment or be unexported (golint)
    • /tkestack.io/tke/api/platform/v1/types_swagger_doc_generated.go
    • Line 32: warning: don't use underscores in Go names; var map_AddonSpec should be mapAddonSpec (golint)
    • Line 36: warning: exported method AddonSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; var map_CSIOperator should be mapCSIOperator (golint)
    • Line 45: warning: exported method CSIOperator.SwaggerDoc should have comment or be unexported (golint)
    • Line 49: warning: don't use underscores in Go names; var map_CSIOperatorList should be mapCSIOperatorList (golint)
    • Line 54: warning: exported method CSIOperatorList.SwaggerDoc should have comment or be unexported (golint)
    • Line 58: warning: don't use underscores in Go names; var map_CSIOperatorSpec should be mapCSIOperatorSpec (golint)
    • Line 63: warning: exported method CSIOperatorSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; var map_CSIOperatorStatus should be mapCSIOperatorStatus (golint)
    • Line 76: warning: exported method CSIOperatorStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 80: warning: don't use underscores in Go names; var map_CSIProxyOptions should be mapCSIProxyOptions (golint)
    • Line 84: warning: exported method CSIProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 88: warning: don't use underscores in Go names; var map_Cluster should be mapCluster (golint)
    • Line 93: warning: exported method Cluster.SwaggerDoc should have comment or be unexported (golint)
    • Line 97: warning: don't use underscores in Go names; var map_ClusterAddon should be mapClusterAddon (golint)
    • Line 102: warning: exported method ClusterAddon.SwaggerDoc should have comment or be unexported (golint)
    • Line 106: warning: don't use underscores in Go names; var map_ClusterAddonList should be mapClusterAddonList (golint)
    • Line 111: warning: exported method ClusterAddonList.SwaggerDoc should have comment or be unexported (golint)
    • Line 115: warning: don't use underscores in Go names; var map_ClusterAddonSpec should be mapClusterAddonSpec (golint)
    • Line 122: warning: exported method ClusterAddonSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 126: warning: don't use underscores in Go names; var map_ClusterAddonStatus should be mapClusterAddonStatus (golint)
    • Line 132: warning: exported method ClusterAddonStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 136: warning: don't use underscores in Go names; var map_ClusterAddonType should be mapClusterAddonType (golint)
    • Line 144: warning: exported method ClusterAddonType.SwaggerDoc should have comment or be unexported (golint)
    • Line 148: warning: don't use underscores in Go names; var map_ClusterAddonTypeList should be mapClusterAddonTypeList (golint)
    • Line 152: warning: exported method ClusterAddonTypeList.SwaggerDoc should have comment or be unexported (golint)
    • Line 156: warning: don't use underscores in Go names; var map_ClusterAddress should be mapClusterAddress (golint)
    • Line 162: warning: exported method ClusterAddress.SwaggerDoc should have comment or be unexported (golint)
    • Line 166: warning: don't use underscores in Go names; var map_ClusterApplyOptions should be mapClusterApplyOptions (golint)
    • Line 170: warning: exported method ClusterApplyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 174: warning: don't use underscores in Go names; var map_ClusterComponent should be mapClusterComponent (golint)
    • Line 178: warning: exported method ClusterComponent.SwaggerDoc should have comment or be unexported (golint)
    • Line 182: warning: don't use underscores in Go names; var map_ClusterComponentReplicas should be mapClusterComponentReplicas (golint)
    • Line 186: warning: exported method ClusterComponentReplicas.SwaggerDoc should have comment or be unexported (golint)
    • Line 190: warning: don't use underscores in Go names; var map_ClusterCondition should be mapClusterCondition (golint)
    • Line 200: warning: exported method ClusterCondition.SwaggerDoc should have comment or be unexported (golint)
    • Line 204: warning: don't use underscores in Go names; var map_ClusterCredential should be mapClusterCredential (golint)
    • Line 215: warning: exported method ClusterCredential.SwaggerDoc should have comment or be unexported (golint)
    • Line 219: warning: don't use underscores in Go names; var map_ClusterCredentialList should be mapClusterCredentialList (golint)
    • Line 224: warning: exported method ClusterCredentialList.SwaggerDoc should have comment or be unexported (golint)
    • Line 228: warning: don't use underscores in Go names; var map_ClusterFeature should be mapClusterFeature (golint)
    • Line 234: warning: exported method ClusterFeature.SwaggerDoc should have comment or be unexported (golint)
    • Line 238: warning: don't use underscores in Go names; var map_ClusterList should be mapClusterList (golint)
    • Line 243: warning: exported method ClusterList.SwaggerDoc should have comment or be unexported (golint)
    • Line 247: warning: don't use underscores in Go names; var map_ClusterMachine should be mapClusterMachine (golint)
    • Line 252: warning: exported method ClusterMachine.SwaggerDoc should have comment or be unexported (golint)
    • Line 256: warning: don't use underscores in Go names; var map_ClusterProperty should be mapClusterProperty (golint)
    • Line 260: warning: exported method ClusterProperty.SwaggerDoc should have comment or be unexported (golint)
    • Line 264: warning: don't use underscores in Go names; var map_ClusterResource should be mapClusterResource (golint)
    • Line 270: warning: exported method ClusterResource.SwaggerDoc should have comment or be unexported (golint)
    • Line 274: warning: don't use underscores in Go names; var map_ClusterSpec should be mapClusterSpec (golint)
    • Line 284: warning: exported method ClusterSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 288: warning: don't use underscores in Go names; var map_ClusterStatus should be mapClusterStatus (golint)
    • Line 295: warning: exported method ClusterStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 299: warning: don't use underscores in Go names; var map_ConfigMap should be mapConfigMap (golint)
    • Line 305: warning: exported method ConfigMap.SwaggerDoc should have comment or be unexported (golint)
    • Line 309: warning: don't use underscores in Go names; var map_ConfigMapList should be mapConfigMapList (golint)
    • Line 314: warning: exported method ConfigMapList.SwaggerDoc should have comment or be unexported (golint)
    • Line 318: warning: don't use underscores in Go names; var map_CronHPA should be mapCronHPA (golint)
    • Line 323: warning: exported method CronHPA.SwaggerDoc should have comment or be unexported (golint)
    • Line 327: warning: don't use underscores in Go names; var map_CronHPAList should be mapCronHPAList (golint)
    • Line 332: warning: exported method CronHPAList.SwaggerDoc should have comment or be unexported (golint)
    • Line 336: warning: don't use underscores in Go names; var map_CronHPAProxyOptions should be mapCronHPAProxyOptions (golint)
    • Line 340: warning: exported method CronHPAProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 344: warning: don't use underscores in Go names; var map_CronHPASpec should be mapCronHPASpec (golint)
    • Line 348: warning: exported method CronHPASpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 352: warning: don't use underscores in Go names; var map_CronHPAStatus should be mapCronHPAStatus (golint)
    • Line 360: warning: exported method CronHPAStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 364: warning: don't use underscores in Go names; var map_Etcd should be mapEtcd (golint)
    • Line 370: warning: exported method Etcd.SwaggerDoc should have comment or be unexported (golint)
    • Line 374: warning: don't use underscores in Go names; var map_ExternalEtcd should be mapExternalEtcd (golint)
    • Line 382: warning: exported method ExternalEtcd.SwaggerDoc should have comment or be unexported (golint)
    • Line 386: warning: don't use underscores in Go names; var map_Helm should be mapHelm (golint)
    • Line 391: warning: exported method Helm.SwaggerDoc should have comment or be unexported (golint)
    • Line 395: warning: don't use underscores in Go names; var map_HelmList should be mapHelmList (golint)
    • Line 400: warning: exported method HelmList.SwaggerDoc should have comment or be unexported (golint)
    • Line 404: warning: don't use underscores in Go names; var map_HelmProxyOptions should be mapHelmProxyOptions (golint)
    • Line 409: warning: exported method HelmProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 413: warning: don't use underscores in Go names; var map_HelmSpec should be mapHelmSpec (golint)
    • Line 417: warning: exported method HelmSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 421: warning: don't use underscores in Go names; var map_HelmStatus should be mapHelmStatus (golint)
    • Line 429: warning: exported method HelmStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 433: warning: don't use underscores in Go names; var map_IPAM should be mapIPAM (golint)
    • Line 438: warning: exported method IPAM.SwaggerDoc should have comment or be unexported (golint)
    • Line 442: warning: don't use underscores in Go names; var map_IPAMList should be mapIPAMList (golint)
    • Line 447: warning: exported method IPAMList.SwaggerDoc should have comment or be unexported (golint)
    • Line 451: warning: don't use underscores in Go names; var map_IPAMProxyOptions should be mapIPAMProxyOptions (golint)
    • Line 456: warning: exported method IPAMProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 460: warning: don't use underscores in Go names; var map_IPAMSpec should be mapIPAMSpec (golint)
    • Line 464: warning: exported method IPAMSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 468: warning: don't use underscores in Go names; var map_IPAMStatus should be mapIPAMStatus (golint)
    • Line 476: warning: exported method IPAMStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 480: warning: don't use underscores in Go names; var map_LBCF should be mapLBCF (golint)
    • Line 485: warning: exported method LBCF.SwaggerDoc should have comment or be unexported (golint)
    • Line 489: warning: don't use underscores in Go names; var map_LBCFList should be mapLBCFList (golint)
    • Line 494: warning: exported method LBCFList.SwaggerDoc should have comment or be unexported (golint)
    • Line 498: warning: don't use underscores in Go names; var map_LBCFProxyOptions should be mapLBCFProxyOptions (golint)
    • Line 502: warning: exported method LBCFProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 506: warning: don't use underscores in Go names; var map_LBCFSpec should be mapLBCFSpec (golint)
    • Line 510: warning: exported method LBCFSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 514: warning: don't use underscores in Go names; var map_LBCFStatus should be mapLBCFStatus (golint)
    • Line 522: warning: exported method LBCFStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 526: warning: don't use underscores in Go names; var map_LocalEtcd should be mapLocalEtcd (golint)
    • Line 534: warning: exported method LocalEtcd.SwaggerDoc should have comment or be unexported (golint)
    • Line 538: warning: don't use underscores in Go names; var map_LogCollector should be mapLogCollector (golint)
    • Line 543: warning: exported method LogCollector.SwaggerDoc should have comment or be unexported (golint)
    • Line 547: warning: don't use underscores in Go names; var map_LogCollectorList should be mapLogCollectorList (golint)
    • Line 552: warning: exported method LogCollectorList.SwaggerDoc should have comment or be unexported (golint)
    • Line 556: warning: don't use underscores in Go names; var map_LogCollectorProxyOptions should be mapLogCollectorProxyOptions (golint)
    • Line 560: warning: exported method LogCollectorProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 564: warning: don't use underscores in Go names; var map_LogCollectorSpec should be mapLogCollectorSpec (golint)
    • Line 568: warning: exported method LogCollectorSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 572: warning: don't use underscores in Go names; var map_LogCollectorStatus should be mapLogCollectorStatus (golint)
    • Line 580: warning: exported method LogCollectorStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 584: warning: don't use underscores in Go names; var map_Machine should be mapMachine (golint)
    • Line 589: warning: exported method Machine.SwaggerDoc should have comment or be unexported (golint)
    • Line 593: warning: don't use underscores in Go names; var map_MachineAddress should be mapMachineAddress (golint)
    • Line 599: warning: exported method MachineAddress.SwaggerDoc should have comment or be unexported (golint)
    • Line 603: warning: don't use underscores in Go names; var map_MachineCondition should be mapMachineCondition (golint)
    • Line 613: warning: exported method MachineCondition.SwaggerDoc should have comment or be unexported (golint)
    • Line 617: warning: don't use underscores in Go names; var map_MachineList should be mapMachineList (golint)
    • Line 622: warning: exported method MachineList.SwaggerDoc should have comment or be unexported (golint)
    • Line 626: warning: don't use underscores in Go names; var map_MachineSpec should be mapMachineSpec (golint)
    • Line 632: warning: exported method MachineSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 636: warning: don't use underscores in Go names; var map_MachineStatus should be mapMachineStatus (golint)
    • Line 644: warning: exported method MachineStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 648: warning: don't use underscores in Go names; var map_MachineSystemInfo should be mapMachineSystemInfo (golint)
    • Line 662: warning: exported method MachineSystemInfo.SwaggerDoc should have comment or be unexported (golint)
    • Line 666: warning: don't use underscores in Go names; var map_PVCRProxyOptions should be mapPVCRProxyOptions (golint)
    • Line 670: warning: exported method PVCRProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 674: warning: don't use underscores in Go names; var map_PersistentBackEnd should be mapPersistentBackEnd (golint)
    • Line 678: warning: exported method PersistentBackEnd.SwaggerDoc should have comment or be unexported (golint)
    • Line 682: warning: don't use underscores in Go names; var map_PersistentEvent should be mapPersistentEvent (golint)
    • Line 687: warning: exported method PersistentEvent.SwaggerDoc should have comment or be unexported (golint)
    • Line 691: warning: don't use underscores in Go names; var map_PersistentEventList should be mapPersistentEventList (golint)
    • Line 696: warning: exported method PersistentEventList.SwaggerDoc should have comment or be unexported (golint)
    • Line 700: warning: don't use underscores in Go names; var map_PersistentEventSpec should be mapPersistentEventSpec (golint)
    • Line 704: warning: exported method PersistentEventSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 708: warning: don't use underscores in Go names; var map_PersistentEventStatus should be mapPersistentEventStatus (golint)
    • Line 716: warning: exported method PersistentEventStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 720: warning: don't use underscores in Go names; var map_Prometheus should be mapPrometheus (golint)
    • Line 725: warning: exported method Prometheus.SwaggerDoc should have comment or be unexported (golint)
    • Line 729: warning: don't use underscores in Go names; var map_PrometheusList should be mapPrometheusList (golint)
    • Line 734: warning: exported method PrometheusList.SwaggerDoc should have comment or be unexported (golint)
    • Line 738: warning: don't use underscores in Go names; var map_PrometheusRemoteAddr should be mapPrometheusRemoteAddr (golint)
    • Line 742: warning: exported method PrometheusRemoteAddr.SwaggerDoc should have comment or be unexported (golint)
    • Line 746: warning: don't use underscores in Go names; var map_PrometheusSpec should be mapPrometheusSpec (golint)
    • Line 757: warning: exported method PrometheusSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 761: warning: don't use underscores in Go names; var map_PrometheusStatus should be mapPrometheusStatus (golint)
    • Line 770: warning: exported method PrometheusStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 774: warning: don't use underscores in Go names; var map_Registry should be mapRegistry (golint)
    • Line 778: warning: exported method Registry.SwaggerDoc should have comment or be unexported (golint)
    • Line 782: warning: don't use underscores in Go names; var map_RegistryList should be mapRegistryList (golint)
    • Line 786: warning: exported method RegistryList.SwaggerDoc should have comment or be unexported (golint)
    • Line 790: warning: don't use underscores in Go names; var map_RegistrySpec should be mapRegistrySpec (golint)
    • Line 794: warning: exported method RegistrySpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 798: warning: don't use underscores in Go names; var map_ResourceRequirements should be mapResourceRequirements (golint)
    • Line 802: warning: exported method ResourceRequirements.SwaggerDoc should have comment or be unexported (golint)
    • Line 806: warning: don't use underscores in Go names; var map_StorageBackEndCLS should be mapStorageBackEndCLS (golint)
    • Line 810: warning: exported method StorageBackEndCLS.SwaggerDoc should have comment or be unexported (golint)
    • Line 814: warning: don't use underscores in Go names; var map_StorageBackEndES should be mapStorageBackEndES (golint)
    • Line 818: warning: exported method StorageBackEndES.SwaggerDoc should have comment or be unexported (golint)
    • Line 822: warning: don't use underscores in Go names; var map_TappController should be mapTappController (golint)
    • Line 827: warning: exported method TappController.SwaggerDoc should have comment or be unexported (golint)
    • Line 831: warning: don't use underscores in Go names; var map_TappControllerList should be mapTappControllerList (golint)
    • Line 836: warning: exported method TappControllerList.SwaggerDoc should have comment or be unexported (golint)
    • Line 840: warning: don't use underscores in Go names; var map_TappControllerProxyOptions should be mapTappControllerProxyOptions (golint)
    • Line 844: warning: exported method TappControllerProxyOptions.SwaggerDoc should have comment or be unexported (golint)
    • Line 848: warning: don't use underscores in Go names; var map_TappControllerSpec should be mapTappControllerSpec (golint)
    • Line 852: warning: exported method TappControllerSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 856: warning: don't use underscores in Go names; var map_TappControllerStatus should be mapTappControllerStatus (golint)
    • Line 864: warning: exported method TappControllerStatus.SwaggerDoc should have comment or be unexported (golint)
    • Line 868: warning: don't use underscores in Go names; var map_Upgrade should be mapUpgrade (golint)
    • Line 873: warning: exported method Upgrade.SwaggerDoc should have comment or be unexported (golint)
    • Line 877: warning: don't use underscores in Go names; var map_UpgradeStrategy should be mapUpgradeStrategy (golint)
    • Line 883: warning: exported method UpgradeStrategy.SwaggerDoc should have comment or be unexported (golint)
    • Line 887: warning: don't use underscores in Go names; var map_VolumeDecorator should be mapVolumeDecorator (golint)
    • Line 892: warning: exported method VolumeDecorator.SwaggerDoc should have comment or be unexported (golint)
    • Line 896: warning: don't use underscores in Go names; var map_VolumeDecoratorList should be mapVolumeDecoratorList (golint)
    • Line 901: warning: exported method VolumeDecoratorList.SwaggerDoc should have comment or be unexported (golint)
    • Line 905: warning: don't use underscores in Go names; var map_VolumeDecoratorSpec should be mapVolumeDecoratorSpec (golint)
    • Line 909: warning: exported method VolumeDecoratorSpec.SwaggerDoc should have comment or be unexported (golint)
    • Line 913: warning: don't use underscores in Go names; var map_VolumeDecoratorStatus should be mapVolumeDecoratorStatus (golint)
    • Line 924: warning: exported method VolumeDecoratorStatus.SwaggerDoc should have comment or be unexported (golint)
    • /tkestack.io/tke/cmd/tke-installer/app/installer/images/images.go
    • Line 30: warning: exported type Components should have comment or be unexported (golint)
    • Line 60: warning: exported method Components.Get should have comment or be unexported (golint)
    • Line 71: warning: exported var Version should have comment or be unexported (golint)
    • Line 103: warning: exported function List should have comment or be unexported (golint)
    • Line 115: warning: exported function Get should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/registry/harbor/helmClient/response.go
    • Line 1: warning: package comment should be of the form "Package helmClient ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 9: warning: don't use MixedCaps in package name; helmClient should be helmclient (golint)
    • Line 15: warning: exported type APIResponse should have comment or be unexported (golint)
    • Line 32: warning: exported function NewAPIResponse should have comment or be unexported (golint)
    • Line 38: warning: exported function NewAPIResponseWithError should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/util/apiclient/version.go
    • Line 29: warning: exported function ClusterVersionIsBefore19 should have comment or be unexported (golint)
    • Line 38: warning: exported function ClusterVersionIsBefore116 should have comment or be unexported (golint)
    • Line 47: warning: exported function ClusterVersionIsBefore118 should have comment or be unexported (golint)
    • Line 56: warning: exported function CheckClusterVersion should have comment or be unexported (golint)
    • Line 65: warning: exported function GetClusterVersion should have comment or be unexported (golint)
    • Line 73: warning: exported function CheckVersion should have comment or be unexported (golint)
    • Line 86: warning: exported function CheckVersionOrDie should have comment or be unexported (golint)
    • /tkestack.io/tke/test/tke/tke.go
    • Line 25: warning: exported type TestTKE should have comment or be unexported (golint)
    • Line 31: warning: exported function Init should have comment or be unexported (golint)
    • Line 39: warning: exported method TestTKE.K8sClient should have comment or be unexported (golint)
    • Line 51: warning: exported method TestTKE.CreateCluster should have comment or be unexported (golint)
    • Line 56: warning: exported method TestTKE.ClusterTemplate should have comment or be unexported (golint)
    • Line 87: warning: exported method TestTKE.CreateClusterInternal should have comment or be unexported (golint)
    • Line 108: warning: exported method TestTKE.UpgradeCluster should have comment or be unexported (golint)
    • Line 162: warning: exported method TestTKE.ScaleDown should have comment or be unexported (golint)
    • Line 191: warning: exported method TestTKE.WaitClusterToBeRunning should have comment or be unexported (golint)
    • Line 211: warning: exported method TestTKE.ImportCluster should have comment or be unexported (golint)
    • Line 256: warning: exported method TestTKE.DeleteCluster should have comment or be unexported (golint)
    • Line 284: warning: exported method TestTKE.AddNode should have comment or be unexported (golint)
    • Line 318: warning: exported method TestTKE.DeleteNode should have comment or be unexported (golint)
    • Line 336: warning: exported method TestTKE.UnscheduleNode should have comment or be unexported (golint)
    • Line 340: warning: exported method TestTKE.CancleUnschedulableNode should have comment or be unexported (golint)
    • Line 361: warning: exported method TestTKE.CreateInstances should have comment or be unexported (golint)
    • /tkestack.io/tke/api/registry/types.go
    • Line 111: warning: exported type RepositorySpec should have comment or be unexported (golint)
    • Line 121: warning: exported type RepositoryStatus should have comment or be unexported (golint)
    • Line 128: warning: exported type RepositoryTag should have comment or be unexported (golint)
    • Line 278: warning: exported type ChartSpec should have comment or be unexported (golint)
    • Line 290: warning: exported type ChartStatus should have comment or be unexported (golint)
    • Line 308: warning: exported type ChartVersion should have comment or be unexported (golint)
    • /tkestack.io/tke/test/e2e/tke/tke.go
    • Line 47: warning: exported const TIMEOUT should have comment or be unexported (golint)
    • Line 56: warning: exported type TKE should have comment or be unexported (golint)
    • Line 64: warning: exported method TKE.Create should have comment or be unexported (golint)
    • Line 74: warning: exported method TKE.Delete should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/platform/provider/baremetal/cluster/provider.go
    • Line 55: warning: exported type Provider should have comment or be unexported (golint)
    • Line 64: warning: exported function NewProvider should have comment or be unexported (golint)
    • Line 186: warning: exported method Provider.RegisterHandler should have comment or be unexported (golint)
    • Line 192: warning: exported method Provider.Validate should have comment or be unexported (golint)
    • Line 196: warning: exported method Provider.PreCreate should have comment or be unexported (golint)
    • /tkestack.io/tke/pkg/auth/util/user.go
    • Line 41: warning: exported const PolicyTag should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported function GetLocalIdentity should have comment or be unexported (golint)
    • Line 66: warning: exported function GetUserByName should have comment or be unexported (golint)
    • Line 84: warning: exported function UserKey should have comment or be unexported (golint)
    • Line 88: warning: exported function UserPrefix should have comment or be unexported (golint)
    • Line 92: warning: exported function ProjectPolicyName should have comment or be unexported (golint)
    • Line 96: warning: exported function GetGroupsForUser should have comment or be unexported (golint)
    • Line 106: warning: exported function ParseTenantAndName should have comment or be unexported (golint)
    • Line 115: warning: exported function CombineTenantAndName should have comment or be unexported (golint)
    • Line 119: warning: exported function GetPoliciesFromUserExtra should have comment or be unexported (golint)
    • Line 145: warning: exported function BindUserPolicies should have comment or be unexported (golint)
    • Line 167: warning: exported function UnBindUserPolicies should have comment or be unexported (golint)
    • Line 189: warning: exported function HandleUserPoliciesUpdate should have comment or be unexported (golint)
    • Line 219: warning: exported function SetAdministrator should have comment or be unexported (golint)
    • Line 248: warning: exported function IsPlatformAdministrator should have comment or be unexported (golint)
    • Line 255: warning: exported function FillUserPolicies should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!