Preparing report...

Report for openpitrix.io/openpitrix

A+    Excellent!    Found 306 issues across 412 files

Tweet

gofmt99%

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!


gocyclo92%

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.

    • /openpitrix.io/openpitrix/pkg/service/cluster/handler.go
    • Line 36: warning: cyclomatic complexity 25 of function getClusterWrapper() is high (> 15) (gocyclo)
    • Line 1649: warning: cyclomatic complexity 22 of function (*Server).describeAppClusters() is high (> 15) (gocyclo)
    • Line 1219: warning: cyclomatic complexity 22 of function (*Server).AddClusterNodes() is high (> 15) (gocyclo)
    • Line 742: warning: cyclomatic complexity 19 of function (*Server).ModifyCluster() is high (> 15) (gocyclo)
    • Line 428: warning: cyclomatic complexity 17 of function (*Server).AttachKeyPairs() is high (> 15) (gocyclo)
    • Line 534: warning: cyclomatic complexity 17 of function (*Server).DetachKeyPairs() is high (> 15) (gocyclo)
    • Line 1552: warning: cyclomatic complexity 17 of function (*Server).describeClusters() is high (> 15) (gocyclo)
    • /openpitrix.io/openpitrix/pkg/service/app/handler.go
    • Line 354: warning: cyclomatic complexity 24 of function (*Server).UploadAppAttachment() is high (> 15) (gocyclo)
    • Line 171: warning: cyclomatic complexity 23 of function (*Server).CreateApp() is high (> 15) (gocyclo)
    • Line 875: warning: cyclomatic complexity 19 of function (*Server).SubmitAppVersion() is high (> 15) (gocyclo)
    • Line 1167: warning: cyclomatic complexity 17 of function passAppVersion() is high (> 15) (gocyclo)

golint27%

Golint is a linter for Go source code.

    • /openpitrix.io/openpitrix/pkg/service/helm/proxy.go
    • Line 45: warning: exported const Type should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported var NamespaceReg should have comment or be unexported (golint)
    • Line 57: warning: comment on exported type Proxy should be of the form "Proxy ..." (with optional leading article) (golint)
    • Line 64: warning: exported type Workload should have comment or be unexported (golint)
    • Line 72: warning: exported function NewProxy should have comment or be unexported (golint)
    • Line 82: warning: exported method Proxy.GetKubeClient should have comment or be unexported (golint)
    • Line 111: warning: exported method Proxy.GetKubeClientWithCredential should have comment or be unexported (golint)
    • Line 131: warning: exported method Proxy.GetHelmConfig should have comment or be unexported (golint)
    • Line 165: warning: exported method Proxy.ListRelease should have comment or be unexported (golint)
    • Line 185: warning: exported method Proxy.InstallReleaseFromChart should have comment or be unexported (golint)
    • Line 205: warning: exported method Proxy.UpdateReleaseFromChart should have comment or be unexported (golint)
    • Line 222: warning: exported method Proxy.RollbackRelease should have comment or be unexported (golint)
    • Line 232: warning: exported method Proxy.DeleteRelease should have comment or be unexported (golint)
    • Line 251: warning: exported method Proxy.ReleaseStatus should have comment or be unexported (golint)
    • Line 261: warning: exported method Proxy.CheckClusterNameIsUnique should have comment or be unexported (golint)
    • Line 291: warning: exported method Proxy.DescribeVersionInfo should have comment or be unexported (golint)
    • Line 300: warning: exported method Proxy.CheckApiVersionsSupported should have comment or be unexported (golint)
    • Line 335: warning: exported method Proxy.WaitWorkloadReady should have comment or be unexported (golint)
    • Line 463: warning: exported method Proxy.DescribeClusterDetails should have comment or be unexported (golint)
    • Line 497: warning: exported method Proxy.ValidateRuntime should have comment or be unexported (golint)
    • Line 539: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 554: warning: exported method Proxy.DescribeRuntimeProviderZones should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/iam.go
    • Line 15: warning: exported function ToPbRole should have comment or be unexported (golint)
    • Line 34: warning: exported function ToPbRoles should have comment or be unexported (golint)
    • Line 42: warning: exported function ToPbGroup should have comment or be unexported (golint)
    • Line 59: warning: exported function ToPbGroups should have comment or be unexported (golint)
    • Line 67: warning: exported function ToPbUsers should have comment or be unexported (golint)
    • Line 75: warning: exported function ToPbUser should have comment or be unexported (golint)
    • Line 92: warning: exported function ToPbModule should have comment or be unexported (golint)
    • Line 101: warning: exported function ToAmModule should have comment or be unexported (golint)
    • Line 110: warning: exported function ToPbModuleElems should have comment or be unexported (golint)
    • Line 124: warning: exported function ToAmModuleElems should have comment or be unexported (golint)
    • Line 138: warning: exported function ToPbFeatures should have comment or be unexported (golint)
    • Line 151: warning: exported function ToAmFeatures should have comment or be unexported (golint)
    • Line 164: warning: exported function ToPbActionBundles should have comment or be unexported (golint)
    • Line 176: warning: exported function ToAmActionBundles should have comment or be unexported (golint)
    • Line 188: warning: exported function ToPbApis should have comment or be unexported (golint)
    • Line 201: warning: exported function ToAmApis should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/backend.go
    • Line 14: warning: exported type BackendConfig should have comment or be unexported (golint)
    • Line 28: warning: exported method BackendConfig.Clone should have comment or be unexported (golint)
    • Line 34: warning: exported type BackendClient should have comment or be unexported (golint)
    • Line 42: warning: exported function MustNewBackendClient should have comment or be unexported (golint)
    • Line 50: warning: exported function NewBackendClient should have comment or be unexported (golint)
    • Line 64: warning: exported function MustLoadBackendConfig should have comment or be unexported (golint)
    • Line 72: warning: exported function LoadBackendConfig should have comment or be unexported (golint)
    • Line 81: warning: exported function LoadBackendConfigFromJsonString should have comment or be unexported (golint)
    • Line 89: warning: exported function RegisterBackendClient should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/app_version_review.go
    • Line 19: warning: exported function NewAppVersionReviewId should have comment or be unexported (golint)
    • Line 23: warning: exported type AppVersionReviewPhase should have comment or be unexported (golint)
    • Line 31: warning: exported type AppVersionReviewPhases should have comment or be unexported (golint)
    • Line 33: warning: exported method AppVersionReviewPhases.Scan should have comment or be unexported (golint)
    • Line 58: warning: exported type AppVersionReview should have comment or be unexported (golint)
    • Line 70: warning: exported type AppVersionReviews should have comment or be unexported (golint)
    • Line 72: warning: exported method AppVersionReview.UpdatePhase should have comment or be unexported (golint)
    • Line 89: warning: exported var AppVersionReviewColumns should have comment or be unexported (golint)
    • Line 91: warning: exported function NewAppVersionReview should have comment or be unexported (golint)
    • Line 104: warning: exported function AppVersionReviewToPb should have comment or be unexported (golint)
    • Line 131: warning: exported function AppVersionReviewsToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/cluster_loadbalancer.go
    • Line 13: warning: exported type ClusterLoadbalancer should have comment or be unexported (golint)
    • Line 21: warning: exported var ClusterLoadbalancerColumns should have comment or be unexported (golint)
    • Line 23: warning: exported function ClusterLoadbalancerToPb should have comment or be unexported (golint)
    • Line 33: warning: exported function PbToClusterLoadbalancer should have comment or be unexported (golint)
    • Line 43: warning: exported function ClusterLoadbalancersToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/devkit/opapp/metadata.go
    • Line 9: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 23: warning: exported type Maintainer should have comment or be unexported (golint)
    • Line 28: warning: exported method Metadata.GetAppVersion should have comment or be unexported (golint)
    • Line 35: warning: exported method Metadata.GetApiVersion should have comment or be unexported (golint)
    • Line 42: warning: exported method Metadata.GetIcon should have comment or be unexported (golint)
    • Line 48: warning: exported method Metadata.GetMaintainers should have comment or be unexported (golint)
    • Line 55: warning: exported method Metadata.GetName should have comment or be unexported (golint)
    • Line 62: warning: exported method Metadata.GetHome should have comment or be unexported (golint)
    • Line 69: warning: exported method Metadata.GetSources should have comment or be unexported (golint)
    • Line 76: warning: exported method Metadata.GetKeywords should have comment or be unexported (golint)
    • Line 83: warning: exported method Metadata.GetVersion should have comment or be unexported (golint)
    • Line 90: warning: exported method Metadata.GetDescription should have comment or be unexported (golint)
    • Line 97: warning: exported method Metadata.GetScreenshots should have comment or be unexported (golint)
    • Line 104: warning: exported method Metadata.GetPackageName should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/user_client.go
    • Line 15: warning: exported function NewUserClientId should have comment or be unexported (golint)
    • Line 19: warning: exported type UserClient should have comment or be unexported (golint)
    • Line 28: warning: exported var UserClientColumns should have comment or be unexported (golint)
    • Line 30: warning: exported function NewUserClient should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/role_resource.go
    • Line 9: warning: exported type RoleResource should have comment or be unexported (golint)
    • Line 18: warning: exported function PbToRoleResource should have comment or be unexported (golint)
    • Line 30: warning: exported method RoleResource.IsSame should have comment or be unexported (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 71: warning: exported type RoleResizeResource should have comment or be unexported (golint)
    • Line 80: warning: exported type RoleResizeResources should have comment or be unexported (golint)
    • Line 82: warning: exported function NewRoleResizeResources should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/runtime_provider/handler.go
    • Line 5: warning: don't use an underscore in package name (golint)
    • Line 51: warning: exported method Server.RegisterRuntimeProvider should have comment or be unexported (golint)
    • Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 65: warning: exported method Server.ParseClusterConf should have comment or be unexported (golint)
    • Line 75: warning: exported method Server.SplitJobIntoTasks should have comment or be unexported (golint)
    • Line 85: warning: exported method Server.HandleSubtask should have comment or be unexported (golint)
    • Line 96: warning: exported method Server.WaitSubtask should have comment or be unexported (golint)
    • Line 106: warning: exported method Server.DescribeSubnets should have comment or be unexported (golint)
    • Line 116: warning: exported method Server.CheckResource should have comment or be unexported (golint)
    • Line 126: warning: exported method Server.DescribeVpc should have comment or be unexported (golint)
    • Line 136: warning: exported method Server.DescribeClusterDetails should have comment or be unexported (golint)
    • Line 146: warning: exported method Server.ValidateRuntime should have comment or be unexported (golint)
    • Line 155: warning: exported method Server.DescribeZones should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/runtime/handler.go
    • Line 26: warning: exported method Server.CreateRuntime should have comment or be unexported (golint)
    • Line 30: warning: exported method Server.CreateDebugRuntime should have comment or be unexported (golint)
    • Line 139: warning: exported method Server.DescribeRuntimes should have comment or be unexported (golint)
    • Line 143: warning: exported method Server.DescribeDebugRuntimes should have comment or be unexported (golint)
    • Line 180: warning: exported method Server.DescribeRuntimeDetails should have comment or be unexported (golint)
    • Line 214: warning: exported method Server.ModifyRuntime should have comment or be unexported (golint)
    • Line 264: warning: exported method Server.DeleteRuntimes should have comment or be unexported (golint)
    • Line 328: warning: exported method Server.CreateRuntimeCredential should have comment or be unexported (golint)
    • Line 332: warning: exported method Server.CreateDebugRuntimeCredential should have comment or be unexported (golint)
    • Line 431: warning: exported method Server.DescribeRuntimeCredentials should have comment or be unexported (golint)
    • Line 435: warning: exported method Server.DescribeDebugRuntimeCredentials should have comment or be unexported (golint)
    • Line 476: warning: exported method Server.DeleteRuntimeCredentials should have comment or be unexported (golint)
    • Line 520: warning: exported method Server.ModifyRuntimeCredential should have comment or be unexported (golint)
    • Line 584: warning: exported method Server.ValidateRuntimeCredential should have comment or be unexported (golint)
    • Line 601: warning: exported method Server.DescribeRuntimeProviderZones should have comment or be unexported (golint)
    • Line 634: warning: exported method Server.GetRuntimeStatistics should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/pilot/handler.go
    • Line 28: warning: exported method Server.GetPilotVersion should have comment or be unexported (golint)
    • Line 36: warning: exported method Server.GetFrontgateVersion should have comment or be unexported (golint)
    • Line 41: warning: exported method Server.GetDroneVersion should have comment or be unexported (golint)
    • Line 47: warning: exported method Server.PingMetadataBackend should have comment or be unexported (golint)
    • Line 71: warning: exported method Server.GetPilotConfig should have comment or be unexported (golint)
    • Line 77: warning: exported method Server.GetPilotClientTLSConfig should have comment or be unexported (golint)
    • Line 90: warning: exported method Server.GetFrontgateList should have comment or be unexported (golint)
    • Line 96: warning: exported method Server.GetFrontgateConfig should have comment or be unexported (golint)
    • Line 120: warning: exported method Server.SetFrontgateConfig should have comment or be unexported (golint)
    • Line 144: warning: exported method Server.GetDroneConfig should have comment or be unexported (golint)
    • Line 167: warning: exported method Server.SetDroneConfig should have comment or be unexported (golint)
    • Line 191: warning: exported method Server.FrontgateChannel should have comment or be unexported (golint)
    • Line 209: warning: exported method Server.GetConfdConfig should have comment or be unexported (golint)
    • Line 236: warning: exported method Server.IsConfdRunning should have comment or be unexported (golint)
    • Line 263: warning: exported method Server.StartConfd should have comment or be unexported (golint)
    • Line 290: warning: exported method Server.StopConfd should have comment or be unexported (golint)
    • Line 317: warning: exported method Server.RegisterMetadata should have comment or be unexported (golint)
    • Line 341: warning: exported method Server.DeregisterMetadata should have comment or be unexported (golint)
    • Line 365: warning: exported method Server.RegisterMetadataMapping should have comment or be unexported (golint)
    • Line 389: warning: exported method Server.DeregisterMetadataMapping should have comment or be unexported (golint)
    • Line 413: warning: exported method Server.RegisterCmd should have comment or be unexported (golint)
    • Line 437: warning: exported method Server.DeregisterCmd should have comment or be unexported (golint)
    • Line 461: warning: exported method Server.ReportSubTaskStatus should have comment or be unexported (golint)
    • Line 468: warning: exported method Server.GetSubtaskStatus should have comment or be unexported (golint)
    • Line 480: warning: exported method Server.HandleSubtask should have comment or be unexported (golint)
    • Line 737: warning: exported method Server.PingPilot should have comment or be unexported (golint)
    • Line 743: warning: exported method Server.PingFrontgate should have comment or be unexported (golint)
    • Line 767: warning: exported method Server.PingFrontgateNode should have comment or be unexported (golint)
    • Line 791: warning: exported method Server.PingDrone should have comment or be unexported (golint)
    • Line 819: warning: exported method Server.RunCommandOnFrontgateNode should have comment or be unexported (golint)
    • Line 846: warning: exported method Server.RunCommandOnDrone should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/pi/pi.go
    • Line 22: warning: exported type Pi should have comment or be unexported (golint)
    • Line 35: warning: exported function NewPi should have comment or be unexported (golint)
    • Line 54: warning: exported function SetGlobal should have comment or be unexported (golint)
    • Line 60: warning: exported function Global should have comment or be unexported (golint)
    • Line 64: warning: exported method Pi.DB should have comment or be unexported (golint)
    • Line 72: warning: exported method Pi.Etcd should have comment or be unexported (golint)
    • Line 76: warning: exported method Pi.GlobalConfig should have comment or be unexported (golint)
    • Line 83: warning: exported method Pi.SetGlobalCfg should have comment or be unexported (golint)
    • Line 97: warning: exported method Pi.RegisterRuntimeProvider should have comment or be unexported (golint)
    • Line 115: warning: exported method Pi.ThreadWatchGlobalConfig should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/repo/handler.go
    • Line 28: warning: exported method Server.DescribeRepos should have comment or be unexported (golint)
    • Line 104: warning: exported method Server.CreateRepo should have comment or be unexported (golint)
    • Line 191: warning: exported method Server.ModifyRepo should have comment or be unexported (golint)
    • Line 294: warning: exported method Server.DeleteRepos should have comment or be unexported (golint)
    • Line 340: warning: exported method Server.ValidateRepo should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/devkit/opapp/cluster.go
    • Line 17: warning: exported type ClusterConfTemplate should have comment or be unexported (golint)
    • Line 40: warning: exported method ClusterConfTemplate.Render should have comment or be unexported (golint)
    • Line 63: warning: exported type ClusterConf should have comment or be unexported (golint)
    • Line 96: warning: exported type ServiceParams should have comment or be unexported (golint)
    • Line 100: warning: exported type HealthCheck should have comment or be unexported (golint)
    • Line 111: warning: exported type Monitor should have comment or be unexported (golint)
    • Line 126: warning: exported type Node should have comment or be unexported (golint)
    • Line 162: warning: exported type Service should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/plugins/vmbased/parser.go
    • Line 21: warning: exported type Parser should have comment or be unexported (golint)
    • Line 65: warning: exported method Parser.ParseClusterRole should have comment or be unexported (golint)
    • Line 115: warning: exported method Parser.ParseAddClusterNode should have comment or be unexported (golint)
    • Line 270: warning: exported method Parser.ParseClusterNode should have comment or be unexported (golint)
    • Line 333: warning: exported method Parser.ParseClusterLoadbalancer should have comment or be unexported (golint)
    • Line 348: warning: exported method Parser.ParseClusterLinks should have comment or be unexported (golint)
    • Line 361: warning: exported method Parser.ParseCluster should have comment or be unexported (golint)
    • Line 384: warning: exported method Parser.ParseClusterCommon should have comment or be unexported (golint)
    • Line 483: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/frontgate/options.go
    • Line 18: warning: exported type Options should have comment or be unexported (golint)
    • Line 20: warning: exported function NewDefaultConfigString should have comment or be unexported (golint)
    • Line 88: warning: exported function NewDefaultConfig should have comment or be unexported (golint)
    • Line 99: warning: exported function WithFrontgateId should have comment or be unexported (golint)
    • Line 105: warning: exported function WithListenPort should have comment or be unexported (golint)
    • Line 111: warning: exported function WithPilotService should have comment or be unexported (golint)
    • Line 117: warning: exported function WithFrontgateNodeList should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/util/ctxutil/sender.go
    • Line 17: warning: exported const SenderKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported function GetSender should have comment or be unexported (golint)
    • Line 34: warning: exported function ContextWithSender should have comment or be unexported (golint)
    • Line 38: warning: should not use basic type string as key in context.WithValue (golint)
    • /openpitrix.io/openpitrix/pkg/client/runtime_provider/client.go
    • Line 5: warning: don't use an underscore in package name (golint)
    • Line 19: warning: exported function NewRuntimeProviderManagerClient should have comment or be unexported (golint)
    • Line 27: warning: exported function NewRuntimeProviderClient should have comment or be unexported (golint)
    • Line 35: warning: exported function RegisterRuntimeProvider should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/constants/notify_message.go
    • Line 19: warning: exported const EmailNotifyName should have comment or be unexported (golint)
    • Line 21: warning: exported type EmailNotifyContent should have comment or be unexported (golint)
    • Line 25: warning: exported type NotifyMessage should have comment or be unexported (golint)
    • Line 30: warning: exported type NotifyTitle should have comment or be unexported (golint)
    • Line 34: warning: exported type NotifyContent should have comment or be unexported (golint)
    • Line 38: warning: exported method NotifyMessage.GetMessage should have comment or be unexported (golint)
    • Line 49: warning: exported method NotifyTitle.GetDefaultMessage should have comment or be unexported (golint)
    • Line 53: warning: exported method NotifyContent.GetDefaultMessage should have comment or be unexported (golint)
    • Line 66: warning: exported var AdminInviteIsvNotifyTitle should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/config/global_config.go
    • Line 17: warning: exported type GlobalConfig should have comment or be unexported (golint)
    • Line 29: warning: exported type AppServiceConfig should have comment or be unexported (golint)
    • Line 33: warning: exported type RepoServiceConfig should have comment or be unexported (golint)
    • Line 38: warning: exported type ClusterServiceConfig should have comment or be unexported (golint)
    • Line 45: warning: exported type PilotServiceConfig should have comment or be unexported (golint)
    • Line 50: warning: exported type JobServiceConfig should have comment or be unexported (golint)
    • Line 54: warning: exported type TaskServiceConfig should have comment or be unexported (golint)
    • Line 58: warning: exported type BasicConfig should have comment or be unexported (golint)
    • Line 63: warning: exported type RuntimeProviderConfig should have comment or be unexported (golint)
    • Line 77: warning: exported type InstallModuleConfig should have comment or be unexported (golint)
    • Line 82: warning: exported method RuntimeProviderConfig.GetPort should have comment or be unexported (golint)
    • Line 85: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 91: warning: exported method RuntimeProviderConfig.GetHost should have comment or be unexported (golint)
    • Line 97: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 102: warning: exported method RuntimeProviderConfig.GetEnable should have comment or be unexported (golint)
    • Line 106: warning: exported method GlobalConfig.GetAppDefaultStatus should have comment or be unexported (golint)
    • Line 113: warning: exported method GlobalConfig.GetRuntimeImageIdAndUrl should have comment or be unexported (golint)
    • Line 147: warning: exported method GlobalConfig.RegisterRuntimeProviderConfig should have comment or be unexported (golint)
    • Line 167: warning: exported function ParseGlobalConfig should have comment or be unexported (golint)
    • Line 176: warning: exported function ParseRuntimeProviderConfig should have comment or be unexported (golint)
    • Line 185: warning: exported function DecodeInitConfig should have comment or be unexported (golint)
    • Line 194: warning: exported function EncodeGlobalConfig should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/app_version.go
    • Line 21: warning: exported function NewAppVersionId should have comment or be unexported (golint)
    • Line 25: warning: exported type AppVersion should have comment or be unexported (golint)
    • Line 51: warning: exported var AppVersionColumns should have comment or be unexported (golint)
    • Line 53: warning: exported method AppVersion.GetSemver should have comment or be unexported (golint)
    • Line 57: warning: exported type AppVersions should have comment or be unexported (golint)
    • Line 84: warning: exported function NewAppVersion should have comment or be unexported (golint)
    • Line 99: warning: exported function AppVersionToPb should have comment or be unexported (golint)
    • Line 125: warning: exported function AppVersionsToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/attachment.go
    • Line 17: warning: exported const AttachmentIdPrefix should have comment or be unexported (golint)
    • Line 19: warning: exported function NewAttachmentId should have comment or be unexported (golint)
    • Line 35: warning: exported type Attachment should have comment or be unexported (golint)
    • Line 40: warning: exported method Attachment.GetObjectName should have comment or be unexported (golint)
    • Line 44: warning: exported method Attachment.RemoveObjectName should have comment or be unexported (golint)
    • Line 48: warning: exported method Attachment.GetObjectPrefix should have comment or be unexported (golint)
    • Line 52: warning: exported var AttachmentColumns should have comment or be unexported (golint)
    • Line 54: warning: exported function NewAttachment should have comment or be unexported (golint)
    • Line 61: warning: exported function AttachmentToPb should have comment or be unexported (golint)
    • Line 68: warning: exported function AttachmentsToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/drone/confd_server.go
    • Line 25: warning: exported type ConfdServer should have comment or be unexported (golint)
    • Line 39: warning: exported function NewConfdServer should have comment or be unexported (golint)
    • Line 49: warning: exported method ConfdServer.IsRunning should have comment or be unexported (golint)
    • Line 56: warning: exported method ConfdServer.GetConfig should have comment or be unexported (golint)
    • Line 67: warning: exported method ConfdServer.SetConfig should have comment or be unexported (golint)
    • Line 85: warning: exported method ConfdServer.GetBackendClient should have comment or be unexported (golint)
    • Line 92: warning: exported method ConfdServer.Start should have comment or be unexported (golint)
    • Line 160: warning: exported method ConfdServer.Stop should have comment or be unexported (golint)
    • Line 179: warning: exported method ConfdServer.Err should have comment or be unexported (golint)
    • Line 214: warning: exported method ConfdServer.Save should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/node_key_pair.go
    • Line 15: warning: exported type NodeKeyPairDetails should have comment or be unexported (golint)
    • Line 17: warning: exported function NewNodeKeyPairDetails should have comment or be unexported (golint)
    • Line 26: warning: exported type NodeKeyPair should have comment or be unexported (golint)
    • Line 31: warning: exported function NodeKeyPairToPb should have comment or be unexported (golint)
    • Line 39: warning: exported type NodeKeyPairDetail should have comment or be unexported (golint)
    • Line 45: warning: exported var NodeKeyPairColumns should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/app.go
    • Line 18: warning: exported function NewAppId should have comment or be unexported (golint)
    • Line 22: warning: exported type App should have comment or be unexported (golint)
    • Line 47: warning: exported var AppColumns should have comment or be unexported (golint)
    • Line 49: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 63: warning: exported function AppToPb should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/task_layer.go
    • Line 11: warning: exported type TaskLayer should have comment or be unexported (golint)
    • Line 16: warning: exported function TaskLayerToPb should have comment or be unexported (golint)
    • Line 27: warning: exported function PbToTaskLayer should have comment or be unexported (golint)
    • Line 41: warning: exported method TaskLayer.WalkTree should have comment or be unexported (golint)
    • Line 45: warning: exported method TaskLayer.IsLeaf should have comment or be unexported (golint)
    • Line 48: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 53: warning: exported method TaskLayer.Leaf should have comment or be unexported (golint)
    • Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 73: warning: exported method TaskLayer.Append should have comment or be unexported (golint)
    • Line 77: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /openpitrix.io/openpitrix/pkg/models/vendor_verify_info.go
    • Line 18: warning: exported type VendorVerifyInfo should have comment or be unexported (golint)
    • Line 38: warning: exported function ReqToVendorVerifyInfo should have comment or be unexported (golint)
    • Line 59: warning: exported function VendorVerifyInfoSetToPbSet should have comment or be unexported (golint)
    • Line 67: warning: exported function VendorVerifyInfoToPb should have comment or be unexported (golint)
    • Line 91: warning: exported type VendorStatistics should have comment or be unexported (golint)
    • Line 99: warning: exported function VendorStatisticsToPb should have comment or be unexported (golint)
    • Line 109: warning: exported function VendorStatisticsSetToPbSet should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/app/resource_control.go
    • Line 29: warning: exported type Action should have comment or be unexported (golint)
    • Line 32: warning: exported const Submit should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: comment on exported var VersionFiniteStatusMachine should be of the form "VersionFiniteStatusMachine ..." (golint)
    • Line 347: warning: exported function SyncAppStatus should have comment or be unexported (golint)
    • Line 679: warning: exported function ResortAppVersions should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/isv/resource_control.go
    • Line 22: warning: exported function DescribeVendorVerifyInfos should have comment or be unexported (golint)
    • Line 56: warning: exported function PassVendorVerifyInfo should have comment or be unexported (golint)
    • Line 74: warning: exported function RejectVendorVerifyInfo should have comment or be unexported (golint)
    • Line 90: warning: exported function UpdateVendorVerifyInfo should have comment or be unexported (golint)
    • Line 116: warning: exported function CreateVendorVerifyInfo should have comment or be unexported (golint)
    • Line 128: warning: exported function GetVendorVerifyInfoCountByCompanyName should have comment or be unexported (golint)
    • Line 141: warning: exported function GetVendorVerifyInfo should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/frontgate/handler.go
    • Line 32: warning: exported method Server.GetPilotVersion should have comment or be unexported (golint)
    • Line 37: warning: exported method Server.GetFrontgateVersion should have comment or be unexported (golint)
    • Line 42: warning: exported method Server.GetDroneVersion should have comment or be unexported (golint)
    • Line 48: warning: exported method Server.PingMetadataBackend should have comment or be unexported (golint)
    • Line 68: warning: exported method EtcdClient.Ping should have comment or be unexported (golint)
    • Line 79: warning: exported method Server.GetPilotConfig should have comment or be unexported (golint)
    • Line 105: warning: exported method Server.GetFrontgateConfig should have comment or be unexported (golint)
    • Line 112: warning: exported method Server.SetFrontgateConfig should have comment or be unexported (golint)
    • Line 152: warning: exported method Server.SetFrontgateNodeConfig should have comment or be unexported (golint)
    • Line 172: warning: exported method Server.GetDroneList should have comment or be unexported (golint)
    • Line 180: warning: exported method Server.GetDroneConfig should have comment or be unexported (golint)
    • Line 204: warning: exported method Server.SetDroneConfig should have comment or be unexported (golint)
    • Line 243: warning: exported method Server.GetConfdConfig should have comment or be unexported (golint)
    • Line 250: warning: exported method Server.IsConfdRunning should have comment or be unexported (golint)
    • Line 275: warning: exported method Server.StartConfd should have comment or be unexported (golint)
    • Line 311: warning: exported method Server.StopConfd should have comment or be unexported (golint)
    • Line 332: warning: exported method Server.RegisterMetadata should have comment or be unexported (golint)
    • Line 358: warning: exported method Server.RegisterMetadataMapping should have comment or be unexported (golint)
    • Line 384: warning: exported method EtcdClient.RegisterMetadata should have comment or be unexported (golint)
    • Line 403: warning: exported method EtcdClient.RegisterMetadataMapping should have comment or be unexported (golint)
    • Line 423: warning: exported method Server.DeregisterMetadata should have comment or be unexported (golint)
    • Line 449: warning: exported method Server.DeregisterMetadataMapping should have comment or be unexported (golint)
    • Line 475: warning: exported method EtcdClient.DeregisterMetadata should have comment or be unexported (golint)
    • Line 499: warning: exported method EtcdClient.DeregisterMetadataMapping should have comment or be unexported (golint)
    • Line 525: warning: exported method Server.RegisterCmd should have comment or be unexported (golint)
    • Line 551: warning: exported method EtcdClient.RegisterCmd should have comment or be unexported (golint)
    • Line 570: warning: exported method Server.DeregisterCmd should have comment or be unexported (golint)
    • Line 596: warning: exported method EtcdClient.DeregisterCmd should have comment or be unexported (golint)
    • Line 620: warning: exported method Server.ReportSubTaskStatus should have comment or be unexported (golint)
    • Line 645: warning: exported method Server.ClosePilotChannel should have comment or be unexported (golint)
    • Line 657: warning: exported method Server.GetEtcdValuesByPrefix should have comment or be unexported (golint)
    • Line 684: warning: exported method Server.GetEtcdValues should have comment or be unexported (golint)
    • Line 711: warning: exported method Server.SetEtcdValues should have comment or be unexported (golint)
    • Line 737: warning: exported method Server.PingPilot should have comment or be unexported (golint)
    • Line 762: warning: exported method Server.PingFrontgate should have comment or be unexported (golint)
    • Line 798: warning: exported method Server.PingFrontgateNode should have comment or be unexported (golint)
    • Line 803: warning: exported method Server.PingDrone should have comment or be unexported (golint)
    • Line 827: warning: exported method Server.RunCommand should have comment or be unexported (golint)
    • Line 866: warning: exported method Server.RunCommandOnDrone should have comment or be unexported (golint)
    • Line 890: warning: exported method Server.HeartBeat should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/subnet.go
    • Line 14: warning: exported type Subnet should have comment or be unexported (golint)
    • Line 24: warning: exported function SubnetToPb should have comment or be unexported (golint)
    • Line 36: warning: exported function SubnetsToPbs should have comment or be unexported (golint)
    • Line 43: warning: exported function PbToSubnet should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/pilot/options.go
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 18: warning: exported function NewDefaultConfigString should have comment or be unexported (golint)
    • Line 36: warning: exported function NewDefaultConfig should have comment or be unexported (golint)
    • Line 46: warning: exported function WithPilotId should have comment or be unexported (golint)
    • Line 52: warning: exported function WithListenPort should have comment or be unexported (golint)
    • Line 58: warning: exported function WithForFgListenPort should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/pi/db_hook.go
    • Line 37: warning: exported method Pi.GetUpdateHook should have comment or be unexported (golint)
    • Line 70: warning: exported method Pi.GetDeleteHook should have comment or be unexported (golint)
    • Line 97: warning: exported method Pi.GetInsertHook should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/attachment/handler.go
    • Line 26: warning: exported method Server.CreateAttachment should have comment or be unexported (golint)
    • Line 48: warning: exported method Server.AppendAttachment should have comment or be unexported (golint)
    • Line 63: warning: exported method Server.ReplaceAttachment should have comment or be unexported (golint)
    • Line 81: warning: exported method Server.GetAttachments should have comment or be unexported (golint)
    • Line 102: warning: exported method Server.DeleteAttachments should have comment or be unexported (golint)
    • Line 125: warning: exported method Server.GetAttachment should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/market_user.go
    • Line 16: warning: exported type MarketUser should have comment or be unexported (golint)
    • Line 24: warning: exported var MarketUserColumns should have comment or be unexported (golint)
    • Line 26: warning: exported function NewMarketUser should have comment or be unexported (golint)
    • Line 36: warning: exported function MarketUserToPb should have comment or be unexported (golint)
    • Line 46: warning: exported function MarketUserToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/plugins/vmbased/frame.go
    • Line 28: warning: exported type Frame should have comment or be unexported (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 89: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 180: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 237: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 267: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 297: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 670: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 715: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 775: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 830: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 853: warning: exported function FormatUserData should have comment or be unexported (golint)
    • Line 1006: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1037: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1068: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1099: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1141: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1188: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1488: warning: exported method Frame.CreateClusterLayer should have comment or be unexported (golint)
    • Line 1517: warning: exported method Frame.StopClusterLayer should have comment or be unexported (golint)
    • Line 1536: warning: exported method Frame.StartClusterLayer should have comment or be unexported (golint)
    • Line 1558: warning: exported method Frame.DeleteClusterLayer should have comment or be unexported (golint)
    • Line 1583: warning: exported method Frame.AddClusterNodesLayer should have comment or be unexported (golint)
    • Line 1610: warning: exported method Frame.DeleteClusterNodesLayer should have comment or be unexported (golint)
    • Line 1636: warning: exported method Frame.UpdateClusterEnvLayer should have comment or be unexported (golint)
    • Line 1661: warning: exported method Frame.ResizeClusterLayer should have comment or be unexported (golint)
    • Line 1682: warning: exported method Frame.AttachKeyPairsLayer should have comment or be unexported (golint)
    • Line 1692: warning: exported method Frame.DetachKeyPairsLayer should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/db/util.go
    • Line 13: warning: exported function GetColumnsFromStruct should have comment or be unexported (golint)
    • Line 21: warning: exported function GetColumnsFromStructWithPrefix should have comment or be unexported (golint)
    • Line 29: warning: exported function WithPrefix should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/processor.go
    • Line 14: warning: exported type Call should have comment or be unexported (golint)
    • Line 32: warning: exported type Processor should have comment or be unexported (golint)
    • Line 93: warning: exported function NewProcessor should have comment or be unexported (golint)
    • Line 130: warning: exported method Processor.Go should have comment or be unexported (golint)
    • Line 158: warning: exported method Processor.Run should have comment or be unexported (golint)
    • Line 176: warning: exported method Processor.Close should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/task/controller.go
    • Line 33: warning: exported type Controller should have comment or be unexported (golint)
    • Line 40: warning: exported function NewController should have comment or be unexported (golint)
    • Line 61: warning: exported method Controller.GetTaskLength should have comment or be unexported (golint)
    • Line 64: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 69: warning: exported method Controller.IsRunningExceed should have comment or be unexported (golint)
    • Line 76: warning: exported method Controller.UpdateWorkingTasks should have comment or be unexported (golint)
    • Line 86: warning: exported method Controller.ExtractTasks should have comment or be unexported (golint)
    • Line 104: warning: exported method Controller.HandleTask should have comment or be unexported (golint)
    • Line 190: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 211: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 232: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 457: warning: exported method Controller.HandleTasks should have comment or be unexported (golint)
    • Line 471: warning: exported method Controller.Serve should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/gerr/message.go
    • Line 9: warning: exported type ErrorMessage should have comment or be unexported (golint)
    • Line 15: warning: exported method ErrorMessage.Message should have comment or be unexported (golint)
    • Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 35: warning: exported var ErrorPermissionDenied should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/repoiface/wrapper/helm.go
    • Line 18: warning: exported type HelmVersionWrapper should have comment or be unexported (golint)
    • Line 22: warning: exported method HelmVersionWrapper.GetIcon should have comment or be unexported (golint)
    • Line 23: warning: exported method HelmVersionWrapper.GetName should have comment or be unexported (golint)
    • Line 24: warning: exported method HelmVersionWrapper.GetHome should have comment or be unexported (golint)
    • Line 25: warning: exported method HelmVersionWrapper.GetVersion should have comment or be unexported (golint)
    • Line 26: warning: exported method HelmVersionWrapper.GetAppVersion should have comment or be unexported (golint)
    • Line 27: warning: exported method HelmVersionWrapper.GetDescription should have comment or be unexported (golint)
    • Line 28: warning: exported method HelmVersionWrapper.GetCreateTime should have comment or be unexported (golint)
    • Line 29: warning: exported method HelmVersionWrapper.GetUrls should have comment or be unexported (golint)
    • Line 36: warning: exported method HelmVersionWrapper.GetSources should have comment or be unexported (golint)
    • Line 43: warning: exported method HelmVersionWrapper.GetKeywords should have comment or be unexported (golint)
    • Line 47: warning: exported method HelmVersionWrapper.GetMaintainers should have comment or be unexported (golint)
    • Line 54: warning: exported method HelmVersionWrapper.GetScreenshots should have comment or be unexported (golint)
    • Line 58: warning: exported method HelmVersionWrapper.GetVersionName should have comment or be unexported (golint)
    • Line 66: warning: exported method HelmVersionWrapper.GetPackageName should have comment or be unexported (golint)
    • Line 74: warning: exported type HelmIndexWrapper should have comment or be unexported (golint)
    • Line 78: warning: exported method HelmIndexWrapper.GetEntries should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/key_pair.go
    • Line 17: warning: exported function NewKeyPairId should have comment or be unexported (golint)
    • Line 21: warning: exported type KeyPair should have comment or be unexported (golint)
    • Line 32: warning: exported type KeyPairWithNodes should have comment or be unexported (golint)
    • Line 37: warning: exported var KeyPairColumns should have comment or be unexported (golint)
    • Line 39: warning: exported function KeyPairNodesToPb should have comment or be unexported (golint)
    • Line 53: warning: exported function KeyPairNodesToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/cluster_role.go
    • Line 13: warning: exported type ClusterRole should have comment or be unexported (golint)
    • Line 30: warning: exported var ClusterRoleColumns should have comment or be unexported (golint)
    • Line 32: warning: exported function ClusterRoleToPb should have comment or be unexported (golint)
    • Line 51: warning: exported function PbToClusterRole should have comment or be unexported (golint)
    • Line 70: warning: exported function ClusterRolesToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/kvstore.go
    • Line 15: warning: exported type KVPair should have comment or be unexported (golint)
    • Line 31: warning: comment on exported function NewKVStore should be of the form "NewKVStore ..." (golint)
    • Line 36: warning: comment on exported method KVStore.Del should be of the form "Del ..." (golint)
    • Line 104: warning: exported method KVStore.GetAllValues should have comment or be unexported (golint)
    • Line 121: warning: exported method KVStore.List should have comment or be unexported (golint)
    • Line 151: warning: exported method KVStore.ListDir should have comment or be unexported (golint)
    • Line 178: warning: receiver name s should be consistent with previous receiver name p for KVStore (golint)
    • Line 185: warning: exported method KVStore.Purge should have comment or be unexported (golint)
    • Line 185: warning: receiver name s should be consistent with previous receiver name p for KVStore (golint)
    • Line 194: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 198: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 202: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • /openpitrix.io/openpitrix/pkg/util/jsonutil/json.go
    • Line 15: warning: exported function Encode should have comment or be unexported (golint)
    • Line 19: warning: exported function Decode should have comment or be unexported (golint)
    • Line 23: warning: exported function ToString should have comment or be unexported (golint)
    • Line 32: warning: comment on exported function ToJson should be of the form "ToJson ..." (golint)
    • Line 52: warning: exported function NewJson should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/sender/sender.go
    • Line 15: warning: exported type Sender should have comment or be unexported (golint)
    • Line 21: warning: exported function GetSystemSender should have comment or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported method Sender.GetOwnerPath should have comment or be unexported (golint)
    • Line 45: warning: exported method Sender.GetAccessPath should have comment or be unexported (golint)
    • Line 54: warning: exported method Sender.ToJson should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/repo_event.go
    • Line 18: warning: exported function NewRepoEventId should have comment or be unexported (golint)
    • Line 22: warning: exported type RepoEvent should have comment or be unexported (golint)
    • Line 33: warning: exported var RepoEventColumns should have comment or be unexported (golint)
    • Line 35: warning: exported function NewRepoEvent should have comment or be unexported (golint)
    • Line 48: warning: exported function RepoEventToPb should have comment or be unexported (golint)
    • Line 61: warning: exported function RepoEventsToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/helm/agent.go
    • Line 9: warning: exported function GetRelease should have comment or be unexported (golint)
    • Line 18: warning: exported function ListReleases should have comment or be unexported (golint)
    • Line 40: warning: exported function CreateRelease should have comment or be unexported (golint)
    • Line 56: warning: exported function UpgradeRelease should have comment or be unexported (golint)
    • Line 71: warning: exported function RollbackRelease should have comment or be unexported (golint)
    • Line 84: warning: exported function DeleteRelease should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/account/handler_access.go
    • Line 35: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 40: warning: exported method Server.CanDo should have comment or be unexported (golint)
    • Line 58: warning: exported method Server.GetRoleModule should have comment or be unexported (golint)
    • Line 72: warning: exported method Server.ModifyRoleModule should have comment or be unexported (golint)
    • Line 86: warning: exported method Server.CreateRole should have comment or be unexported (golint)
    • Line 104: warning: exported method Server.DeleteRoles should have comment or be unexported (golint)
    • Line 117: warning: exported method Server.ModifyRole should have comment or be unexported (golint)
    • Line 132: warning: exported method Server.GetRole should have comment or be unexported (golint)
    • Line 145: warning: exported method Server.DescribeRoles should have comment or be unexported (golint)
    • Line 175: warning: exported method Server.BindUserRole should have comment or be unexported (golint)
    • Line 190: warning: exported method Server.UnbindUserRole should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/isv/handler.go
    • Line 28: warning: exported method Server.DescribeVendorVerifyInfos should have comment or be unexported (golint)
    • Line 43: warning: exported method Server.SubmitVendorVerifyInfo should have comment or be unexported (golint)
    • Line 136: warning: exported method Server.PassVendorVerifyInfo should have comment or be unexported (golint)
    • Line 201: warning: exported method Server.RejectVendorVerifyInfo should have comment or be unexported (golint)
    • Line 252: warning: exported method Server.DescribeAppVendorStatistics should have comment or be unexported (golint)
    • Line 337: warning: exported method Server.GetVendorVerifyInfo should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/repoiface/interface.go
    • Line 16: warning: exported type Err should have comment or be unexported (golint)
    • Line 19: warning: exported var ErrParseUrlFailed should have comment or be unexported (golint)
    • Line 31: warning: exported type RepoInterface should have comment or be unexported (golint)
    • Line 40: warning: exported function New should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/gerr/error.go
    • Line 21: warning: exported const En should have comment or be unexported (golint)
    • Line 22: warning: exported const ZhCN should have comment or be unexported (golint)
    • Line 23: warning: exported const DefaultLocale should have comment or be unexported (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 48: warning: exported function ClearErrorCause should have comment or be unexported (golint)
    • Line 67: warning: exported type GRPCError should have comment or be unexported (golint)
    • Line 72: warning: exported function New should have comment or be unexported (golint)
    • Line 76: warning: exported function NewWithDetail should have comment or be unexported (golint)
    • Line 80: warning: exported function IsGRPCError should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/options.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 20: warning: exported function WithOnetimeMode should have comment or be unexported (golint)
    • Line 26: warning: exported function WithIntervalMode should have comment or be unexported (golint)
    • Line 33: warning: exported function WithInterval should have comment or be unexported (golint)
    • Line 39: warning: exported function WithWatchMode should have comment or be unexported (golint)
    • Line 46: warning: exported function WithFuncMap should have comment or be unexported (golint)
    • Line 59: warning: exported function WithAbsKeyAdjuster should have comment or be unexported (golint)
    • Line 65: warning: exported function WithFuncMapUpdater should have comment or be unexported (golint)
    • Line 71: warning: exported function WithHookOnCheckCmdDone should have comment or be unexported (golint)
    • Line 77: warning: exported function WithHookOnReloadCmdDone should have comment or be unexported (golint)
    • Line 83: warning: exported function WithHookOnUpdateDone should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/tmpl_funcs.go
    • Line 24: warning: exported type TemplateFunc should have comment or be unexported (golint)
    • Line 32: warning: don't use underscores in Go names; var _TemplateFunc_initFuncMap should be _TemplateFuncInitFuncMap (golint)
    • Line 34: warning: exported function NewTemplateFunc should have comment or be unexported (golint)
    • Line 57: warning: exported method TemplateFunc.Exists should have comment or be unexported (golint)
    • Line 64: warning: exported method TemplateFunc.Ls should have comment or be unexported (golint)
    • Line 71: warning: exported method TemplateFunc.Lsdir should have comment or be unexported (golint)
    • Line 78: warning: exported method TemplateFunc.Get should have comment or be unexported (golint)
    • Line 90: warning: exported method TemplateFunc.Gets should have comment or be unexported (golint)
    • Line 102: warning: exported method TemplateFunc.Getv should have comment or be unexported (golint)
    • Line 115: warning: exported method TemplateFunc.Getvs should have comment or be unexported (golint)
    • Line 131: warning: exported method TemplateFunc.Cget should have comment or be unexported (golint)
    • Line 157: warning: exported method TemplateFunc.Cgets should have comment or be unexported (golint)
    • Line 184: warning: exported method TemplateFunc.Cgetv should have comment or be unexported (golint)
    • Line 209: warning: exported method TemplateFunc.Cgetvs should have comment or be unexported (golint)
    • Line 240: warning: exported method TemplateFunc.Base should have comment or be unexported (golint)
    • Line 240: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 244: warning: exported method TemplateFunc.Split should have comment or be unexported (golint)
    • Line 244: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 248: warning: exported method TemplateFunc.Json should have comment or be unexported (golint)
    • Line 248: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 258: warning: exported method TemplateFunc.JsonArray should have comment or be unexported (golint)
    • Line 258: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 268: warning: exported method TemplateFunc.Dir should have comment or be unexported (golint)
    • Line 268: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 274: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 291: warning: comment on exported method TemplateFunc.Getenv should be of the form "Getenv ..." (golint)
    • Line 294: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 304: warning: exported method TemplateFunc.Join should have comment or be unexported (golint)
    • Line 304: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 308: warning: exported method TemplateFunc.Datetime should have comment or be unexported (golint)
    • Line 308: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 312: warning: exported method TemplateFunc.ToUpper should have comment or be unexported (golint)
    • Line 312: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 316: warning: exported method TemplateFunc.ToLower should have comment or be unexported (golint)
    • Line 316: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 320: warning: exported method TemplateFunc.Contains should have comment or be unexported (golint)
    • Line 320: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 324: warning: exported method TemplateFunc.Replace should have comment or be unexported (golint)
    • Line 324: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 328: warning: exported method TemplateFunc.TrimSuffix should have comment or be unexported (golint)
    • Line 328: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 332: warning: exported method TemplateFunc.LookupIP should have comment or be unexported (golint)
    • Line 332: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 348: warning: exported method TemplateFunc.LookupIPV6 should have comment or be unexported (golint)
    • Line 348: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 358: warning: exported method TemplateFunc.LookupIPV4 should have comment or be unexported (golint)
    • Line 358: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 368: warning: exported method TemplateFunc.LookupSRV should have comment or be unexported (golint)
    • Line 368: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 383: warning: exported method TemplateFunc.FileExists should have comment or be unexported (golint)
    • Line 383: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 388: warning: exported method TemplateFunc.Base64Encode should have comment or be unexported (golint)
    • Line 388: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 392: warning: exported method TemplateFunc.Base64Decode should have comment or be unexported (golint)
    • Line 392: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 401: warning: exported method TemplateFunc.ParseBool should have comment or be unexported (golint)
    • Line 401: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 410: warning: comment on exported method TemplateFunc.Reverse should be of the form "Reverse ..." (golint)
    • Line 412: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 428: warning: exported method TemplateFunc.SortKVByLength should have comment or be unexported (golint)
    • Line 428: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 435: warning: exported method TemplateFunc.SortByLength should have comment or be unexported (golint)
    • Line 435: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 442: warning: exported method TemplateFunc.Add should have comment or be unexported (golint)
    • Line 442: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 445: warning: exported method TemplateFunc.Sub should have comment or be unexported (golint)
    • Line 445: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 448: warning: exported method TemplateFunc.Div should have comment or be unexported (golint)
    • Line 448: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 451: warning: exported method TemplateFunc.Mod should have comment or be unexported (golint)
    • Line 451: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 454: warning: exported method TemplateFunc.Mul should have comment or be unexported (golint)
    • Line 454: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 458: warning: comment on exported method TemplateFunc.Seq should be of the form "Seq ..." (golint)
    • Line 460: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 468: warning: exported method TemplateFunc.Atoi should have comment or be unexported (golint)
    • Line 468: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • /openpitrix.io/openpitrix/pkg/util/stringutil/string.go
    • Line 13: warning: comment on exported function Diff should be of the form "Diff ..." (golint)
    • Line 27: warning: exported function Unique should have comment or be unexported (golint)
    • Line 38: warning: exported function CamelCaseToUnderscore should have comment or be unexported (golint)
    • Line 42: warning: exported function UnderscoreToCamelCase should have comment or be unexported (golint)
    • Line 46: warning: exported function FindString should have comment or be unexported (golint)
    • Line 55: warning: exported function StringIn should have comment or be unexported (golint)
    • Line 59: warning: exported function Reverse should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/repoiface/http.go
    • Line 17: warning: exported type HttpInterface should have comment or be unexported (golint)
    • Line 21: warning: exported function NewHttpInterface should have comment or be unexported (golint)
    • Line 27: warning: exported method HttpInterface.CheckFile should have comment or be unexported (golint)
    • Line 43: warning: exported method HttpInterface.ReadFile should have comment or be unexported (golint)
    • Line 63: warning: exported method HttpInterface.DeleteFile should have comment or be unexported (golint)
    • Line 67: warning: exported method HttpInterface.WriteFile should have comment or be unexported (golint)
    • Line 77: warning: exported method HttpInterface.CheckRead should have comment or be unexported (golint)
    • Line 87: warning: exported method HttpInterface.CheckWrite should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/cmd.go
    • Line 12: warning: exported type Cmd should have comment or be unexported (golint)
    • Line 18: warning: exported function NewCmd should have comment or be unexported (golint)
    • Line 27: warning: exported type CmdCnodes should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method CmdCnodes.Format should be of the form "Format ..." (golint)
    • Line 57: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 70: warning: exported function NewCmdCnodes should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/plugins/vmbased/frontgate.go
    • Line 22: warning: exported type Frontgate should have comment or be unexported (golint)
    • Line 117: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 165: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 200: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 231: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 262: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 267: warning: exported method Frontgate.CreateClusterLayer should have comment or be unexported (golint)
    • Line 287: warning: exported method Frontgate.DeleteClusterLayer should have comment or be unexported (golint)
    • Line 307: warning: exported method Frontgate.StartClusterLayer should have comment or be unexported (golint)
    • Line 324: warning: exported method Frontgate.StopClusterLayer should have comment or be unexported (golint)
    • Line 339: warning: exported method Frontgate.AttachKeyPairsLayer should have comment or be unexported (golint)
    • Line 349: warning: exported method Frontgate.DetachKeyPairsLayer should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/pilot/fg_client_manager.go
    • Line 22: warning: exported type FrontgateClientManager should have comment or be unexported (golint)
    • Line 27: warning: exported type FrontgateClient should have comment or be unexported (golint)
    • Line 33: warning: exported function NewFrontgateClientManager should have comment or be unexported (golint)
    • Line 39: warning: exported method FrontgateClientManager.CheckAllClient should have comment or be unexported (golint)
    • Line 78: warning: exported method FrontgateClientManager.GetClient should have comment or be unexported (golint)
    • Line 89: warning: exported method FrontgateClientManager.GetNodeClient should have comment or be unexported (golint)
    • Line 102: warning: exported method FrontgateClientManager.PutClient should have comment or be unexported (golint)
    • Line 118: warning: exported method FrontgateClientManager.CloseClient should have comment or be unexported (golint)
    • Line 147: warning: exported method FrontgateClientManager.IsFrontgateShutdownError should have comment or be unexported (golint)
    • Line 147: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/drone/config_manager.go
    • Line 23: warning: exported type ConfigManager should have comment or be unexported (golint)
    • Line 29: warning: exported function NewConfigManager should have comment or be unexported (golint)
    • Line 50: warning: exported method ConfigManager.Get should have comment or be unexported (golint)
    • Line 58: warning: exported method ConfigManager.Set should have comment or be unexported (golint)
    • Line 80: warning: exported method ConfigManager.Save should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/client/pilot/client.go
    • Line 24: warning: exported type Client should have comment or be unexported (golint)
    • Line 28: warning: exported type TLSClient should have comment or be unexported (golint)
    • Line 32: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 42: warning: exported function NewTLSClient should have comment or be unexported (golint)
    • Line 57: warning: exported method Client.SetDroneConfigWithTimeout should have comment or be unexported (golint)
    • Line 63: warning: exported method Client.SetFrontgateConfigWithTimeout should have comment or be unexported (golint)
    • Line 69: warning: exported method Client.HandleSubtaskWithTimeout should have comment or be unexported (golint)
    • Line 75: warning: exported method Client.PingFrontgateWithTimeout should have comment or be unexported (golint)
    • Line 81: warning: exported method Client.PingDroneWithTimeout should have comment or be unexported (golint)
    • Line 87: warning: exported method Client.PingMetadataBackendWithTimeout should have comment or be unexported (golint)
    • Line 93: warning: exported method Client.RunCommandOnFrontgateNodeWithTimeout should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.RunCommandOnDroneWithTimeout should have comment or be unexported (golint)
    • Line 105: warning: exported method Client.WaitSubtask should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/user_password_reset.go
    • Line 15: warning: exported function NewUserPasswordResetId should have comment or be unexported (golint)
    • Line 19: warning: exported type UserPasswordReset should have comment or be unexported (golint)
    • Line 27: warning: exported var UserPasswordResetColumns should have comment or be unexported (golint)
    • Line 29: warning: exported function NewUserPasswordReset should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/plugins/vmbased/metadata.go
    • Line 18: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 23: warning: comment on exported method Metadata.GetClusterCnodes should be of the form "GetClusterCnodes ..." (golint)
    • Line 81: warning: comment on exported method Metadata.GetClusterEnvCnodes should be of the form "GetClusterEnvCnodes ..." (golint)
    • Line 113: warning: comment on exported method Metadata.GetClusterMappingCnodes should be of the form "GetClusterMappingCnodes ..." (golint)
    • Line 132: warning: comment on exported method Metadata.GetClusterNodesMappingCnodes should be of the form "GetClusterNodesMappingCnodes ..." (golint)
    • Line 147: warning: comment on exported method Metadata.GetClusterNodesCnodes should be of the form "GetClusterNodesCnodes ..." (golint)
    • Line 177: warning: comment on exported method Metadata.GetEmptyClusterNodeCnodes should be of the form "GetEmptyClusterNodeCnodes ..." (golint)
    • Line 207: warning: comment on exported method Metadata.GetHostsCnodes should be of the form "GetHostsCnodes ..." (golint)
    • Line 288: warning: comment on exported method Metadata.GetEmptyHostsCnodes should be of the form "GetEmptyHostsCnodes ..." (golint)
    • Line 317: warning: comment on exported method Metadata.GetClusterMetadataCnodes should be of the form "GetClusterMetadataCnodes ..." (golint)
    • Line 344: warning: comment on exported method Metadata.GetEnvCnodes should be of the form "GetEnvCnodes ..." (golint)
    • Line 380: warning: comment on exported method Metadata.GetScalingCnodes should be of the form "GetScalingCnodes ..." (golint)
    • Line 405: warning: exported method Metadata.GetCmdCnodes should have comment or be unexported (golint)
    • Line 420: warning: comment on exported method Metadata.GetEmptyClusterCnodes should be of the form "GetEmptyClusterCnodes ..." (golint)
    • Line 435: warning: comment on exported method Metadata.GetEmptyClusterMappingCnodes should be of the form "GetEmptyClusterMappingCnodes ..." (golint)
    • Line 451: warning: comment on exported method Metadata.GetEmptyClusterNodeMappingCnodes should be of the form "GetEmptyClusterNodeMappingCnodes ..." (golint)
    • Line 466: warning: comment on exported method Metadata.GetMappingCnodes should be of the form "GetMappingCnodes ..." (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/drone/droneutil/droneutil.go
    • Line 23: warning: exported function MustLoadConfdConfig should have comment or be unexported (golint)
    • Line 32: warning: exported function MustLoadDroneConfig should have comment or be unexported (golint)
    • Line 41: warning: exported function LoadConfdConfig should have comment or be unexported (golint)
    • Line 68: warning: exported function LoadDroneConfig should have comment or be unexported (golint)
    • Line 85: warning: exported function DialDroneService should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/category/handler.go
    • Line 26: warning: exported method Server.DescribeCategories should have comment or be unexported (golint)
    • Line 59: warning: exported method Server.CreateCategory should have comment or be unexported (golint)
    • Line 104: warning: exported method Server.ModifyCategory should have comment or be unexported (golint)
    • Line 160: warning: exported method Server.DeleteCategories should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/plugins/plugin.go
    • Line 16: warning: exported type ProviderInterface should have comment or be unexported (golint)
    • Line 32: warning: exported function GetAvailablePlugins should have comment or be unexported (golint)
    • Line 40: warning: exported function IsVmbasedProviders should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/constants/common.go
    • Line 14: warning: exported const ProviderPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const ApiGatewayPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: exported const StatusActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 106: warning: exported var DeletedStatuses should have comment or be unexported (golint)
    • Line 112: warning: exported const VisibilityPublic should have comment (or a comment on this block) or be unexported (golint)
    • Line 117: warning: exported const DefaultMaxWorkingJobs should have comment (or a comment on this block) or be unexported (golint)
    • Line 123: warning: exported const MaxTaskTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 137: warning: comment on exported const PilotTasksRetry should be of the form "PilotTasksRetry ..." (golint)
    • Line 143: warning: exported const ActionCreateCluster should have comment (or a comment on this block) or be unexported (golint)
    • Line 160: warning: exported const ProviderQingCloud should have comment (or a comment on this block) or be unexported (golint)
    • Line 169: warning: exported const PlaceHolder should have comment (or a comment on this block) or be unexported (golint)
    • Line 174: warning: exported const NodesToExecuteOnName should have comment (or a comment on this block) or be unexported (golint)
    • Line 203: warning: exported const NfContentTypeInvite should have comment (or a comment on this block) or be unexported (golint)
    • Line 209: warning: exported var ServiceNames should have comment or be unexported (golint)
    • Line 215: warning: exported const TypeS3 should have comment (or a comment on this block) or be unexported (golint)
    • Line 221: warning: exported const RetryInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 225: warning: exported const RoleUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 250: warning: exported var GrantTypeTokens should have comment or be unexported (golint)
    • Line 256: warning: exported var InternalRepos should have comment or be unexported (golint)
    • Line 260: warning: exported var AllowedAppDefaultStatus should have comment or be unexported (golint)
    • Line 267: warning: exported const ServiceTypeNotification should have comment (or a comment on this block) or be unexported (golint)
    • Line 272: warning: exported var ServiceTypes should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/repoiface/wrapper/devkit.go
    • Line 17: warning: exported type OpVersionWrapper should have comment or be unexported (golint)
    • Line 21: warning: exported method OpVersionWrapper.GetVersion should have comment or be unexported (golint)
    • Line 23: warning: exported method OpVersionWrapper.GetAppVersion should have comment or be unexported (golint)
    • Line 25: warning: exported method OpVersionWrapper.GetDescription should have comment or be unexported (golint)
    • Line 27: warning: exported method OpVersionWrapper.GetCreateTime should have comment or be unexported (golint)
    • Line 29: warning: exported method OpVersionWrapper.GetUrls should have comment or be unexported (golint)
    • Line 33: warning: exported method OpVersionWrapper.GetSources should have comment or be unexported (golint)
    • Line 40: warning: exported method OpVersionWrapper.GetKeywords should have comment or be unexported (golint)
    • Line 44: warning: exported method OpVersionWrapper.GetMaintainers should have comment or be unexported (golint)
    • Line 51: warning: exported method OpVersionWrapper.GetScreenshots should have comment or be unexported (golint)
    • Line 58: warning: exported method OpVersionWrapper.GetVersionName should have comment or be unexported (golint)
    • Line 66: warning: exported method OpVersionWrapper.GetPackageName should have comment or be unexported (golint)
    • Line 70: warning: exported type OpIndexWrapper should have comment or be unexported (golint)
    • Line 74: warning: exported method OpIndexWrapper.GetEntries should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/account/handler_account.go
    • Line 33: warning: exported const OwnerKey should have comment or be unexported (golint)
    • Line 34: warning: exported const OwnerPathKey should have comment or be unexported (golint)
    • Line 180: warning: exported method Server.DescribeUsers should have comment or be unexported (golint)
    • Line 247: warning: exported method Server.DescribeUsersDetail should have comment or be unexported (golint)
    • Line 330: warning: exported method Server.DescribeGroups should have comment or be unexported (golint)
    • Line 376: warning: exported method Server.DescribeGroupsDetail should have comment or be unexported (golint)
    • Line 435: warning: exported method Server.ModifyUser should have comment or be unexported (golint)
    • Line 469: warning: exported method Server.DeleteUsers should have comment or be unexported (golint)
    • Line 494: warning: exported method Server.CreateUser should have comment or be unexported (golint)
    • Line 619: warning: exported method Server.IsvCreateUser should have comment or be unexported (golint)
    • Line 715: warning: exported method Server.CreatePasswordReset should have comment or be unexported (golint)
    • Line 761: warning: exported method Server.ChangePassword should have comment or be unexported (golint)
    • Line 805: warning: exported method Server.GetPasswordReset should have comment or be unexported (golint)
    • Line 864: warning: exported method Server.ValidateUserPassword should have comment or be unexported (golint)
    • Line 879: warning: exported method Server.CreateGroup should have comment or be unexported (golint)
    • Line 901: warning: exported method Server.ModifyGroup should have comment or be unexported (golint)
    • Line 925: warning: exported method Server.DeleteGroups should have comment or be unexported (golint)
    • Line 945: warning: exported method Server.JoinGroup should have comment or be unexported (golint)
    • Line 988: warning: exported method Server.LeaveGroup should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/drone/handler.go
    • Line 34: warning: exported var RetryInterval should have comment or be unexported (golint)
    • Line 110: warning: exported method Server.DistributeDrone should have comment or be unexported (golint)
    • Line 130: warning: exported method Server.GetPilotVersion should have comment or be unexported (golint)
    • Line 135: warning: exported method Server.GetFrontgateVersion should have comment or be unexported (golint)
    • Line 140: warning: exported method Server.GetDroneVersion should have comment or be unexported (golint)
    • Line 149: warning: exported method Server.PingMetadataBackend should have comment or be unexported (golint)
    • Line 155: warning: exported method Server.GetDroneConfig should have comment or be unexported (golint)
    • Line 160: warning: exported method Server.SetDroneConfig should have comment or be unexported (golint)
    • Line 180: warning: exported method Server.GetConfdConfig should have comment or be unexported (golint)
    • Line 186: warning: exported method Server.SetConfdConfig should have comment or be unexported (golint)
    • Line 212: warning: exported method Server.GetFrontgateConfig should have comment or be unexported (golint)
    • Line 223: warning: exported method Server.SetFrontgateConfig should have comment or be unexported (golint)
    • Line 234: warning: exported method Server.IsConfdRunning should have comment or be unexported (golint)
    • Line 240: warning: exported method Server.StartConfd should have comment or be unexported (golint)
    • Line 327: warning: exported method Server.StopConfd should have comment or be unexported (golint)
    • Line 338: warning: exported method Server.GetTemplateFiles should have comment or be unexported (golint)
    • Line 369: warning: exported method Server.GetValues should have comment or be unexported (golint)
    • Line 401: warning: exported method Server.PingPilot should have comment or be unexported (golint)
    • Line 419: warning: exported method Server.PingFrontgate should have comment or be unexported (golint)
    • Line 437: warning: exported method Server.PingDrone should have comment or be unexported (golint)
    • Line 442: warning: exported method Server.RunCommand should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/devkit/opapp/config.go
    • Line 15: warning: exported const TypeArray should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type ConfigTemplate should have comment or be unexported (golint)
    • Line 28: warning: exported type Config should have comment or be unexported (golint)
    • Line 53: warning: exported method Config.SpecificConfig should have comment or be unexported (golint)
    • Line 66: warning: exported method Config.FillInDefaultConfig should have comment or be unexported (golint)
    • Line 86: warning: exported method Config.GetDefaultConfig should have comment or be unexported (golint)
    • Line 117: warning: comment on exported method Config.GetRenderedConfig should be of the form "GetRenderedConfig ..." (golint)
    • Line 130: warning: comment on exported method Config.Validate should be of the form "Validate ..." (golint)
    • /openpitrix.io/openpitrix/pkg/models/runtime_credential.go
    • Line 18: warning: exported const RuntimeCredentialPrifix should have comment or be unexported (golint)
    • Line 20: warning: exported type RuntimeCredential should have comment or be unexported (golint)
    • Line 35: warning: exported function NewRuntimeCredentialId should have comment or be unexported (golint)
    • Line 39: warning: exported var RuntimeCredentialColumns should have comment or be unexported (golint)
    • Line 41: warning: exported function NewRuntimeCredential should have comment or be unexported (golint)
    • Line 61: warning: exported function RuntimeCredentialToPb should have comment or be unexported (golint)
    • Line 78: warning: exported function PbToRuntimeCredential should have comment or be unexported (golint)
    • Line 96: warning: exported function RuntimeCredentialToPbs should have comment or be unexported (golint)
    • Line 103: warning: exported function RuntimeCredentialMap should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/plugins/vmbased/constants.go
    • Line 8: warning: exported const ActionRunInstances should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported const RegisterClustersRootPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: comment on exported const TimeoutStartConfd should be of the form "TimeoutStartConfd ..." (golint)
    • Line 67: warning: exported const TimeoutStopConfd should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: exported const OpenPitrixBasePath should have comment (or a comment on this block) or be unexported (golint)
    • Line 98: warning: exported const InstanceSize should have comment (or a comment on this block) or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/isv/validation.go
    • Line 17: warning: exported function VerifyUrl should have comment or be unexported (golint)
    • Line 25: warning: exported function VerifyEmail should have comment or be unexported (golint)
    • Line 31: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 38: warning: comment on exported function VerifyPhoneNumber should be of the form "VerifyPhoneNumber ..." (golint)
    • Line 45: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 51: warning: exported function VerifyBankAccountNumber should have comment or be unexported (golint)
    • Line 57: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/pilot/pilotutil/fg_channel_api.go
    • Line 26: warning: exported type FrameChannel should have comment or be unexported (golint)
    • Line 35: warning: exported function DialPilotChannelTLS should have comment or be unexported (golint)
    • Line 68: warning: exported function NewFrontgateChannelFromServer should have comment or be unexported (golint)
    • Line 87: warning: exported function NewFrontgateChannelFromClient should have comment or be unexported (golint)
    • Line 139: warning: exported method FrameChannel.Close should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/repo_label.go
    • Line 16: warning: exported function NewRepoLabelId should have comment or be unexported (golint)
    • Line 20: warning: exported type RepoLabel should have comment or be unexported (golint)
    • Line 29: warning: exported var RepoLabelColumns should have comment or be unexported (golint)
    • Line 31: warning: exported function NewRepoLabel should have comment or be unexported (golint)
    • Line 42: warning: exported function RepoLabelToPb should have comment or be unexported (golint)
    • Line 50: warning: exported function RepoLabelsToPbs should have comment or be unexported (golint)
    • Line 57: warning: exported function RepoLabelsMap should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/runtime/permission.go
    • Line 20: warning: exported function CheckRuntimesPermission should have comment or be unexported (golint)
    • Line 46: warning: exported function CheckRuntimePermission should have comment or be unexported (golint)
    • Line 72: warning: exported function CheckRuntimeCredentialsPermission should have comment or be unexported (golint)
    • Line 98: warning: exported function CheckRuntimeCredentialPermission should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/helm/handler.go
    • Line 53: warning: exported method Server.ParseClusterConf should have comment or be unexported (golint)
    • Line 90: warning: exported method Server.SplitJobIntoTasks should have comment or be unexported (golint)
    • Line 210: warning: exported method Server.HandleSubtask should have comment or be unexported (golint)
    • Line 210: warning: receiver name s should be consistent with previous receiver name p for Server (golint)
    • Line 281: warning: exported method Server.WaitSubtask should have comment or be unexported (golint)
    • Line 281: warning: receiver name s should be consistent with previous receiver name p for Server (golint)
    • Line 347: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 354: warning: exported method Server.DescribeSubnets should have comment or be unexported (golint)
    • Line 358: warning: exported method Server.CheckResource should have comment or be unexported (golint)
    • Line 369: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 376: warning: exported method Server.DescribeVpc should have comment or be unexported (golint)
    • Line 380: warning: exported method Server.DescribeClusterDetails should have comment or be unexported (golint)
    • Line 390: warning: exported method Server.ValidateRuntime should have comment or be unexported (golint)
    • Line 402: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 409: warning: exported method Server.DescribeZones should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/frontgate/etcd.go
    • Line 24: warning: exported const DefaultEtcdMaxOpsPerTxn should have comment or be unexported (golint)
    • Line 26: warning: exported type EtcdClientManager should have comment or be unexported (golint)
    • Line 31: warning: exported type EtcdClient should have comment or be unexported (golint)
    • Line 36: warning: exported function NewEtcdClientManager should have comment or be unexported (golint)
    • Line 42: warning: exported method EtcdClientManager.Get should have comment or be unexported (golint)
    • Line 53: warning: exported method EtcdClientManager.GetClient should have comment or be unexported (golint)
    • Line 71: warning: exported method EtcdClientManager.ClearClient should have comment or be unexported (golint)
    • Line 84: warning: exported method EtcdClientManager.Clear should have comment or be unexported (golint)
    • Line 95: warning: exported function NewEtcdClient should have comment or be unexported (golint)
    • Line 118: warning: exported function NewEtcdClientWithConfig should have comment or be unexported (golint)
    • Line 136: warning: exported method EtcdClient.Close should have comment or be unexported (golint)
    • Line 140: warning: exported method EtcdClient.Get should have comment or be unexported (golint)
    • Line 155: warning: exported method EtcdClient.Set should have comment or be unexported (golint)
    • Line 166: warning: exported method EtcdClient.GetValues should have comment or be unexported (golint)
    • Line 186: warning: don't use underscores in Go names; range var resp_i should be respI (golint)
    • Line 198: warning: exported method EtcdClient.GetValuesByPrefix should have comment or be unexported (golint)
    • Line 214: warning: exported method EtcdClient.SetValues should have comment or be unexported (golint)
    • Line 237: warning: exported method EtcdClient.SetValuesWithPrefix should have comment or be unexported (golint)
    • Line 260: warning: exported method EtcdClient.GetStructValue should have comment or be unexported (golint)
    • Line 279: warning: exported method EtcdClient.SetStructValue should have comment or be unexported (golint)
    • Line 307: warning: exported method EtcdClient.DelValues should have comment or be unexported (golint)
    • Line 330: warning: exported method EtcdClient.DelValuesWithPrefix should have comment or be unexported (golint)
    • Line 353: warning: exported method EtcdClient.GetAllValues should have comment or be unexported (golint)
    • Line 368: warning: exported method EtcdClient.Clear should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/cluster_wrapper.go
    • Line 18: warning: exported type ClusterWrapper should have comment or be unexported (golint)
    • Line 28: warning: exported function NewClusterWrapper should have comment or be unexported (golint)
    • Line 39: warning: exported function ClusterWrapperToPb should have comment or be unexported (golint)
    • Line 77: warning: exported function ClusterNodeWrapperToPb should have comment or be unexported (golint)
    • Line 87: warning: exported function PbToClusterWrapper should have comment or be unexported (golint)
    • Line 120: warning: exported method ClusterWrapper.GetCommonAttribute should have comment or be unexported (golint)
    • Line 135: warning: comment on exported method ClusterWrapper.GetEndpoints should be of the form "GetEndpoints ..." (golint)
    • Line 212: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /openpitrix.io/openpitrix/pkg/models/app_version_audit.go
    • Line 16: warning: exported type AppVersionAudit should have comment or be unexported (golint)
    • Line 29: warning: exported var AppVersionAuditColumns should have comment or be unexported (golint)
    • Line 31: warning: exported function NewAppVersionAudit should have comment or be unexported (golint)
    • Line 44: warning: exported function AppVersionAuditToPb should have comment or be unexported (golint)
    • Line 60: warning: exported function AppVersionAuditsToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/token.go
    • Line 16: warning: exported function NewTokenId should have comment or be unexported (golint)
    • Line 20: warning: exported type Token should have comment or be unexported (golint)
    • Line 31: warning: exported var TokenColumns should have comment or be unexported (golint)
    • Line 33: warning: exported function NewToken should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/market/handler.go
    • Line 23: warning: exported method Server.CreateMarket should have comment or be unexported (golint)
    • Line 63: warning: exported method Server.DescribeMarkets should have comment or be unexported (golint)
    • Line 96: warning: exported method Server.ModifyMarket should have comment or be unexported (golint)
    • Line 130: warning: exported method Server.DeleteMarkets should have comment or be unexported (golint)
    • Line 161: warning: exported method Server.UserJoinMarket should have comment or be unexported (golint)
    • Line 214: warning: exported method Server.UserLeaveMarket should have comment or be unexported (golint)
    • Line 249: warning: exported method Server.DescribeMarketUsers should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/job.go
    • Line 18: warning: exported function NewJobId should have comment or be unexported (golint)
    • Line 22: warning: exported type Job should have comment or be unexported (golint)
    • Line 41: warning: exported var JobColumns should have comment or be unexported (golint)
    • Line 43: warning: exported function NewJob should have comment or be unexported (golint)
    • Line 66: warning: exported function JobToPb should have comment or be unexported (golint)
    • Line 87: warning: exported function JobsToPbs should have comment or be unexported (golint)
    • Line 94: warning: exported function PbToJob should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/client/access/client.go
    • Line 17: warning: exported type Client should have comment or be unexported (golint)
    • Line 21: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 31: warning: exported method Client.CheckActionBundleUser should have comment or be unexported (golint)
    • Line 44: warning: exported method Client.GetActionBundleRoles should have comment or be unexported (golint)
    • Line 57: warning: exported method Client.GetActionBundleUsers should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/job/controller.go
    • Line 27: warning: exported type Controller should have comment or be unexported (golint)
    • Line 34: warning: exported function NewController should have comment or be unexported (golint)
    • Line 54: warning: exported method Controller.GetJobLength should have comment or be unexported (golint)
    • Line 57: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 62: warning: exported method Controller.IsRunningExceed should have comment or be unexported (golint)
    • Line 69: warning: exported method Controller.UpdateWorkingJobs should have comment or be unexported (golint)
    • Line 79: warning: exported method Controller.ExtractJobs should have comment or be unexported (golint)
    • Line 97: warning: exported method Controller.HandleJob should have comment or be unexported (golint)
    • Line 220: warning: exported method Controller.HandleJobs should have comment or be unexported (golint)
    • Line 233: warning: exported method Controller.Serve should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/application.go
    • Line 16: warning: exported type Application should have comment or be unexported (golint)
    • Line 21: warning: exported function NewApplication should have comment or be unexported (golint)
    • Line 28: warning: exported method Application.List should have comment or be unexported (golint)
    • Line 49: warning: exported method Application.Info should have comment or be unexported (golint)
    • Line 69: warning: exported method Application.Make should have comment or be unexported (golint)
    • Line 103: warning: exported method Application.GetValues should have comment or be unexported (golint)
    • Line 121: warning: exported method Application.Run should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/client/account/client.go
    • Line 21: warning: exported type Client should have comment or be unexported (golint)
    • Line 25: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.GetUsers should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.GetUser should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.GetUserGroupPath should have comment or be unexported (golint)
    • Line 105: warning: exported method Client.GetRoleUsers should have comment or be unexported (golint)
    • Line 118: warning: exported method Client.GetIsvFromUser should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/job/processor.go
    • Line 24: warning: exported type Processor should have comment or be unexported (golint)
    • Line 28: warning: exported function NewProcessor should have comment or be unexported (golint)
    • Line 303: warning: exported method Processor.Final should have comment or be unexported (golint)
    • Line 315: warning: exported method Processor.UpdateClusterDetails should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/app/handler.go
    • Line 43: warning: exported method Server.ResortApps should have comment or be unexported (golint)
    • Line 57: warning: exported method Server.SyncRepo should have comment or be unexported (golint)
    • Line 93: warning: exported method Server.DescribeActiveApps should have comment or be unexported (golint)
    • Line 97: warning: exported method Server.DescribeApps should have comment or be unexported (golint)
    • Line 152: warning: exported method Server.ValidatePackage should have comment or be unexported (golint)
    • Line 171: warning: exported method Server.CreateApp should have comment or be unexported (golint)
    • Line 315: warning: exported method Server.ModifyApp should have comment or be unexported (golint)
    • Line 354: warning: exported method Server.UploadAppAttachment should have comment or be unexported (golint)
    • Line 457: warning: exported method Server.DeleteApps should have comment or be unexported (golint)
    • Line 494: warning: exported method Server.CreateAppVersion should have comment or be unexported (golint)
    • Line 557: warning: exported method Server.DescribeAppVersionReviews should have comment or be unexported (golint)
    • Line 610: warning: exported method Server.DescribeAppVersionAudits should have comment or be unexported (golint)
    • Line 656: warning: exported method Server.DescribeActiveAppVersions should have comment or be unexported (golint)
    • Line 660: warning: exported method Server.DescribeAppVersions should have comment or be unexported (golint)
    • Line 702: warning: exported method Server.ModifyAppVersion should have comment or be unexported (golint)
    • Line 762: warning: exported method Server.GetAppVersionPackage should have comment or be unexported (golint)
    • Line 784: warning: exported method Server.GetAppVersionPackageFiles should have comment or be unexported (golint)
    • Line 808: warning: exported method Server.GetAppStatistics should have comment or be unexported (golint)
    • Line 875: warning: exported method Server.SubmitAppVersion should have comment or be unexported (golint)
    • Line 1001: warning: exported method Server.CancelAppVersion should have comment or be unexported (golint)
    • Line 1017: warning: exported method Server.ReleaseAppVersion should have comment or be unexported (golint)
    • Line 1119: warning: exported method Server.DeleteAppVersion should have comment or be unexported (golint)
    • Line 1351: warning: exported method Server.IsvReviewAppVersion should have comment or be unexported (golint)
    • Line 1355: warning: exported method Server.IsvPassAppVersion should have comment or be unexported (golint)
    • Line 1359: warning: exported method Server.IsvRejectAppVersion should have comment or be unexported (golint)
    • Line 1363: warning: exported method Server.BusinessReviewAppVersion should have comment or be unexported (golint)
    • Line 1367: warning: exported method Server.BusinessPassAppVersion should have comment or be unexported (golint)
    • Line 1371: warning: exported method Server.BusinessRejectAppVersion should have comment or be unexported (golint)
    • Line 1375: warning: exported method Server.TechnicalReviewAppVersion should have comment or be unexported (golint)
    • Line 1379: warning: exported method Server.TechnicalPassAppVersion should have comment or be unexported (golint)
    • Line 1383: warning: exported method Server.TechnicalRejectAppVersion should have comment or be unexported (golint)
    • Line 1387: warning: exported method Server.AdminPassAppVersion should have comment or be unexported (golint)
    • Line 1391: warning: exported method Server.AdminRejectAppVersion should have comment or be unexported (golint)
    • Line 1395: warning: exported method Server.SuspendAppVersion should have comment or be unexported (golint)
    • Line 1490: warning: exported method Server.RecoverAppVersion should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/manager/grpc_server.go
    • Line 43: warning: exported type GrpcServer should have comment or be unexported (golint)
    • Line 52: warning: exported type RegisterCallback should have comment or be unexported (golint)
    • Line 54: warning: exported function NewGrpcServer should have comment or be unexported (golint)
    • Line 64: warning: exported method GrpcServer.ShowErrorCause should have comment or be unexported (golint)
    • Line 69: warning: exported method GrpcServer.WithChecker should have comment or be unexported (golint)
    • Line 74: warning: exported method GrpcServer.WithBuilder should have comment or be unexported (golint)
    • Line 79: warning: exported method GrpcServer.WithMysqlConfig should have comment or be unexported (golint)
    • Line 84: warning: exported method GrpcServer.Serve should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/etcd/queue.go
    • Line 9: warning: exported type Queue should have comment or be unexported (golint)
    • Line 13: warning: exported method Etcd.NewQueue should have comment or be unexported (golint)
    • Line 17: warning: exported method Queue.Enqueue should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/resource_processor.go
    • Line 21: warning: exported type TemplateResourceProcessor should have comment or be unexported (golint)
    • Line 36: warning: exported function MakeAllTemplateResourceProcessor should have comment or be unexported (golint)
    • Line 49: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 124: warning: comment on exported method TemplateResourceProcessor.Process should be of the form "Process ..." (golint)
    • Line 369: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 401: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • /openpitrix.io/openpitrix/pkg/topic/types.go
    • Line 18: warning: exported type Message should have comment or be unexported (golint)
    • Line 24: warning: exported type Resource should have comment or be unexported (golint)
    • Line 30: warning: exported function NewResource should have comment or be unexported (golint)
    • Line 38: warning: exported method Resource.WithValue should have comment or be unexported (golint)
    • Line 43: warning: exported method Resource.GetTopicResource should have comment or be unexported (golint)
    • Line 53: warning: exported const Create should have comment (or a comment on this block) or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/cluster.go
    • Line 17: warning: exported function NewClusterId should have comment or be unexported (golint)
    • Line 21: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 49: warning: exported var ClusterColumns should have comment or be unexported (golint)
    • Line 51: warning: exported function NewCluster should have comment or be unexported (golint)
    • Line 58: warning: exported function ClusterToPb should have comment or be unexported (golint)
    • Line 94: warning: exported function PbToCluster should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/backends_toml.go
    • Line 14: warning: exported const TomlBackendType should have comment or be unexported (golint)
    • Line 18: warning: exported type TomlBackend should have comment or be unexported (golint)
    • Line 32: warning: exported function NewTomlBackendClient should have comment or be unexported (golint)
    • Line 37: warning: exported method TomlBackend.Close should have comment or be unexported (golint)
    • Line 37: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 41: warning: exported method TomlBackend.Type should have comment or be unexported (golint)
    • Line 41: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 45: warning: exported method TomlBackend.WatchEnabled should have comment or be unexported (golint)
    • Line 45: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 49: warning: exported method TomlBackend.WatchPrefix should have comment or be unexported (golint)
    • Line 49: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 53: warning: exported method TomlBackend.GetValues should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/util/pbutil/pb.go
    • Line 19: warning: exported type RequestHadOffset should have comment or be unexported (golint)
    • Line 23: warning: exported type RequestHadLimit should have comment or be unexported (golint)
    • Line 28: warning: exported const DefaultOffset should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported function GetOffsetFromRequest should have comment or be unexported (golint)
    • Line 40: warning: exported function GetLimitFromRequest should have comment or be unexported (golint)
    • Line 48: warning: exported function GetTime should have comment or be unexported (golint)
    • Line 51: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 56: warning: exported function FromProtoTimestamp should have comment or be unexported (golint)
    • Line 65: warning: exported function ToProtoTimestamp should have comment or be unexported (golint)
    • Line 77: warning: exported function ToProtoString should have comment or be unexported (golint)
    • Line 81: warning: exported function ToProtoUInt32 should have comment or be unexported (golint)
    • Line 85: warning: exported function ToProtoInt32 should have comment or be unexported (golint)
    • Line 89: warning: exported function ToProtoBool should have comment or be unexported (golint)
    • Line 93: warning: exported function ToProtoBytes should have comment or be unexported (golint)
    • Line 97: warning: exported type DescribeResponse should have comment or be unexported (golint)
    • Line 101: warning: exported type DescribeApi should have comment or be unexported (golint)
    • Line 106: warning: exported function DescribeAllResponses should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/sender/owner_path.go
    • Line 13: warning: comment on exported type OwnerPath should be of the form "OwnerPath ..." (with optional leading article) (golint)
    • Line 23: warning: exported method OwnerPath.CheckOwnerPathPermission should have comment or be unexported (golint)
    • Line 32: warning: exported method OwnerPath.CheckPermission should have comment or be unexported (golint)
    • Line 36: warning: exported method OwnerPath.Owner should have comment or be unexported (golint)
    • Line 44: warning: exported method OwnerPath.ToProtoString should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/test/testutil/client.go
    • Line 21: warning: exported const UserSystem should have comment or be unexported (golint)
    • Line 23: warning: exported type IgnoreLogger should have comment or be unexported (golint)
    • Line 25: warning: exported method IgnoreLogger.Printf should have comment or be unexported (golint)
    • Line 28: warning: exported method IgnoreLogger.Debugf should have comment or be unexported (golint)
    • Line 31: warning: exported type ClientConfig should have comment or be unexported (golint)
    • Line 36: warning: exported method ClientConfig.GetEndpoint should have comment or be unexported (golint)
    • Line 48: warning: exported function GetClient should have comment or be unexported (golint)
    • Line 61: warning: exported function GetClientConfig should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/repo.go
    • Line 18: warning: exported function NewRepoId should have comment or be unexported (golint)
    • Line 22: warning: exported type Repo should have comment or be unexported (golint)
    • Line 40: warning: exported var RepoColumns should have comment or be unexported (golint)
    • Line 41: warning: exported var RepoColumnsWithTablePrefix should have comment or be unexported (golint)
    • Line 43: warning: exported function NewRepo should have comment or be unexported (golint)
    • Line 60: warning: exported function RepoToPb should have comment or be unexported (golint)
    • Line 79: warning: exported function ReposToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/service_config/handler.go
    • Line 5: warning: don't use an underscore in package name (golint)
    • Line 21: warning: exported function OpToNfConfig should have comment or be unexported (golint)
    • Line 35: warning: exported function NfToOpConfig should have comment or be unexported (golint)
    • Line 49: warning: exported method Server.SetServiceConfig should have comment or be unexported (golint)
    • Line 100: warning: exported method Server.GetServiceConfig should have comment or be unexported (golint)
    • Line 144: warning: exported method Server.ValidateEmailService should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/cluster/handler.go
    • Line 218: warning: exported method Server.DescribeSubnets should have comment or be unexported (golint)
    • Line 243: warning: exported method Server.DeleteNodeKeyPairs should have comment or be unexported (golint)
    • Line 268: warning: exported method Server.AddNodeKeyPairs should have comment or be unexported (golint)
    • Line 297: warning: exported method Server.CreateKeyPair should have comment or be unexported (golint)
    • Line 328: warning: exported method Server.DescribeKeyPairs should have comment or be unexported (golint)
    • Line 384: warning: exported method Server.DeleteKeyPairs should have comment or be unexported (golint)
    • Line 428: warning: exported method Server.AttachKeyPairs should have comment or be unexported (golint)
    • Line 534: warning: exported method Server.DetachKeyPairs should have comment or be unexported (golint)
    • Line 639: warning: exported method Server.CreateCluster should have comment or be unexported (golint)
    • Line 643: warning: exported method Server.CreateDebugCluster should have comment or be unexported (golint)
    • Line 742: warning: exported method Server.ModifyCluster should have comment or be unexported (golint)
    • Line 868: warning: exported method Server.ModifyClusterNode should have comment or be unexported (golint)
    • Line 891: warning: exported method Server.ModifyClusterAttributes should have comment or be unexported (golint)
    • Line 914: warning: exported method Server.ModifyClusterNodeAttributes should have comment or be unexported (golint)
    • Line 937: warning: exported method Server.AddTableClusterNodes should have comment or be unexported (golint)
    • Line 949: warning: exported method Server.DeleteTableClusterNodes should have comment or be unexported (golint)
    • Line 963: warning: exported method Server.DeleteClusters should have comment or be unexported (golint)
    • Line 1030: warning: exported method Server.UpgradeCluster should have comment or be unexported (golint)
    • Line 1086: warning: exported method Server.RollbackCluster should have comment or be unexported (golint)
    • Line 1133: warning: exported method Server.ResizeCluster should have comment or be unexported (golint)
    • Line 1219: warning: exported method Server.AddClusterNodes should have comment or be unexported (golint)
    • Line 1345: warning: exported method Server.DeleteClusterNodes should have comment or be unexported (golint)
    • Line 1406: warning: exported method Server.UpdateClusterEnv should have comment or be unexported (golint)
    • Line 1505: warning: exported method Server.MigrateClusterInRuntime should have comment or be unexported (golint)
    • Line 1525: warning: exported method Server.DeleteClusterInRuntime should have comment or be unexported (golint)
    • Line 1544: warning: exported method Server.DescribeClusters should have comment or be unexported (golint)
    • Line 1548: warning: exported method Server.DescribeDebugClusters should have comment or be unexported (golint)
    • Line 1641: warning: exported method Server.DescribeAppClusters should have comment or be unexported (golint)
    • Line 1645: warning: exported method Server.DescribeDebugAppClusters should have comment or be unexported (golint)
    • Line 1764: warning: exported method Server.DescribeClusterNodes should have comment or be unexported (golint)
    • Line 1858: warning: exported method Server.StopClusters should have comment or be unexported (golint)
    • Line 1914: warning: exported method Server.StartClusters should have comment or be unexported (golint)
    • Line 1978: warning: exported method Server.RecoverClusters should have comment or be unexported (golint)
    • Line 2038: warning: exported method Server.CeaseClusters should have comment or be unexported (golint)
    • Line 2105: warning: exported method Server.GetClusterStatistics should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/cluster_node.go
    • Line 17: warning: exported function NewClusterNodeId should have comment or be unexported (golint)
    • Line 21: warning: exported type ClusterNode should have comment or be unexported (golint)
    • Line 50: warning: exported type ClusterNodeWithKeyPairs should have comment or be unexported (golint)
    • Line 55: warning: exported var ClusterNodeColumns should have comment or be unexported (golint)
    • Line 57: warning: exported function NewClusterNode should have comment or be unexported (golint)
    • Line 64: warning: exported function ClusterNodeToPb should have comment or be unexported (golint)
    • Line 95: warning: exported function ClusterNodeWithKeyPairsToPb should have comment or be unexported (golint)
    • Line 127: warning: exported function PbToClusterNode should have comment or be unexported (golint)
    • Line 163: warning: exported function ClusterNodesWithKeyPairsToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/logger/logger.go
    • Line 20: warning: exported type Level should have comment or be unexported (golint)
    • Line 23: warning: exported const CriticalLevel should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported function StringToLevel should have comment or be unexported (golint)
    • Line 65: warning: exported function Info should have comment or be unexported (golint)
    • Line 69: warning: exported function Debug should have comment or be unexported (golint)
    • Line 73: warning: exported function Warn should have comment or be unexported (golint)
    • Line 77: warning: exported function Error should have comment or be unexported (golint)
    • Line 81: warning: exported function Critical should have comment or be unexported (golint)
    • Line 85: warning: exported function SetOutput should have comment or be unexported (golint)
    • Line 91: warning: exported function SetLevelByString should have comment or be unexported (golint)
    • Line 96: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 104: warning: exported type Logger should have comment or be unexported (golint)
    • Line 115: warning: exported method Logger.SetLevel should have comment or be unexported (golint)
    • Line 119: warning: exported method Logger.SetLevelByString should have comment or be unexported (golint)
    • Line 142: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 168: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 172: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 176: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 184: warning: exported method Logger.Critical should have comment or be unexported (golint)
    • Line 188: warning: exported method Logger.SetOutput should have comment or be unexported (golint)
    • Line 193: warning: exported method Logger.HideCallstack should have comment or be unexported (golint)
    • Line 198: warning: exported method Logger.WithDepth should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/manager/common.go
    • Line 28: warning: exported type Request should have comment or be unexported (golint)
    • Line 34: warning: exported type RequestWithSortKey should have comment or be unexported (golint)
    • Line 38: warning: exported type RequestWithReverse should have comment or be unexported (golint)
    • Line 42: warning: exported type RequestWithOwner should have comment or be unexported (golint)
    • Line 48: warning: exported const TagName should have comment (or a comment on this block) or be unexported (golint)
    • Line 108: warning: exported function BuildFilterConditions should have comment or be unexported (golint)
    • Line 112: warning: exported function GetDisplayColumns should have comment or be unexported (golint)
    • Line 128: warning: exported function BuildFilterConditionsWithPrefix should have comment or be unexported (golint)
    • Line 172: warning: exported function BuildUpdateAttributes should have comment or be unexported (golint)
    • Line 204: warning: exported function AddQueryOrderDirWithPrefix should have comment or be unexported (golint)
    • Line 208: warning: exported function AddQueryOrderDir should have comment or be unexported (golint)
    • Line 236: warning: exported function AddQueryJoinWithMap should have comment or be unexported (golint)
    • Line 251: warning: exported function BuildPermissionFilter should have comment or be unexported (golint)
    • Line 263: warning: exported function BuildPermissionFilterWithPrefix should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/db/db.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 13: warning: exported const DefaultSelectLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported function GetLimit should have comment or be unexported (golint)
    • Line 26: warning: exported function GetOffset should have comment or be unexported (golint)
    • Line 33: warning: exported type InsertHook should have comment or be unexported (golint)
    • Line 34: warning: exported type UpdateHook should have comment or be unexported (golint)
    • Line 35: warning: exported type DeleteHook should have comment or be unexported (golint)
    • Line 37: warning: exported type SelectQuery should have comment or be unexported (golint)
    • Line 43: warning: exported type InsertQuery should have comment or be unexported (golint)
    • Line 49: warning: exported type DeleteQuery should have comment or be unexported (golint)
    • Line 55: warning: exported type UpdateQuery should have comment or be unexported (golint)
    • Line 61: warning: exported type Conn should have comment or be unexported (golint)
    • Line 77: warning: exported method Conn.Select should have comment or be unexported (golint)
    • Line 81: warning: exported method Conn.SelectBySql should have comment or be unexported (golint)
    • Line 85: warning: exported method Conn.SelectAll should have comment or be unexported (golint)
    • Line 89: warning: exported method SelectQuery.Join should have comment or be unexported (golint)
    • Line 93: warning: exported method SelectQuery.RightJoin should have comment or be unexported (golint)
    • Line 97: warning: exported method SelectQuery.LeftJoin should have comment or be unexported (golint)
    • Line 102: warning: exported method SelectQuery.JoinAs should have comment or be unexported (golint)
    • Line 107: warning: exported method SelectQuery.From should have comment or be unexported (golint)
    • Line 112: warning: exported method SelectQuery.Where should have comment or be unexported (golint)
    • Line 117: warning: exported method SelectQuery.GroupBy should have comment or be unexported (golint)
    • Line 122: warning: exported method SelectQuery.Distinct should have comment or be unexported (golint)
    • Line 127: warning: exported method SelectQuery.Limit should have comment or be unexported (golint)
    • Line 133: warning: exported method SelectQuery.Offset should have comment or be unexported (golint)
    • Line 139: warning: exported method SelectQuery.OrderDir should have comment or be unexported (golint)
    • Line 144: warning: exported method SelectQuery.Load should have comment or be unexported (golint)
    • Line 148: warning: exported method SelectQuery.LoadOne should have comment or be unexported (golint)
    • Line 161: warning: exported method SelectQuery.Count should have comment or be unexported (golint)
    • Line 195: warning: exported method Conn.InsertInto should have comment or be unexported (golint)
    • Line 199: warning: exported method InsertQuery.Exec should have comment or be unexported (golint)
    • Line 207: warning: exported method InsertQuery.Columns should have comment or be unexported (golint)
    • Line 212: warning: exported method InsertQuery.Record should have comment or be unexported (golint)
    • Line 223: warning: exported method Conn.DeleteFrom should have comment or be unexported (golint)
    • Line 227: warning: exported method DeleteQuery.Where should have comment or be unexported (golint)
    • Line 232: warning: exported method DeleteQuery.Limit should have comment or be unexported (golint)
    • Line 237: warning: exported method DeleteQuery.Exec should have comment or be unexported (golint)
    • Line 248: warning: exported method Conn.Update should have comment or be unexported (golint)
    • Line 252: warning: exported method UpdateQuery.Exec should have comment or be unexported (golint)
    • Line 260: warning: exported method UpdateQuery.Set should have comment or be unexported (golint)
    • Line 265: warning: exported method UpdateQuery.SetMap should have comment or be unexported (golint)
    • Line 270: warning: exported method UpdateQuery.Where should have comment or be unexported (golint)
    • Line 275: warning: exported method UpdateQuery.Limit should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/pi/etcd.go
    • Line 18: warning: exported const EtcdPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 25: warning: exported function WatchGlobalConfig should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/cluster_link.go
    • Line 14: warning: exported type ClusterLink should have comment or be unexported (golint)
    • Line 22: warning: exported var ClusterLinkColumns should have comment or be unexported (golint)
    • Line 24: warning: exported function ClusterLinkToPb should have comment or be unexported (golint)
    • Line 34: warning: exported function PbToClusterLink should have comment or be unexported (golint)
    • Line 45: warning: exported function ClusterLinksToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/drone/fg_controller.go
    • Line 21: warning: exported type FrontgateController should have comment or be unexported (golint)
    • Line 27: warning: exported function NewFrontgateController should have comment or be unexported (golint)
    • Line 31: warning: exported method FrontgateController.GetConfig should have comment or be unexported (golint)
    • Line 45: warning: exported method FrontgateController.SetConfig should have comment or be unexported (golint)
    • Line 59: warning: exported method FrontgateController.ReportSubTaskStatus should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/constants/frontgate.go
    • Line 7: warning: comment on exported const FrontgateVersionId should be of the form "FrontgateVersionId ..." (golint)
    • Line 9: warning: exported const FrontgateAppId should have comment or be unexported (golint)
    • Line 11: warning: exported const FrontgateDefaultConf should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/config.go
    • Line 18: warning: exported type Config should have comment or be unexported (golint)
    • Line 120: warning: exported function MustLoadConfig should have comment or be unexported (golint)
    • Line 128: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 144: warning: exported function LoadConfigFromJsonString should have comment or be unexported (golint)
    • Line 157: warning: exported method Config.Valid should have comment or be unexported (golint)
    • Line 176: warning: exported method Config.Save should have comment or be unexported (golint)
    • Line 194: warning: exported method Config.Clone should have comment or be unexported (golint)
    • Line 208: warning: exported method Config.GetConfigDir should have comment or be unexported (golint)
    • Line 212: warning: exported method Config.GetTemplateDir should have comment or be unexported (golint)
    • Line 216: warning: exported method Config.GetDefaultTemplateOutputDir should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/repoiface/package_reader.go
    • Line 21: warning: exported const Helm should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var SupportedPackageType should have comment or be unexported (golint)
    • Line 27: warning: exported function LoadPackage should have comment or be unexported (golint)
    • Line 37: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /openpitrix.io/openpitrix/pkg/models/category.go
    • Line 17: warning: exported const UncategorizedId should have comment or be unexported (golint)
    • Line 19: warning: exported function NewCategoryId should have comment or be unexported (golint)
    • Line 23: warning: exported type Category should have comment or be unexported (golint)
    • Line 35: warning: exported var CategoryColumns should have comment or be unexported (golint)
    • Line 37: warning: exported function NewCategory should have comment or be unexported (golint)
    • Line 52: warning: exported function CategoryToPb should have comment or be unexported (golint)
    • Line 68: warning: exported function CategoriesToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/resource.go
    • Line 91: warning: exported function ListTemplateResource should have comment or be unexported (golint)
    • Line 124: warning: exported function LoadTemplateResourceFile should have comment or be unexported (golint)
    • Line 144: warning: exported method TemplateResource.TomlString should have comment or be unexported (golint)
    • Line 156: warning: exported method TemplateResource.SaveFile should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/cluster_common.go
    • Line 15: warning: exported type ClusterCommon should have comment or be unexported (golint)
    • Line 44: warning: exported var ClusterCommonColumns should have comment or be unexported (golint)
    • Line 46: warning: exported method ClusterCommon.GetAttribute should have comment or be unexported (golint)
    • Line 52: warning: exported function ClusterCommonToPb should have comment or be unexported (golint)
    • Line 83: warning: exported function PbToClusterCommon should have comment or be unexported (golint)
    • Line 114: warning: exported function ClusterCommonsToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/repoiface/reader.go
    • Line 26: warning: exported type Reader should have comment or be unexported (golint)
    • Line 31: warning: exported const IndexYaml should have comment or be unexported (golint)
    • Line 33: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 42: warning: exported type AppVersions should have comment or be unexported (golint)
    • Line 44: warning: exported type Versions should have comment or be unexported (golint)
    • Line 62: warning: exported method Reader.LoadPackage should have comment or be unexported (golint)
    • Line 65: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 70: warning: exported method Reader.GetAppVersions should have comment or be unexported (golint)
    • Line 87: warning: exported method Reader.GetIndex should have comment or be unexported (golint)
    • Line 99: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 109: warning: exported method Reader.AddPackage should have comment or be unexported (golint)
    • Line 154: warning: exported method Reader.DeletePackage should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/pilot/pilotutil/pilotutil.go
    • Line 24: warning: exported function MustLoadPilotConfig should have comment or be unexported (golint)
    • Line 33: warning: exported function LoadPilotConfig should have comment or be unexported (golint)
    • Line 47: warning: exported function DialPilotService should have comment or be unexported (golint)
    • Line 61: warning: exported function DialPilotServiceForFrontgate_TLS should have comment or be unexported (golint)
    • Line 61: warning: don't use underscores in Go names; func DialPilotServiceForFrontgate_TLS should be DialPilotServiceForFrontgateTLS (golint)
    • Line 79: warning: exported function LoadPilotTLSConfig should have comment or be unexported (golint)
    • Line 121: warning: exported function LoadPilotClientTLSConfig should have comment or be unexported (golint)
    • Line 149: warning: exported function NewServerTLSConfigFromPbConfig should have comment or be unexported (golint)
    • Line 157: warning: exported function NewClientTLSConfigFromPbConfig should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/util/ctxutil/message.go
    • Line 13: warning: exported function GetMessageId should have comment or be unexported (golint)
    • Line 17: warning: exported function SetMessageId should have comment or be unexported (golint)
    • Line 18: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 27: warning: exported function AddMessageId should have comment or be unexported (golint)
    • Line 33: warning: exported function ClearMessageId should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/libconfd/backends/metad.go
    • Line 37: warning: exported const MetadBackendType should have comment or be unexported (golint)
    • Line 48: warning: exported type MetadClient should have comment or be unexported (golint)
    • Line 53: warning: exported type MetadConnection should have comment or be unexported (golint)
    • Line 60: warning: exported method MetadClient.Type should have comment or be unexported (golint)
    • Line 61: warning: exported method MetadClient.WatchEnabled should have comment or be unexported (golint)
    • Line 62: warning: exported method MetadClient.Close should have comment or be unexported (golint)
    • Line 64: warning: exported function NewMetadClient should have comment or be unexported (golint)
    • Line 137: warning: exported method MetadClient.GetValues should have comment or be unexported (golint)
    • Line 190: warning: exported method MetadClient.WatchPrefix should have comment or be unexported (golint)
    • Line 237: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • /openpitrix.io/openpitrix/pkg/models/market.go
    • Line 17: warning: exported function NewMarketId should have comment or be unexported (golint)
    • Line 21: warning: exported type Market should have comment or be unexported (golint)
    • Line 33: warning: exported var MarketColumns should have comment or be unexported (golint)
    • Line 35: warning: exported function NewMarket should have comment or be unexported (golint)
    • Line 49: warning: exported function MarketToPb should have comment or be unexported (golint)
    • Line 64: warning: exported function MarketToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/cluster/permission.go
    • Line 20: warning: exported function CheckClustersPermission should have comment or be unexported (golint)
    • Line 46: warning: exported function CheckClusterPermission should have comment or be unexported (golint)
    • Line 72: warning: exported function CheckClusterNodesPermission should have comment or be unexported (golint)
    • Line 98: warning: exported function CheckClusterNodePermission should have comment or be unexported (golint)
    • Line 124: warning: exported function CheckKeyPairsPermission should have comment or be unexported (golint)
    • Line 150: warning: exported function CheckKeyPairPermission should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/test/testutil/docker.go
    • Line 12: warning: exported type Docker should have comment or be unexported (golint)
    • Line 22: warning: exported function NewDocker should have comment or be unexported (golint)
    • Line 31: warning: exported method Docker.Setup should have comment or be unexported (golint)
    • Line 49: warning: exported method Docker.Exec should have comment or be unexported (golint)
    • Line 53: warning: exported method Docker.ExecD should have comment or be unexported (golint)
    • Line 57: warning: exported method Docker.Teardown should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/repoiface/s3.go
    • Line 25: warning: exported type S3Interface should have comment or be unexported (golint)
    • Line 34: warning: exported type S3Credential should have comment or be unexported (golint)
    • Line 39: warning: exported function NewS3Interface should have comment or be unexported (golint)
    • Line 98: warning: exported method S3Interface.CheckFile should have comment or be unexported (golint)
    • Line 116: warning: exported method S3Interface.ReadFile should have comment or be unexported (golint)
    • Line 138: warning: exported method S3Interface.DeleteFile should have comment or be unexported (golint)
    • Line 156: warning: exported method S3Interface.WriteFile should have comment or be unexported (golint)
    • Line 175: warning: exported method S3Interface.CheckRead should have comment or be unexported (golint)
    • Line 189: warning: exported method S3Interface.CheckWrite should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/drone/options.go
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 18: warning: exported function NewDefaultConfigString should have comment or be unexported (golint)
    • Line 37: warning: exported function NewDefaultConfig should have comment or be unexported (golint)
    • Line 47: warning: exported function WithDrondId should have comment or be unexported (golint)
    • Line 53: warning: exported function WithListenPort should have comment or be unexported (golint)
    • Line 59: warning: exported function WithCmdInfoLogPath should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/repo/error.go
    • Line 4: warning: exported const ErrNotExpect should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type ErrorWithCode should have comment or be unexported (golint)
    • Line 39: warning: exported method ErrorWithCode.Code should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/util/idutil/id.go
    • Line 53: warning: exported function GetIntId should have comment or be unexported (golint)
    • Line 61: warning: comment on exported function GetUuid should be of the form "GetUuid ..." (golint)
    • Line 82: warning: exported const Alphabet62 should have comment (or a comment on this block) or be unexported (golint)
    • Line 86: warning: comment on exported function GetUuid36 should be of the form "GetUuid36 ..." (golint)
    • Line 135: warning: exported function GetSecret should have comment or be unexported (golint)
    • Line 139: warning: exported function GetRefreshToken should have comment or be unexported (golint)
    • Line 143: warning: exported function GetAttachmentPrefix should have comment or be unexported (golint)
    • Line 165: warning: exported function IPv4 should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/config/config.go
    • Line 18: warning: exported type Config should have comment or be unexported (golint)
    • Line 28: warning: exported type IAMConfig should have comment or be unexported (golint)
    • Line 34: warning: exported type AttachmentConfig should have comment or be unexported (golint)
    • Line 41: warning: exported type LogConfig should have comment or be unexported (golint)
    • Line 45: warning: exported type GrpcConfig should have comment or be unexported (golint)
    • Line 49: warning: exported type EtcdConfig should have comment or be unexported (golint)
    • Line 53: warning: exported type MysqlConfig should have comment or be unexported (golint)
    • Line 62: warning: exported method MysqlConfig.GetUrl should have comment or be unexported (golint)
    • Line 66: warning: exported function PrintUsage should have comment or be unexported (golint)
    • Line 75: warning: exported function GetFlagSet should have comment or be unexported (golint)
    • Line 80: warning: exported function ParseFlag should have comment or be unexported (golint)
    • Line 108: warning: exported function GetConf should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/client/app/client.go
    • Line 17: warning: exported type Client should have comment or be unexported (golint)
    • Line 21: warning: exported function NewAppManagerClient should have comment or be unexported (golint)
    • Line 31: warning: exported type DescribeAppsApi should have comment or be unexported (golint)
    • Line 33: warning: exported method DescribeAppsApi.SetRequest should have comment or be unexported (golint)
    • Line 44: warning: exported method DescribeAppsApi.Describe should have comment or be unexported (golint)
    • Line 53: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /openpitrix.io/openpitrix/pkg/constants/column.go
    • Line 7: warning: exported var Fields should have comment or be unexported (golint)
    • Line 110: warning: exported const ColumnAppId should have comment (or a comment on this block) or be unexported (golint)
    • Line 211: warning: exported var PushEventTables should have comment or be unexported (golint)
    • Line 226: warning: comment on exported var IndexedColumns should be of the form "IndexedColumns ..." (golint)
    • Line 293: warning: exported var SearchWordColumnTable should have comment or be unexported (golint)
    • Line 308: warning: comment on exported var SearchColumns should be of the form "SearchColumns ..." (golint)
    • /openpitrix.io/openpitrix/pkg/service/repo_indexer/controller.go
    • Line 5: warning: don't use an underscore in package name (golint)
    • Line 28: warning: exported type EventController should have comment or be unexported (golint)
    • Line 35: warning: exported function NewEventController should have comment or be unexported (golint)
    • Line 44: warning: exported method EventController.NewRepoEvent should have comment or be unexported (golint)
    • Line 103: warning: exported method EventController.ExecuteEvent should have comment or be unexported (golint)
    • Line 160: warning: exported method EventController.GetEventLength should have comment or be unexported (golint)
    • Line 163: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 168: warning: exported method EventController.Dequeue should have comment or be unexported (golint)
    • Line 185: warning: exported method EventController.Serve should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/client/cluster/client.go
    • Line 22: warning: exported type Client should have comment or be unexported (golint)
    • Line 26: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 36: warning: exported method Client.GetClusterNodes should have comment or be unexported (golint)
    • Line 51: warning: exported method Client.GetClusters should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.GetClusterWrappers should have comment or be unexported (golint)
    • Line 92: warning: exported method Client.ModifyClusterTransitionStatus should have comment or be unexported (golint)
    • Line 103: warning: exported method Client.ModifyClusterStatus should have comment or be unexported (golint)
    • Line 114: warning: exported method Client.ModifyClusterNodeTransitionStatus should have comment or be unexported (golint)
    • Line 124: warning: exported method Client.ModifyClusterNodeStatus should have comment or be unexported (golint)
    • Line 134: warning: exported method Client.DescribeClustersWithFrontgateId should have comment or be unexported (golint)
    • Line 165: warning: exported method Client.DeleteAndCeaseClusters should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/runtime.go
    • Line 18: warning: exported const RuntimeIdPrefix should have comment or be unexported (golint)
    • Line 20: warning: exported function NewRuntimeId should have comment or be unexported (golint)
    • Line 24: warning: exported type RuntimeDetails should have comment or be unexported (golint)
    • Line 29: warning: exported type Runtime should have comment or be unexported (golint)
    • Line 44: warning: exported var RuntimeColumns should have comment or be unexported (golint)
    • Line 46: warning: exported function NewRuntime should have comment or be unexported (golint)
    • Line 66: warning: exported function RuntimeToPb should have comment or be unexported (golint)
    • Line 83: warning: exported function PbToRuntime should have comment or be unexported (golint)
    • Line 101: warning: exported function RuntimeToPbs should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/cmd/opctl/out.go
    • Line 20: warning: exported type Out should have comment or be unexported (golint)
    • Line 32: warning: exported method Out.GetBodyWithIndent should have comment or be unexported (golint)
    • Line 42: warning: exported method Out.GetParamsWithIndent should have comment or be unexported (golint)
    • Line 57: warning: exported method Out.WriteRequest should have comment or be unexported (golint)
    • Line 70: warning: exported method Out.WriteResponse should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/client/task/client.go
    • Line 20: warning: exported type Client should have comment or be unexported (golint)
    • Line 24: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 34: warning: exported method Client.WaitTask should have comment or be unexported (golint)
    • Line 67: warning: exported method Client.SendTask should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/cluster/frontgate.go
    • Line 24: warning: exported type Frontgate should have comment or be unexported (golint)
    • Line 68: warning: exported method Frontgate.GetFrontgate should have comment or be unexported (golint)
    • Line 81: warning: exported method Frontgate.ActivateFrontgate should have comment or be unexported (golint)
    • Line 90: warning: exported method Frontgate.GetActiveFrontgate should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/app/permission.go
    • Line 20: warning: exported function CheckAppsPermission should have comment or be unexported (golint)
    • Line 46: warning: exported function CheckAppPermission should have comment or be unexported (golint)
    • Line 72: warning: exported function CheckAppVersionsPermission should have comment or be unexported (golint)
    • Line 98: warning: exported function CheckAppVersionPermission should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/frontgate/updater.go
    • Line 27: warning: exported var FrontgateVersion should have comment or be unexported (golint)
    • Line 51: warning: exported type Updater should have comment or be unexported (golint)
    • Line 59: warning: exported function NewUpdater should have comment or be unexported (golint)
    • Line 178: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 249: warning: exported method Updater.SendQuitToMetad should have comment or be unexported (golint)
    • Line 266: warning: exported method Updater.Close should have comment or be unexported (golint)
    • Line 275: warning: exported method Updater.Serve should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/util/passphraseless/rsa.go
    • Line 16: warning: exported function EncodeSSHKey should have comment or be unexported (golint)
    • Line 24: warning: exported function GenerateRsaKey should have comment or be unexported (golint)
    • Line 32: warning: exported function EncodeRsaPrivateKey should have comment or be unexported (golint)
    • Line 39: warning: exported function MakeSSHRsaKeyPair should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/config/test_config/config.go
    • Line 5: warning: don't use an underscore in package name (golint)
    • Line 16: warning: exported type DbTestConfig should have comment or be unexported (golint)
    • Line 26: warning: exported function NewDbTestConfig should have comment or be unexported (golint)
    • Line 35: warning: exported method DbTestConfig.GetDatabaseConn should have comment or be unexported (golint)
    • Line 46: warning: exported method DbTestConfig.CheckDbUnitTest should have comment or be unexported (golint)
    • Line 52: warning: exported type EtcdTestConfig should have comment or be unexported (golint)
    • Line 57: warning: exported function NewEtcdTestConfig should have comment or be unexported (golint)
    • Line 65: warning: exported method EtcdTestConfig.GetTestEtcdEndpoints should have comment or be unexported (golint)
    • Line 72: warning: exported method EtcdTestConfig.CheckEtcdUnitTest should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/db/connection.go
    • Line 23: warning: exported type Database should have comment or be unexported (golint)
    • Line 27: warning: exported function OpenDatabase should have comment or be unexported (golint)
    • Line 44: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 48: warning: exported function FromContext should have comment or be unexported (golint)
    • Line 62: warning: exported method Database.New should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/quota.go
    • Line 11: warning: exported type Quota should have comment or be unexported (golint)
    • Line 16: warning: exported type Quotas should have comment or be unexported (golint)
    • Line 25: warning: exported function NewQuotas should have comment or be unexported (golint)
    • Line 37: warning: exported method Quotas.LessThan should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/service/metadata/frontgate/config_manager.go
    • Line 23: warning: exported type ConfigManager should have comment or be unexported (golint)
    • Line 29: warning: exported function NewConfigManager should have comment or be unexported (golint)
    • Line 50: warning: exported method ConfigManager.Get should have comment or be unexported (golint)
    • Line 58: warning: exported method ConfigManager.Set should have comment or be unexported (golint)
    • Line 95: warning: exported method ConfigManager.Save should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/util/labelutil/label.go
    • Line 17: warning: exported function Parse should have comment or be unexported (golint)
    • Line 30: warning: exported type Q should have comment or be unexported (golint)
    • Line 35: warning: exported type Query should have comment or be unexported (golint)
    • Line 37: warning: exported method Query.Append should have comment or be unexported (golint)
    • Line 45: warning: comment on exported method Query.ToString should be of the form "ToString ..." (golint)
    • /openpitrix.io/openpitrix/pkg/client/config/file.go
    • Line 17: warning: exported type ClientConfig should have comment or be unexported (golint)
    • Line 36: warning: exported function GetClient should have comment or be unexported (golint)
    • Line 44: warning: exported function GetTokenSource should have comment or be unexported (golint)
    • Line 52: warning: exported function ReadConfigFile should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/vpc.go
    • Line 14: warning: exported type Vpc should have comment or be unexported (golint)
    • Line 25: warning: exported type Eip should have comment or be unexported (golint)
    • Line 31: warning: exported function EipToPb should have comment or be unexported (golint)
    • Line 41: warning: exported function PbToEip should have comment or be unexported (golint)
    • Line 49: warning: exported function VpcToPb should have comment or be unexported (golint)
    • Line 63: warning: exported function PbToVpc should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/task.go
    • Line 20: warning: exported function NewTaskId should have comment or be unexported (golint)
    • Line 24: warning: exported type Task should have comment or be unexported (golint)
    • Line 41: warning: exported var TaskColumns should have comment or be unexported (golint)
    • Line 43: warning: exported function NewTask should have comment or be unexported (golint)
    • Line 65: warning: exported function TaskToPb should have comment or be unexported (golint)
    • Line 84: warning: exported function TasksToPbs should have comment or be unexported (golint)
    • Line 91: warning: exported function PbToTask should have comment or be unexported (golint)
    • Line 111: warning: exported function PbsToTasks should have comment or be unexported (golint)
    • Line 118: warning: exported method Task.GetTimeout should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/util/tlsutil/tlsutil.go
    • Line 14: warning: exported function NewTLSConfigFromFile should have comment or be unexported (golint)
    • Line 25: warning: exported function NewServerTLSConfigFromFile should have comment or be unexported (golint)
    • Line 25: warning: don't use underscores in Go names; func parameter server_crt should be serverCrt (golint)
    • Line 25: warning: don't use underscores in Go names; func parameter server_key should be serverKey (golint)
    • Line 25: warning: don't use underscores in Go names; func parameter ca_crt should be caCrt (golint)
    • Line 50: warning: exported function NewServerTLSConfigFromString should have comment or be unexported (golint)
    • Line 75: warning: exported function NewClientTLSConfigFromFile should have comment or be unexported (golint)
    • Line 100: warning: exported function NewClientTLSConfigFromString should have comment or be unexported (golint)
    • /openpitrix.io/openpitrix/pkg/models/repo_selector.go
    • Line 16: warning: exported function NewRepoSelectorId should have comment or be unexported (golint)
    • Line 20: warning: exported type RepoSelector should have comment or be unexported (golint)
    • Line 29: warning: exported var RepoSelectorColumns should have comment or be unexported (golint)
    • Line 31: warning: exported function NewRepoSelector should have comment or be unexported (golint)
    • Line 42: warning: exported function RepoSelectorToPb should have comment or be unexported (golint)
    • Line 50: warning: exported function RepoSelectorsToPbs should have comment or be unexported (golint)
    • Line 57: warning: exported function RepoSelectorsMap should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words