Preparing report...

Report for github.com/longhorn/longhorn-manager

A+    Excellent!    Found 167 issues across 288 files

Tweet

gofmt98%

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!


gocyclo87%

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.

    • longhorn-manager/controller/node_controller.go
    • Line 272: warning: cyclomatic complexity 37 of function (*NodeController).syncNode() is high (> 15) (gocyclo)
    • Line 591: warning: cyclomatic complexity 37 of function (*NodeController).syncDiskStatus() is high (> 15) (gocyclo)
    • Line 827: warning: cyclomatic complexity 21 of function (*NodeController).syncInstanceManagers() is high (> 15) (gocyclo)
    • longhorn-manager/controller/setting_controller.go
    • Line 552: warning: cyclomatic complexity 24 of function (*SettingController).updateNodeSelector() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 20 of function (*SettingController).updateTaintToleration() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 19 of function (*SettingController).syncSetting() is high (> 15) (gocyclo)
    • Line 464: warning: cyclomatic complexity 16 of function (*SettingController).updatePriorityClass() is high (> 15) (gocyclo)
    • longhorn-manager/controller/share_manager_controller.go
    • Line 545: warning: cyclomatic complexity 22 of function (*ShareManagerController).syncShareManagerPod() is high (> 15) (gocyclo)
    • Line 433: warning: cyclomatic complexity 21 of function (*ShareManagerController).syncShareManagerVolume() is high (> 15) (gocyclo)
    • Line 261: warning: cyclomatic complexity 17 of function (*ShareManagerController).syncShareManager() is high (> 15) (gocyclo)
    • longhorn-manager/manager/volume.go
    • Line 158: warning: cyclomatic complexity 29 of function (*VolumeManager).Create() is high (> 15) (gocyclo)
    • Line 302: warning: cyclomatic complexity 27 of function (*VolumeManager).Attach() is high (> 15) (gocyclo)
    • Line 403: warning: cyclomatic complexity 19 of function (*VolumeManager).Detach() is high (> 15) (gocyclo)
    • Line 836: warning: cyclomatic complexity 18 of function (*VolumeManager).EngineUpgrade() is high (> 15) (gocyclo)
    • Line 473: warning: cyclomatic complexity 17 of function (*VolumeManager).Salvage() is high (> 15) (gocyclo)
    • longhorn-manager/controller/backing_image_manager_controller.go
    • Line 380: warning: cyclomatic complexity 41 of function (*BackingImageManagerController).syncBackingImageManagerPod() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 26 of function (*BackingImageManagerController).syncBackingImageManager() is high (> 15) (gocyclo)
    • Line 579: warning: cyclomatic complexity 23 of function (*BackingImageManagerController).downloadBackingImages() is high (> 15) (gocyclo)
    • longhorn-manager/controller/engine_controller.go
    • Line 702: warning: cyclomatic complexity 46 of function (*EngineMonitor).refresh() is high (> 15) (gocyclo)
    • Line 205: warning: cyclomatic complexity 31 of function (*EngineController).syncEngine() is high (> 15) (gocyclo)
    • Line 929: warning: cyclomatic complexity 19 of function syncWithRestoreStatus() is high (> 15) (gocyclo)
    • longhorn-manager/controller/volume_controller.go
    • Line 820: warning: cyclomatic complexity 147 of function (*VolumeController).ReconcileVolumeState() is high (> 15) (gocyclo)
    • Line 230: warning: cyclomatic complexity 62 of function (*VolumeController).syncVolume() is high (> 15) (gocyclo)
    • Line 509: warning: cyclomatic complexity 45 of function (*VolumeController).ReconcileEngineReplicaState() is high (> 15) (gocyclo)
    • Line 1602: warning: cyclomatic complexity 36 of function (*VolumeController).upgradeEngineForVolume() is high (> 15) (gocyclo)
    • Line 2403: warning: cyclomatic complexity 34 of function (*VolumeController).processMigration() is high (> 15) (gocyclo)
    • Line 1888: warning: cyclomatic complexity 26 of function (*VolumeController).checkForAutoDetachment() is high (> 15) (gocyclo)
    • Line 2220: warning: cyclomatic complexity 18 of function (*VolumeController).updateRecurringJobs() is high (> 15) (gocyclo)
    • Line 1466: warning: cyclomatic complexity 17 of function (*VolumeController).replenishReplicas() is high (> 15) (gocyclo)
    • Line 703: warning: cyclomatic complexity 16 of function (*VolumeController).cleanupCorruptedOrStaleReplicas() is high (> 15) (gocyclo)
    • Line 2643: warning: cyclomatic complexity 16 of function (*VolumeController).ReconcileShareManagerState() is high (> 15) (gocyclo)

golint44%

Golint is a linter for Go source code.

    • longhorn-manager/datastore/kubernetes.go
    • Line 33: warning: exported const PodProbeInitialDelay should have comment (or a comment on this block) or be unexported (golint)
    • Line 163: warning: exported method DataStore.ListEngineImageDaemonSetPodsFromEngineImageName should have comment or be unexported (golint)
    • Line 260: warning: exported method DataStore.ListDaemonSetWithLabels should have comment or be unexported (golint)
    • Line 290: warning: exported method DataStore.ListDeploymentWithLabels should have comment or be unexported (golint)
    • Line 356: warning: exported method DataStore.ListShareManagerPods should have comment or be unexported (golint)
    • Line 364: warning: exported method DataStore.ListBackingImageManagerPods should have comment or be unexported (golint)
    • Line 374: warning: exported method DataStore.ListPodsBySelector should have comment or be unexported (golint)
    • longhorn-manager/client/generated_backing_image.go
    • Line 4: warning: exported const BACKING_IMAGE_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type BackingImage should have comment or be unexported (golint)
    • Line 19: warning: exported type BackingImageCollection should have comment or be unexported (golint)
    • Line 25: warning: exported type BackingImageClient should have comment or be unexported (golint)
    • Line 29: warning: exported type BackingImageOperations should have comment or be unexported (golint)
    • Line 45: warning: exported method BackingImageClient.Create should have comment or be unexported (golint)
    • Line 51: warning: exported method BackingImageClient.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method BackingImageClient.List should have comment or be unexported (golint)
    • Line 64: warning: exported method BackingImageCollection.Next should have comment or be unexported (golint)
    • Line 74: warning: exported method BackingImageClient.ById should have comment or be unexported (golint)
    • Line 85: warning: exported method BackingImageClient.Delete should have comment or be unexported (golint)
    • Line 89: warning: exported method BackingImageClient.ActionBackingImageCleanup should have comment or be unexported (golint)
    • longhorn-manager/client/generated_support_bundle_initate_input.go
    • Line 4: warning: exported const SUPPORT_BUNDLE_INITATE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type SupportBundleInitateInput should have comment or be unexported (golint)
    • Line 15: warning: exported type SupportBundleInitateInputCollection should have comment or be unexported (golint)
    • Line 21: warning: exported type SupportBundleInitateInputClient should have comment or be unexported (golint)
    • Line 25: warning: exported type SupportBundleInitateInputOperations should have comment or be unexported (golint)
    • Line 39: warning: exported method SupportBundleInitateInputClient.Create should have comment or be unexported (golint)
    • Line 45: warning: exported method SupportBundleInitateInputClient.Update should have comment or be unexported (golint)
    • Line 51: warning: exported method SupportBundleInitateInputClient.List should have comment or be unexported (golint)
    • Line 58: warning: exported method SupportBundleInitateInputCollection.Next should have comment or be unexported (golint)
    • Line 68: warning: exported method SupportBundleInitateInputClient.ById should have comment or be unexported (golint)
    • Line 79: warning: exported method SupportBundleInitateInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/upgrade/upgrade.go
    • Line 35: warning: exported const LeaseLockName should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported function Upgrade should have comment or be unexported (golint)
    • longhorn-manager/api/engineimage.go
    • Line 14: warning: exported method Server.EngineImageList should have comment or be unexported (golint)
    • Line 37: warning: exported method Server.EngineImageGet should have comment or be unexported (golint)
    • Line 54: warning: exported method Server.EngineImageCreate should have comment or be unexported (golint)
    • Line 74: warning: exported method Server.EngineImageDelete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_disk_update.go
    • Line 4: warning: exported const DISK_UPDATE_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type DiskUpdate should have comment or be unexported (golint)
    • Line 21: warning: exported type DiskUpdateCollection should have comment or be unexported (golint)
    • Line 27: warning: exported type DiskUpdateClient should have comment or be unexported (golint)
    • Line 31: warning: exported type DiskUpdateOperations should have comment or be unexported (golint)
    • Line 45: warning: exported method DiskUpdateClient.Create should have comment or be unexported (golint)
    • Line 51: warning: exported method DiskUpdateClient.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method DiskUpdateClient.List should have comment or be unexported (golint)
    • Line 64: warning: exported method DiskUpdateCollection.Next should have comment or be unexported (golint)
    • Line 74: warning: exported method DiskUpdateClient.ById should have comment or be unexported (golint)
    • Line 85: warning: exported method DiskUpdateClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/controller/instance_manager_controller.go
    • Line 43: warning: exported type InstanceManagerController should have comment or be unexported (golint)
    • Line 66: warning: exported type InstanceManagerMonitor should have comment or be unexported (golint)
    • Line 83: warning: exported type InstanceManagerUpdater should have comment or be unexported (golint)
    • Line 87: warning: exported type InstanceManagerNotifier should have comment or be unexported (golint)
    • Line 105: warning: exported function NewInstanceManagerController should have comment or be unexported (golint)
    • Line 187: warning: exported method InstanceManagerController.Run should have comment or be unexported (golint)
    • Line 962: warning: exported function NewInstanceManagerUpdater should have comment or be unexported (golint)
    • Line 969: warning: exported method InstanceManagerUpdater.Poll should have comment or be unexported (golint)
    • Line 973: warning: exported method InstanceManagerUpdater.GetNotifier should have comment or be unexported (golint)
    • Line 981: warning: exported function NewInstanceManagerNotifier should have comment or be unexported (golint)
    • Line 987: warning: exported method InstanceManagerNotifier.Recv should have comment or be unexported (golint)
    • Line 995: warning: exported method InstanceManagerNotifier.Close should have comment or be unexported (golint)
    • Line 1079: warning: exported method InstanceManagerMonitor.Run should have comment or be unexported (golint)
    • longhorn-manager/controller/engine_image_controller.go
    • Line 40: warning: exported var ExpiredEngineImageTimeout should have comment or be unexported (golint)
    • Line 43: warning: exported type EngineImageController should have comment or be unexported (golint)
    • Line 67: warning: exported function NewEngineImageController should have comment or be unexported (golint)
    • Line 124: warning: exported method EngineImageController.Run should have comment or be unexported (golint)
    • Line 673: warning: exported method EngineImageController.ResolveRefAndEnqueue should have comment or be unexported (golint)
    • longhorn-manager/upgrade/v1alpha1/types/deepcopy.go
    • Line 3: warning: exported method VolumeSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 32: warning: exported method VolumeStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 42: warning: exported method EngineSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 58: warning: exported method EngineStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 89: warning: exported method NodeSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 112: warning: exported method NodeStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 129: warning: exported method DiskStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 140: warning: exported method InstanceManagerStatus.DeepCopyInto should have comment or be unexported (golint)
    • longhorn-manager/upgrade/v1alpha1/types/resource.go
    • Line 3: warning: exported type VolumeState should have comment or be unexported (golint)
    • Line 6: warning: exported const VolumeStateCreating should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type VolumeRobustness should have comment or be unexported (golint)
    • Line 17: warning: exported const VolumeRobustnessHealthy should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type VolumeFrontend should have comment or be unexported (golint)
    • Line 26: warning: exported const VolumeFrontendBlockDev should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type ConditionStatus should have comment or be unexported (golint)
    • Line 33: warning: exported const ConditionStatusTrue should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type Condition should have comment or be unexported (golint)
    • Line 47: warning: exported type VolumeConditionType should have comment or be unexported (golint)
    • Line 50: warning: exported const VolumeConditionTypeScheduled should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported const VolumeConditionReasonReplicaSchedulingFailure should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported type VolumeSpec should have comment or be unexported (golint)
    • Line 77: warning: exported type KubernetesStatus should have comment or be unexported (golint)
    • Line 91: warning: exported type WorkloadStatus should have comment or be unexported (golint)
    • Line 98: warning: exported type VolumeStatus should have comment or be unexported (golint)
    • Line 109: warning: exported type RecurringJobType should have comment or be unexported (golint)
    • Line 112: warning: exported const RecurringJobTypeSnapshot should have comment (or a comment on this block) or be unexported (golint)
    • Line 116: warning: exported type RecurringJob should have comment or be unexported (golint)
    • Line 124: warning: exported type InstanceState should have comment or be unexported (golint)
    • Line 127: warning: exported const InstanceStateRunning should have comment (or a comment on this block) or be unexported (golint)
    • Line 134: warning: exported type InstanceSpec should have comment or be unexported (golint)
    • Line 144: warning: exported type InstanceStatus should have comment or be unexported (golint)
    • Line 154: warning: exported type EngineSpec should have comment or be unexported (golint)
    • Line 164: warning: exported type EngineStatus should have comment or be unexported (golint)
    • Line 174: warning: exported type ReplicaSpec should have comment or be unexported (golint)
    • Line 185: warning: exported type ReplicaStatus should have comment or be unexported (golint)
    • Line 189: warning: exported type EngineImageState should have comment or be unexported (golint)
    • Line 192: warning: exported const EngineImageStateDeploying should have comment (or a comment on this block) or be unexported (golint)
    • Line 198: warning: exported type EngineImageSpec should have comment or be unexported (golint)
    • Line 203: warning: exported type EngineImageStatus should have comment or be unexported (golint)
    • Line 212: warning: exported const InvalidEngineVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 215: warning: exported type EngineVersionDetails should have comment or be unexported (golint)
    • Line 228: warning: exported type NodeSpec should have comment or be unexported (golint)
    • Line 235: warning: exported type NodeConditionType should have comment or be unexported (golint)
    • Line 238: warning: exported const NodeConditionTypeReady should have comment (or a comment on this block) or be unexported (golint)
    • Line 243: warning: exported const NodeConditionReasonManagerPodDown should have comment (or a comment on this block) or be unexported (golint)
    • Line 252: warning: exported type DiskConditionType should have comment or be unexported (golint)
    • Line 255: warning: exported const DiskConditionTypeSchedulable should have comment (or a comment on this block) or be unexported (golint)
    • Line 260: warning: exported const DiskConditionReasonDiskPressure should have comment (or a comment on this block) or be unexported (golint)
    • Line 265: warning: exported type NodeStatus should have comment or be unexported (golint)
    • Line 270: warning: exported type DiskSpec should have comment or be unexported (golint)
    • Line 277: warning: exported type DiskStatus should have comment or be unexported (golint)
    • Line 285: warning: exported type BackupStatus should have comment or be unexported (golint)
    • Line 293: warning: exported type RestoreStatus should have comment or be unexported (golint)
    • Line 303: warning: exported type PurgeStatus should have comment or be unexported (golint)
    • Line 310: warning: exported type InstanceType should have comment or be unexported (golint)
    • Line 313: warning: exported const InstanceTypeEngine should have comment (or a comment on this block) or be unexported (golint)
    • Line 317: warning: exported type InstanceManagerState should have comment or be unexported (golint)
    • Line 320: warning: exported const InstanceManagerStateError should have comment (or a comment on this block) or be unexported (golint)
    • Line 327: warning: exported type InstanceManagerType should have comment or be unexported (golint)
    • Line 330: warning: exported const InstanceManagerTypeEngine should have comment (or a comment on this block) or be unexported (golint)
    • Line 334: warning: exported type InstanceManagerSpec should have comment or be unexported (golint)
    • Line 341: warning: exported type InstanceManagerStatus should have comment or be unexported (golint)
    • Line 348: warning: exported type InstanceProcess should have comment or be unexported (golint)
    • Line 353: warning: exported type InstanceProcessSpec should have comment or be unexported (golint)
    • Line 357: warning: exported type InstanceProcessStatus should have comment or be unexported (golint)
    • longhorn-manager/types/resource.go
    • Line 3: warning: exported type VolumeState should have comment or be unexported (golint)
    • Line 6: warning: exported const VolumeStateCreating should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type VolumeRobustness should have comment or be unexported (golint)
    • Line 17: warning: exported const VolumeRobustnessHealthy should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type VolumeFrontend should have comment or be unexported (golint)
    • Line 26: warning: exported const VolumeFrontendBlockDev should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type DataLocality should have comment or be unexported (golint)
    • Line 34: warning: exported const DataLocalityDisabled should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type AccessMode should have comment or be unexported (golint)
    • Line 41: warning: exported const AccessModeReadWriteOnce should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported type ConditionStatus should have comment or be unexported (golint)
    • Line 48: warning: exported const ConditionStatusTrue should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported type Condition should have comment or be unexported (golint)
    • Line 63: warning: exported const VolumeConditionTypeScheduled should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: exported const VolumeConditionReasonReplicaSchedulingFailure should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: exported type VolumeSpec should have comment or be unexported (golint)
    • Line 101: warning: exported type KubernetesStatus should have comment or be unexported (golint)
    • Line 115: warning: exported type WorkloadStatus should have comment or be unexported (golint)
    • Line 122: warning: exported type VolumeStatus should have comment or be unexported (golint)
    • Line 145: warning: exported type RecurringJobType should have comment or be unexported (golint)
    • Line 148: warning: exported const RecurringJobTypeSnapshot should have comment (or a comment on this block) or be unexported (golint)
    • Line 152: warning: exported type RecurringJob should have comment or be unexported (golint)
    • Line 160: warning: exported type InstanceState should have comment or be unexported (golint)
    • Line 163: warning: exported const InstanceStateRunning should have comment (or a comment on this block) or be unexported (golint)
    • Line 171: warning: exported type InstanceSpec should have comment or be unexported (golint)
    • Line 181: warning: exported type InstanceStatus should have comment or be unexported (golint)
    • Line 193: warning: exported type EngineSpec should have comment or be unexported (golint)
    • Line 204: warning: exported type EngineStatus should have comment or be unexported (golint)
    • Line 222: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 233: warning: exported type ReplicaSpec should have comment or be unexported (golint)
    • Line 253: warning: exported type ReplicaStatus should have comment or be unexported (golint)
    • Line 258: warning: exported type EngineImageState should have comment or be unexported (golint)
    • Line 261: warning: exported const EngineImageStateDeploying should have comment (or a comment on this block) or be unexported (golint)
    • Line 267: warning: exported type EngineImageSpec should have comment or be unexported (golint)
    • Line 272: warning: exported const EngineImageConditionTypeReady should have comment (or a comment on this block) or be unexported (golint)
    • Line 278: warning: exported type EngineImageStatus should have comment or be unexported (golint)
    • Line 290: warning: exported const InvalidEngineVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 293: warning: exported type EngineVersionDetails should have comment or be unexported (golint)
    • Line 306: warning: exported type NodeSpec should have comment or be unexported (golint)
    • Line 317: warning: exported const NodeConditionTypeReady should have comment (or a comment on this block) or be unexported (golint)
    • Line 323: warning: exported const NodeConditionReasonManagerPodDown should have comment (or a comment on this block) or be unexported (golint)
    • Line 334: warning: exported const DiskConditionTypeSchedulable should have comment (or a comment on this block) or be unexported (golint)
    • Line 339: warning: exported const DiskConditionReasonDiskPressure should have comment (or a comment on this block) or be unexported (golint)
    • Line 345: warning: exported type NodeStatus should have comment or be unexported (golint)
    • Line 352: warning: exported type DiskSpec should have comment or be unexported (golint)
    • Line 360: warning: exported type DiskStatus should have comment or be unexported (golint)
    • Line 369: warning: exported type BackupStatus should have comment or be unexported (golint)
    • Line 378: warning: exported type RestoreStatus should have comment or be unexported (golint)
    • Line 389: warning: exported type PurgeStatus should have comment or be unexported (golint)
    • Line 396: warning: exported type RebuildStatus should have comment or be unexported (golint)
    • Line 404: warning: exported type InstanceType should have comment or be unexported (golint)
    • Line 407: warning: exported const InstanceTypeEngine should have comment (or a comment on this block) or be unexported (golint)
    • Line 411: warning: exported type InstanceManagerState should have comment or be unexported (golint)
    • Line 414: warning: exported const InstanceManagerStateError should have comment (or a comment on this block) or be unexported (golint)
    • Line 421: warning: exported type InstanceManagerType should have comment or be unexported (golint)
    • Line 424: warning: exported const InstanceManagerTypeEngine should have comment (or a comment on this block) or be unexported (golint)
    • Line 428: warning: exported type InstanceManagerSpec should have comment or be unexported (golint)
    • Line 437: warning: exported type InstanceManagerStatus should have comment or be unexported (golint)
    • Line 446: warning: exported type InstanceProcess should have comment or be unexported (golint)
    • Line 451: warning: exported type InstanceProcessSpec should have comment or be unexported (golint)
    • Line 455: warning: exported type InstanceProcessStatus should have comment or be unexported (golint)
    • Line 466: warning: exported type ShareManagerState should have comment or be unexported (golint)
    • Line 469: warning: exported const ShareManagerStateUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 476: warning: exported type ShareManagerSpec should have comment or be unexported (golint)
    • Line 480: warning: exported type ShareManagerStatus should have comment or be unexported (golint)
    • Line 486: warning: exported type BackingImageDownloadState should have comment or be unexported (golint)
    • Line 489: warning: exported const BackingImageDownloadStatePending should have comment (or a comment on this block) or be unexported (golint)
    • Line 497: warning: exported type BackingImageSpec should have comment or be unexported (golint)
    • Line 502: warning: exported type BackingImageStatus should have comment or be unexported (golint)
    • Line 511: warning: exported type BackingImageManagerState should have comment or be unexported (golint)
    • Line 514: warning: exported const BackingImageManagerStateError should have comment (or a comment on this block) or be unexported (golint)
    • Line 521: warning: exported type BackingImageManagerSpec should have comment or be unexported (golint)
    • Line 529: warning: exported type BackingImageManagerStatus should have comment or be unexported (golint)
    • Line 538: warning: exported type BackingImageFileInfo should have comment or be unexported (golint)
    • longhorn-manager/client/generated_engine_image.go
    • Line 4: warning: exported const ENGINE_IMAGE_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type EngineImage should have comment or be unexported (golint)
    • Line 47: warning: exported type EngineImageCollection should have comment or be unexported (golint)
    • Line 53: warning: exported type EngineImageClient should have comment or be unexported (golint)
    • Line 57: warning: exported type EngineImageOperations should have comment or be unexported (golint)
    • Line 71: warning: exported method EngineImageClient.Create should have comment or be unexported (golint)
    • Line 77: warning: exported method EngineImageClient.Update should have comment or be unexported (golint)
    • Line 83: warning: exported method EngineImageClient.List should have comment or be unexported (golint)
    • Line 90: warning: exported method EngineImageCollection.Next should have comment or be unexported (golint)
    • Line 100: warning: exported method EngineImageClient.ById should have comment or be unexported (golint)
    • Line 111: warning: exported method EngineImageClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_volume_condition.go
    • Line 4: warning: exported const VOLUME_CONDITION_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type VolumeCondition should have comment or be unexported (golint)
    • Line 21: warning: exported type VolumeConditionCollection should have comment or be unexported (golint)
    • Line 27: warning: exported type VolumeConditionClient should have comment or be unexported (golint)
    • Line 31: warning: exported type VolumeConditionOperations should have comment or be unexported (golint)
    • Line 45: warning: exported method VolumeConditionClient.Create should have comment or be unexported (golint)
    • Line 51: warning: exported method VolumeConditionClient.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method VolumeConditionClient.List should have comment or be unexported (golint)
    • Line 64: warning: exported method VolumeConditionCollection.Next should have comment or be unexported (golint)
    • Line 74: warning: exported method VolumeConditionClient.ById should have comment or be unexported (golint)
    • Line 85: warning: exported method VolumeConditionClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/schemas.go
    • Line 8: warning: exported type Schemas should have comment or be unexported (golint)
    • Line 14: warning: exported method Schema.CheckField should have comment or be unexported (golint)
    • Line 24: warning: exported method Schema.Field should have comment or be unexported (golint)
    • Line 29: warning: exported method Schemas.CheckSchema should have comment or be unexported (golint)
    • Line 38: warning: exported method Schemas.Schema should have comment or be unexported (golint)
    • Line 97: warning: exported method Schemas.AddType should have comment or be unexported (golint)
    • longhorn-manager/upgrade/v110to111/upgrade.go
    • Line 36: warning: exported function UpgradeCRs should have comment or be unexported (golint)
    • Line 56: warning: exported function UpgradePods should have comment or be unexported (golint)
    • Line 69: warning: exported function UpgradeServices should have comment or be unexported (golint)
    • Line 82: warning: exported function UpgradeDeploymentAndDaemonSet should have comment or be unexported (golint)
    • longhorn-manager/upgrade/v1alpha1/types/types.go
    • Line 14: warning: exported const LonghornKindVolume should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported const DefaultAPIPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported const CSIMinVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type ReplicaMode should have comment or be unexported (golint)
    • Line 54: warning: exported const ReplicaModeRW should have comment (or a comment on this block) or be unexported (golint)
    • Line 81: warning: exported type NotFoundError should have comment or be unexported (golint)
    • Line 109: warning: exported function GenerateEngineNameForVolume should have comment or be unexported (golint)
    • Line 113: warning: exported function GenerateReplicaNameForVolume should have comment or be unexported (golint)
    • Line 117: warning: exported function GetCronJobNameForVolumeAndJob should have comment or be unexported (golint)
    • Line 121: warning: exported function GetAPIServerAddressFromIP should have comment or be unexported (golint)
    • Line 125: warning: exported function GetImageCanonicalName should have comment or be unexported (golint)
    • Line 129: warning: exported function GetEngineBinaryDirectoryOnHostForImage should have comment or be unexported (golint)
    • Line 134: warning: exported function GetEngineBinaryDirectoryInContainerForImage should have comment or be unexported (golint)
    • Line 139: warning: exported function EngineBinaryExistOnHostForImage should have comment or be unexported (golint)
    • Line 145: warning: exported var LonghornSystemKey should have comment or be unexported (golint)
    • Line 150: warning: exported function GetLonghornLabelKey should have comment or be unexported (golint)
    • Line 154: warning: exported function GetLonghornLabelComponentKey should have comment or be unexported (golint)
    • Line 158: warning: exported function GetEngineImageLabels should have comment or be unexported (golint)
    • Line 165: warning: exported function GetInstanceManagerLabels should have comment or be unexported (golint)
    • Line 174: warning: exported function GetInstanceManagerComponentLabel should have comment or be unexported (golint)
    • Line 180: warning: exported function GetInstanceManagerWithEngineImageKeyLabel should have comment or be unexported (golint)
    • Line 187: warning: exported function GetVolumeLabels should have comment or be unexported (golint)
    • Line 193: warning: exported function GetEngineImageChecksumName should have comment or be unexported (golint)
    • Line 197: warning: exported function GetRandomEngineManagerName should have comment or be unexported (golint)
    • Line 201: warning: exported function GetRandomReplicaManagerName should have comment or be unexported (golint)
    • Line 222: warning: exported function GetNodeConditionFromStatus should have comment or be unexported (golint)
    • Line 230: warning: exported function GetDiskConditionFromStatus should have comment or be unexported (golint)
    • Line 238: warning: exported function GetReplicaMountedDataPath should have comment or be unexported (golint)
    • Line 245: warning: exported function ErrorIsNotFound should have comment or be unexported (golint)
    • Line 249: warning: exported function ErrorAlreadyExists should have comment or be unexported (golint)
    • Line 253: warning: exported function ValidateReplicaCount should have comment or be unexported (golint)
    • Line 260: warning: exported function GetDaemonSetNameFromEngineImageName should have comment or be unexported (golint)
    • Line 264: warning: exported function GetEngineImageNameFromDaemonSetName should have comment or be unexported (golint)
    • Line 268: warning: exported function LabelsToString should have comment or be unexported (golint)
    • longhorn-manager/manager/engineimage.go
    • Line 20: warning: exported var WaitForEngineImageCount should have comment or be unexported (golint)
    • Line 24: warning: exported method VolumeManager.ListEngineImagesByName should have comment or be unexported (golint)
    • Line 28: warning: exported method VolumeManager.ListEngineImagesSorted should have comment or be unexported (golint)
    • Line 46: warning: exported method VolumeManager.GetEngineImageByName should have comment or be unexported (golint)
    • Line 50: warning: exported method VolumeManager.GetEngineImageByImage should have comment or be unexported (golint)
    • Line 55: warning: exported method VolumeManager.CreateEngineImage should have comment or be unexported (golint)
    • Line 79: warning: exported method VolumeManager.DeleteEngineImageByName should have comment or be unexported (golint)
    • Line 104: warning: exported method VolumeManager.DeployEngineImage should have comment or be unexported (golint)
    • longhorn-manager/client/generated_api_version.go
    • Line 4: warning: exported const API_VERSION_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type ApiVersion should have comment or be unexported (golint)
    • Line 11: warning: exported type ApiVersionCollection should have comment or be unexported (golint)
    • Line 17: warning: exported type ApiVersionClient should have comment or be unexported (golint)
    • Line 21: warning: exported type ApiVersionOperations should have comment or be unexported (golint)
    • Line 35: warning: exported method ApiVersionClient.Create should have comment or be unexported (golint)
    • Line 41: warning: exported method ApiVersionClient.Update should have comment or be unexported (golint)
    • Line 47: warning: exported method ApiVersionClient.List should have comment or be unexported (golint)
    • Line 54: warning: exported method ApiVersionCollection.Next should have comment or be unexported (golint)
    • Line 64: warning: exported method ApiVersionClient.ById should have comment or be unexported (golint)
    • Line 75: warning: exported method ApiVersionClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_restore_status.go
    • Line 4: warning: exported const RESTORE_STATUS_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type RestoreStatus should have comment or be unexported (golint)
    • Line 27: warning: exported type RestoreStatusCollection should have comment or be unexported (golint)
    • Line 33: warning: exported type RestoreStatusClient should have comment or be unexported (golint)
    • Line 37: warning: exported type RestoreStatusOperations should have comment or be unexported (golint)
    • Line 51: warning: exported method RestoreStatusClient.Create should have comment or be unexported (golint)
    • Line 57: warning: exported method RestoreStatusClient.Update should have comment or be unexported (golint)
    • Line 63: warning: exported method RestoreStatusClient.List should have comment or be unexported (golint)
    • Line 70: warning: exported method RestoreStatusCollection.Next should have comment or be unexported (golint)
    • Line 80: warning: exported method RestoreStatusClient.ById should have comment or be unexported (golint)
    • Line 91: warning: exported method RestoreStatusClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/controller/setting_controller.go
    • Line 38: warning: exported const VersionTagLatest should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type SettingController should have comment or be unexported (golint)
    • Line 69: warning: exported type BackupStoreMonitor should have comment or be unexported (golint)
    • Line 83: warning: exported type Version should have comment or be unexported (golint)
    • Line 89: warning: exported type CheckUpgradeRequest should have comment or be unexported (golint)
    • Line 94: warning: exported type CheckUpgradeResponse should have comment or be unexported (golint)
    • Line 98: warning: exported function NewSettingController should have comment or be unexported (golint)
    • Line 143: warning: exported method SettingController.Run should have comment or be unexported (golint)
    • Line 629: warning: exported method BackupStoreMonitor.Start should have comment or be unexported (golint)
    • Line 698: warning: exported method BackupStoreMonitor.Stop should have comment or be unexported (golint)
    • Line 754: warning: exported method SettingController.CheckLatestLonghornVersion should have comment or be unexported (golint)
    • longhorn-manager/engineapi/snapshot.go
    • Line 15: warning: exported const VolumeHeadName should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported method Engine.SnapshotCreate should have comment or be unexported (golint)
    • Line 32: warning: exported method Engine.SnapshotList should have comment or be unexported (golint)
    • Line 44: warning: exported method Engine.SnapshotGet should have comment or be unexported (golint)
    • Line 52: warning: exported method Engine.SnapshotDelete should have comment or be unexported (golint)
    • Line 62: warning: exported method Engine.SnapshotRevert should have comment or be unexported (golint)
    • Line 72: warning: exported method Engine.SnapshotPurge should have comment or be unexported (golint)
    • Line 80: warning: exported method Engine.SnapshotPurgeStatus should have comment or be unexported (golint)
    • longhorn-manager/util/k8s.go
    • Line 9: warning: exported function AddFinalizer should have comment or be unexported (golint)
    • Line 30: warning: exported function RemoveFinalizer should have comment or be unexported (golint)
    • Line 48: warning: exported function FinalizerExists should have comment or be unexported (golint)
    • longhorn-manager/client/generated_pvccreate_input.go
    • Line 4: warning: exported const PVCCREATE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type PVCCreateInput should have comment or be unexported (golint)
    • Line 15: warning: exported type PVCCreateInputCollection should have comment or be unexported (golint)
    • Line 21: warning: exported type PVCCreateInputClient should have comment or be unexported (golint)
    • Line 25: warning: exported type PVCCreateInputOperations should have comment or be unexported (golint)
    • Line 39: warning: exported method PVCCreateInputClient.Create should have comment or be unexported (golint)
    • Line 45: warning: exported method PVCCreateInputClient.Update should have comment or be unexported (golint)
    • Line 51: warning: exported method PVCCreateInputClient.List should have comment or be unexported (golint)
    • Line 58: warning: exported method PVCCreateInputCollection.Next should have comment or be unexported (golint)
    • Line 68: warning: exported method PVCCreateInputClient.ById should have comment or be unexported (golint)
    • Line 79: warning: exported method PVCCreateInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_snapshot_input.go
    • Line 4: warning: exported const SNAPSHOT_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type SnapshotInput should have comment or be unexported (golint)
    • Line 15: warning: exported type SnapshotInputCollection should have comment or be unexported (golint)
    • Line 21: warning: exported type SnapshotInputClient should have comment or be unexported (golint)
    • Line 25: warning: exported type SnapshotInputOperations should have comment or be unexported (golint)
    • Line 39: warning: exported method SnapshotInputClient.Create should have comment or be unexported (golint)
    • Line 45: warning: exported method SnapshotInputClient.Update should have comment or be unexported (golint)
    • Line 51: warning: exported method SnapshotInputClient.List should have comment or be unexported (golint)
    • Line 58: warning: exported method SnapshotInputCollection.Next should have comment or be unexported (golint)
    • Line 68: warning: exported method SnapshotInputClient.ById should have comment or be unexported (golint)
    • Line 79: warning: exported method SnapshotInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/upgrade/v1alpha1/k8s/pkg/apis/longhorn/v1alpha1/types.go
    • Line 14: warning: exported type Volume should have comment or be unexported (golint)
    • Line 24: warning: exported type VolumeList should have comment or be unexported (golint)
    • Line 35: warning: exported type Engine should have comment or be unexported (golint)
    • Line 45: warning: exported type EngineList should have comment or be unexported (golint)
    • Line 56: warning: exported type Replica should have comment or be unexported (golint)
    • Line 66: warning: exported type ReplicaList should have comment or be unexported (golint)
    • Line 76: warning: exported type Setting should have comment or be unexported (golint)
    • Line 85: warning: exported type SettingList should have comment or be unexported (golint)
    • Line 96: warning: exported type EngineImage should have comment or be unexported (golint)
    • Line 106: warning: exported type EngineImageList should have comment or be unexported (golint)
    • Line 116: warning: exported type Node should have comment or be unexported (golint)
    • Line 125: warning: exported type NodeList should have comment or be unexported (golint)
    • Line 135: warning: exported type InstanceManager should have comment or be unexported (golint)
    • Line 144: warning: exported type InstanceManagerList should have comment or be unexported (golint)
    • longhorn-manager/types/deepcopy.go
    • Line 3: warning: exported method VolumeSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 32: warning: exported method VolumeStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 47: warning: exported method EngineSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 63: warning: exported method EngineStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 123: warning: exported method NodeSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 146: warning: exported method NodeStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 164: warning: exported method DiskStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 180: warning: exported method InstanceManagerStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 190: warning: exported method EngineImageStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 206: warning: exported method BackingImageSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 216: warning: exported method BackingImageStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 238: warning: exported method BackingImageManagerSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 248: warning: exported method BackingImageManagerStatus.DeepCopyInto should have comment or be unexported (golint)
    • longhorn-manager/monitoring/manager_collector.go
    • Line 16: warning: exported type ManagerCollector should have comment or be unexported (golint)
    • Line 26: warning: exported function NewManagerCollector should have comment or be unexported (golint)
    • Line 62: warning: exported method ManagerCollector.Describe should have comment or be unexported (golint)
    • Line 67: warning: exported method ManagerCollector.Collect should have comment or be unexported (golint)
    • longhorn-manager/manager/setting.go
    • Line 13: warning: exported method VolumeManager.GetSettingValueExisted should have comment or be unexported (golint)
    • Line 17: warning: exported method VolumeManager.GetSetting should have comment or be unexported (golint)
    • Line 21: warning: exported method VolumeManager.ListSettings should have comment or be unexported (golint)
    • Line 25: warning: exported method VolumeManager.ListSettingsSorted should have comment or be unexported (golint)
    • Line 42: warning: exported method VolumeManager.CreateOrUpdateSetting should have comment or be unexported (golint)
    • longhorn-manager/client/generated_attach_input.go
    • Line 4: warning: exported const ATTACH_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type AttachInput should have comment or be unexported (golint)
    • Line 17: warning: exported type AttachInputCollection should have comment or be unexported (golint)
    • Line 23: warning: exported type AttachInputClient should have comment or be unexported (golint)
    • Line 27: warning: exported type AttachInputOperations should have comment or be unexported (golint)
    • Line 41: warning: exported method AttachInputClient.Create should have comment or be unexported (golint)
    • Line 47: warning: exported method AttachInputClient.Update should have comment or be unexported (golint)
    • Line 53: warning: exported method AttachInputClient.List should have comment or be unexported (golint)
    • Line 60: warning: exported method AttachInputCollection.Next should have comment or be unexported (golint)
    • Line 70: warning: exported method AttachInputClient.ById should have comment or be unexported (golint)
    • Line 81: warning: exported method AttachInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_detach_input.go
    • Line 4: warning: exported const DETACH_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type DetachInput should have comment or be unexported (golint)
    • Line 13: warning: exported type DetachInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type DetachInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type DetachInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method DetachInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method DetachInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method DetachInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method DetachInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method DetachInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method DetachInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_purge_status.go
    • Line 4: warning: exported const PURGE_STATUS_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type PurgeStatus should have comment or be unexported (golint)
    • Line 21: warning: exported type PurgeStatusCollection should have comment or be unexported (golint)
    • Line 27: warning: exported type PurgeStatusClient should have comment or be unexported (golint)
    • Line 31: warning: exported type PurgeStatusOperations should have comment or be unexported (golint)
    • Line 45: warning: exported method PurgeStatusClient.Create should have comment or be unexported (golint)
    • Line 51: warning: exported method PurgeStatusClient.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method PurgeStatusClient.List should have comment or be unexported (golint)
    • Line 64: warning: exported method PurgeStatusCollection.Next should have comment or be unexported (golint)
    • Line 74: warning: exported method PurgeStatusClient.ById should have comment or be unexported (golint)
    • Line 85: warning: exported method PurgeStatusClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_rebuild_status.go
    • Line 4: warning: exported const REBUILD_STATUS_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type RebuildStatus should have comment or be unexported (golint)
    • Line 23: warning: exported type RebuildStatusCollection should have comment or be unexported (golint)
    • Line 29: warning: exported type RebuildStatusClient should have comment or be unexported (golint)
    • Line 33: warning: exported type RebuildStatusOperations should have comment or be unexported (golint)
    • Line 47: warning: exported method RebuildStatusClient.Create should have comment or be unexported (golint)
    • Line 53: warning: exported method RebuildStatusClient.Update should have comment or be unexported (golint)
    • Line 59: warning: exported method RebuildStatusClient.List should have comment or be unexported (golint)
    • Line 66: warning: exported method RebuildStatusCollection.Next should have comment or be unexported (golint)
    • Line 76: warning: exported method RebuildStatusClient.ById should have comment or be unexported (golint)
    • Line 87: warning: exported method RebuildStatusClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/engineapi/enginesim.go
    • Line 10: warning: exported type EngineSimulatorRequest should have comment or be unexported (golint)
    • Line 17: warning: exported type EngineSimulatorCollection should have comment or be unexported (golint)
    • Line 22: warning: exported function NewEngineSimulatorCollection should have comment or be unexported (golint)
    • Line 29: warning: exported method EngineSimulatorCollection.CreateEngineSimulator should have comment or be unexported (golint)
    • Line 53: warning: exported method EngineSimulatorCollection.GetEngineSimulator should have comment or be unexported (golint)
    • Line 63: warning: exported method EngineSimulatorCollection.DeleteEngineSimulator should have comment or be unexported (golint)
    • Line 76: warning: exported method EngineSimulatorCollection.NewEngineClient should have comment or be unexported (golint)
    • Line 84: warning: exported type EngineSimulator should have comment or be unexported (golint)
    • Line 93: warning: exported method EngineSimulator.Name should have comment or be unexported (golint)
    • Line 97: warning: exported method EngineSimulator.ReplicaList should have comment or be unexported (golint)
    • Line 109: warning: exported method EngineSimulator.ReplicaAdd should have comment or be unexported (golint)
    • Line 128: warning: exported method EngineSimulator.ReplicaRemove should have comment or be unexported (golint)
    • Line 139: warning: exported method EngineSimulator.SimulateStopReplica should have comment or be unexported (golint)
    • Line 150: warning: exported method EngineSimulator.SnapshotCreate should have comment or be unexported (golint)
    • Line 154: warning: exported method EngineSimulator.SnapshotList should have comment or be unexported (golint)
    • Line 158: warning: exported method EngineSimulator.SnapshotGet should have comment or be unexported (golint)
    • Line 162: warning: exported method EngineSimulator.SnapshotDelete should have comment or be unexported (golint)
    • Line 166: warning: exported method EngineSimulator.SnapshotRevert should have comment or be unexported (golint)
    • Line 170: warning: exported method EngineSimulator.SnapshotPurge should have comment or be unexported (golint)
    • Line 174: warning: exported method EngineSimulator.SnapshotPurgeStatus should have comment or be unexported (golint)
    • Line 178: warning: exported method EngineSimulator.SnapshotBackup should have comment or be unexported (golint)
    • Line 182: warning: exported method EngineSimulator.SnapshotBackupStatus should have comment or be unexported (golint)
    • Line 186: warning: exported method EngineSimulator.Version should have comment or be unexported (golint)
    • Line 190: warning: exported method EngineSimulator.Info should have comment or be unexported (golint)
    • Line 194: warning: exported method EngineSimulator.Endpoint should have comment or be unexported (golint)
    • Line 198: warning: exported method EngineSimulator.Expand should have comment or be unexported (golint)
    • Line 202: warning: exported method EngineSimulator.BackupRestore should have comment or be unexported (golint)
    • Line 206: warning: exported method EngineSimulator.BackupRestoreStatus should have comment or be unexported (golint)
    • Line 210: warning: exported method EngineSimulator.ReplicaRebuildStatus should have comment or be unexported (golint)
    • Line 214: warning: exported method EngineSimulator.FrontendStart should have comment or be unexported (golint)
    • Line 217: warning: exported method EngineSimulator.FrontendShutdown should have comment or be unexported (golint)
    • Line 221: warning: exported method EngineSimulator.ReplicaRebuildVerify should have comment or be unexported (golint)
    • longhorn-manager/types/types.go
    • Line 19: warning: exported const LonghornKindNode should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported const DefaultAPIPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 92: warning: exported const CSIMinVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 99: warning: exported type ReplicaMode should have comment or be unexported (golint)
    • Line 102: warning: exported const ReplicaModeRW should have comment (or a comment on this block) or be unexported (golint)
    • Line 140: warning: exported type NotFoundError should have comment or be unexported (golint)
    • Line 171: warning: exported function GenerateEngineNameForVolume should have comment or be unexported (golint)
    • Line 175: warning: exported function GenerateReplicaNameForVolume should have comment or be unexported (golint)
    • Line 179: warning: exported function GetCronJobNameForVolumeAndJob should have comment or be unexported (golint)
    • Line 183: warning: exported function GetAPIServerAddressFromIP should have comment or be unexported (golint)
    • Line 187: warning: exported function GetDefaultManagerURL should have comment or be unexported (golint)
    • Line 191: warning: exported function GetImageCanonicalName should have comment or be unexported (golint)
    • Line 195: warning: exported function GetEngineBinaryDirectoryOnHostForImage should have comment or be unexported (golint)
    • Line 200: warning: exported function GetEngineBinaryDirectoryForEngineManagerContainer should have comment or be unexported (golint)
    • Line 205: warning: exported function GetEngineBinaryDirectoryForReplicaManagerContainer should have comment or be unexported (golint)
    • Line 210: warning: exported function EngineBinaryExistOnHostForImage should have comment or be unexported (golint)
    • Line 215: warning: exported function GetBackingImageManagerName should have comment or be unexported (golint)
    • Line 219: warning: exported function GetBackingImageDirectoryName should have comment or be unexported (golint)
    • Line 223: warning: exported function GetBackingImageManagerDirectoryOnHost should have comment or be unexported (golint)
    • Line 227: warning: exported function GetBackingImageDirectoryOnHost should have comment or be unexported (golint)
    • Line 231: warning: exported function GetBackingImagePathForReplicaManagerContainer should have comment or be unexported (golint)
    • Line 236: warning: exported var LonghornSystemKey should have comment or be unexported (golint)
    • Line 239: warning: exported function GetLonghornLabelKey should have comment or be unexported (golint)
    • Line 243: warning: exported function GetBaseLabelsForSystemManagedComponent should have comment or be unexported (golint)
    • Line 247: warning: exported function GetLonghornLabelComponentKey should have comment or be unexported (golint)
    • Line 251: warning: exported function GetEngineImageLabels should have comment or be unexported (golint)
    • Line 266: warning: exported function GetEngineImageComponentLabel should have comment or be unexported (golint)
    • Line 272: warning: exported function GetInstanceManagerLabels should have comment or be unexported (golint)
    • Line 286: warning: exported function GetInstanceManagerComponentLabel should have comment or be unexported (golint)
    • Line 292: warning: exported function GetShareManagerComponentLabel should have comment or be unexported (golint)
    • Line 298: warning: exported function GetShareManagerInstanceLabel should have comment or be unexported (golint)
    • Line 304: warning: exported function GetShareManagerLabels should have comment or be unexported (golint)
    • Line 319: warning: exported function GetBackingImageLabels should have comment or be unexported (golint)
    • Line 325: warning: exported function GetBackingImageManagerLabels should have comment or be unexported (golint)
    • Line 337: warning: exported function GetVolumeLabels should have comment or be unexported (golint)
    • Line 343: warning: exported function GetRegionAndZone should have comment or be unexported (golint)
    • Line 364: warning: exported function GetEngineImageChecksumName should have comment or be unexported (golint)
    • Line 368: warning: exported function GetInstanceManagerImageChecksumName should have comment or be unexported (golint)
    • Line 372: warning: exported function GetShareManagerImageChecksumName should have comment or be unexported (golint)
    • Line 376: warning: exported function GetShareManagerPodNameFromShareManagerName should have comment or be unexported (golint)
    • Line 380: warning: exported function GetShareManagerNameFromShareManagerPodName should have comment or be unexported (golint)
    • Line 384: warning: exported function ValidateEngineImageChecksumName should have comment or be unexported (golint)
    • Line 389: warning: exported function GetInstanceManagerName should have comment or be unexported (golint)
    • Line 399: warning: exported function GetInstanceManagerPrefix should have comment or be unexported (golint)
    • Line 409: warning: exported function GetReplicaDataPath should have comment or be unexported (golint)
    • Line 413: warning: exported function GetReplicaMountedDataPath should have comment or be unexported (golint)
    • Line 420: warning: exported function ErrorIsNotFound should have comment or be unexported (golint)
    • Line 424: warning: exported function ErrorAlreadyExists should have comment or be unexported (golint)
    • Line 428: warning: exported function ValidateReplicaCount should have comment or be unexported (golint)
    • Line 435: warning: exported function ValidateDataLocality should have comment or be unexported (golint)
    • Line 442: warning: exported function ValidateAccessMode should have comment or be unexported (golint)
    • Line 449: warning: exported function GetDaemonSetNameFromEngineImageName should have comment or be unexported (golint)
    • Line 453: warning: exported function GetEngineImageNameFromDaemonSetName should have comment or be unexported (golint)
    • Line 457: warning: exported function LabelsToString should have comment or be unexported (golint)
    • Line 466: warning: exported function CreateDisksFromAnnotation should have comment or be unexported (golint)
    • Line 521: warning: exported function GetNodeTagsFromAnnotation should have comment or be unexported (golint)
    • Line 534: warning: exported type DiskSpecWithName should have comment or be unexported (golint)
    • Line 559: warning: exported function CreateDefaultDisk should have comment or be unexported (golint)
    • Line 577: warning: exported function ValidateCPUReservationValues should have comment or be unexported (golint)
    • longhorn-manager/manager/backup.go
    • Line 18: warning: exported var ConflictRetryCount should have comment or be unexported (golint)
    • Line 21: warning: exported function UpdateVolumeLastBackup should have comment or be unexported (golint)
    • Line 36: warning: exported function SyncVolumeLastBackupWithBackupVolume should have comment or be unexported (golint)
    • Line 82: warning: exported function SyncVolumesLastBackupWithBackupVolumes should have comment or be unexported (golint)
    • Line 113: warning: exported function GenerateBackupTarget should have comment or be unexported (golint)
    • Line 129: warning: exported function GetBackupCredentialConfig should have comment or be unexported (golint)
    • longhorn-manager/api/backup.go
    • Line 12: warning: exported method Server.BackupVolumeList should have comment or be unexported (golint)
    • Line 23: warning: exported method Server.BackupVolumeGet should have comment or be unexported (golint)
    • Line 36: warning: exported method Server.BackupVolumeDelete should have comment or be unexported (golint)
    • Line 44: warning: exported method Server.BackupList should have comment or be unexported (golint)
    • Line 55: warning: exported method Server.BackupGet should have comment or be unexported (golint)
    • Line 81: warning: exported method Server.BackupDelete should have comment or be unexported (golint)
    • longhorn-manager/manager/backingimage.go
    • Line 19: warning: exported method VolumeManager.ListBackingImages should have comment or be unexported (golint)
    • Line 23: warning: exported method VolumeManager.GetBackingImage should have comment or be unexported (golint)
    • Line 27: warning: exported method VolumeManager.CreateBackingImage should have comment or be unexported (golint)
    • Line 57: warning: exported method VolumeManager.DeleteBackingImage should have comment or be unexported (golint)
    • Line 72: warning: exported method VolumeManager.CleanUpBackingImageInDisks should have comment or be unexported (golint)
    • longhorn-manager/client/generated_backup_list_output.go
    • Line 4: warning: exported const BACKUP_LIST_OUTPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type BackupListOutput should have comment or be unexported (golint)
    • Line 13: warning: exported type BackupListOutputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type BackupListOutputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type BackupListOutputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method BackupListOutputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method BackupListOutputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method BackupListOutputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method BackupListOutputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method BackupListOutputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method BackupListOutputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/app/uninstall.go
    • Line 21: warning: exported const FlagForce should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function UninstallCmd should have comment or be unexported (golint)
    • longhorn-manager/datastore/longhorn.go
    • Line 1418: warning: exported method DataStore.GetNodeRO should have comment or be unexported (golint)
    • Line 1502: warning: exported method DataStore.ListNodesWithEngineImage should have comment or be unexported (golint)
    • Line 1551: warning: exported method DataStore.ListReadyNodes should have comment or be unexported (golint)
    • Line 1560: warning: exported method DataStore.ListReadyAndSchedulableNodes should have comment or be unexported (golint)
    • Line 1635: warning: exported method DataStore.IsNodeDownOrDeletedOrMissingManager should have comment or be unexported (golint)
    • Line 1678: warning: exported method DataStore.IsNodeSchedulable should have comment or be unexported (golint)
    • Line 1922: warning: exported method DataStore.GetSettingTaintToleration should have comment or be unexported (golint)
    • Line 1934: warning: exported method DataStore.GetSettingSystemManagedComponentsNodeSelector should have comment or be unexported (golint)
    • longhorn-manager/csi/deployment.go
    • Line 22: warning: exported const DefaultCSIAttacherImage should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported var HostPathDirectory should have comment or be unexported (golint)
    • Line 53: warning: exported type AttacherDeployment should have comment or be unexported (golint)
    • Line 58: warning: exported function NewAttacherDeployment should have comment or be unexported (golint)
    • Line 91: warning: exported method AttacherDeployment.Deploy should have comment or be unexported (golint)
    • Line 101: warning: exported method AttacherDeployment.Cleanup should have comment or be unexported (golint)
    • Line 119: warning: exported type ProvisionerDeployment should have comment or be unexported (golint)
    • Line 124: warning: exported function NewProvisionerDeployment should have comment or be unexported (golint)
    • Line 158: warning: exported method ProvisionerDeployment.Deploy should have comment or be unexported (golint)
    • Line 168: warning: exported method ProvisionerDeployment.Cleanup should have comment or be unexported (golint)
    • Line 186: warning: exported type ResizerDeployment should have comment or be unexported (golint)
    • Line 191: warning: exported function NewResizerDeployment should have comment or be unexported (golint)
    • Line 224: warning: exported method ResizerDeployment.Deploy should have comment or be unexported (golint)
    • Line 234: warning: exported method ResizerDeployment.Cleanup should have comment or be unexported (golint)
    • Line 252: warning: exported type SnapshotterDeployment should have comment or be unexported (golint)
    • Line 257: warning: exported function NewSnapshotterDeployment should have comment or be unexported (golint)
    • Line 288: warning: exported method SnapshotterDeployment.Deploy should have comment or be unexported (golint)
    • Line 298: warning: exported method SnapshotterDeployment.Cleanup should have comment or be unexported (golint)
    • Line 316: warning: exported type PluginDeployment should have comment or be unexported (golint)
    • Line 320: warning: exported function NewPluginDeployment should have comment or be unexported (golint)
    • Line 558: warning: exported method PluginDeployment.Deploy should have comment or be unexported (golint)
    • Line 563: warning: exported method PluginDeployment.Cleanup should have comment or be unexported (golint)
    • Line 570: warning: exported type DriverObjectDeployment should have comment or be unexported (golint)
    • Line 574: warning: exported function NewCSIDriverObject should have comment or be unexported (golint)
    • Line 589: warning: exported method DriverObjectDeployment.Deploy should have comment or be unexported (golint)
    • Line 594: warning: exported method DriverObjectDeployment.Cleanup should have comment or be unexported (golint)
    • longhorn-manager/api/backingimage.go
    • Line 12: warning: exported method Server.BackingImageList should have comment or be unexported (golint)
    • Line 31: warning: exported method Server.BackingImageGet should have comment or be unexported (golint)
    • Line 44: warning: exported method Server.BackingImageCreate should have comment or be unexported (golint)
    • Line 60: warning: exported method Server.BackingImageDelete should have comment or be unexported (golint)
    • Line 69: warning: exported method Server.BackingImageCleanup should have comment or be unexported (golint)
    • longhorn-manager/client/generated_node.go
    • Line 4: warning: exported const NODE_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type Node should have comment or be unexported (golint)
    • Line 33: warning: exported type NodeCollection should have comment or be unexported (golint)
    • Line 39: warning: exported type NodeClient should have comment or be unexported (golint)
    • Line 43: warning: exported type NodeOperations should have comment or be unexported (golint)
    • Line 59: warning: exported method NodeClient.Create should have comment or be unexported (golint)
    • Line 65: warning: exported method NodeClient.Update should have comment or be unexported (golint)
    • Line 71: warning: exported method NodeClient.List should have comment or be unexported (golint)
    • Line 78: warning: exported method NodeCollection.Next should have comment or be unexported (golint)
    • Line 88: warning: exported method NodeClient.ById should have comment or be unexported (golint)
    • Line 99: warning: exported method NodeClient.Delete should have comment or be unexported (golint)
    • Line 103: warning: exported method NodeClient.ActionDiskUpdate should have comment or be unexported (golint)
    • longhorn-manager/client/generated_pvcreate_input.go
    • Line 4: warning: exported const PVCREATE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type PVCreateInput should have comment or be unexported (golint)
    • Line 15: warning: exported type PVCreateInputCollection should have comment or be unexported (golint)
    • Line 21: warning: exported type PVCreateInputClient should have comment or be unexported (golint)
    • Line 25: warning: exported type PVCreateInputOperations should have comment or be unexported (golint)
    • Line 39: warning: exported method PVCreateInputClient.Create should have comment or be unexported (golint)
    • Line 45: warning: exported method PVCreateInputClient.Update should have comment or be unexported (golint)
    • Line 51: warning: exported method PVCreateInputClient.List should have comment or be unexported (golint)
    • Line 58: warning: exported method PVCreateInputCollection.Next should have comment or be unexported (golint)
    • Line 68: warning: exported method PVCreateInputClient.ById should have comment or be unexported (golint)
    • Line 79: warning: exported method PVCreateInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_snapshot_list_output.go
    • Line 4: warning: exported const SNAPSHOT_LIST_OUTPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type SnapshotListOutput should have comment or be unexported (golint)
    • Line 13: warning: exported type SnapshotListOutputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type SnapshotListOutputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type SnapshotListOutputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method SnapshotListOutputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method SnapshotListOutputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method SnapshotListOutputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method SnapshotListOutputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method SnapshotListOutputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method SnapshotListOutputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/controller/websocket_controller.go
    • Line 13: warning: exported type SimpleResourceEventHandler should have comment or be unexported (golint)
    • Line 15: warning: exported method SimpleResourceEventHandler.OnAdd should have comment or be unexported (golint)
    • Line 16: warning: exported method SimpleResourceEventHandler.OnUpdate should have comment or be unexported (golint)
    • Line 17: warning: exported method SimpleResourceEventHandler.OnDelete should have comment or be unexported (golint)
    • Line 19: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 25: warning: exported method Watcher.Events should have comment or be unexported (golint)
    • Line 29: warning: exported method Watcher.Close should have comment or be unexported (golint)
    • Line 33: warning: exported type WebsocketController should have comment or be unexported (golint)
    • Line 47: warning: exported function NewWebsocketController should have comment or be unexported (golint)
    • Line 80: warning: exported method WebsocketController.NewWatcher should have comment or be unexported (golint)
    • Line 93: warning: exported method WebsocketController.Run should have comment or be unexported (golint)
    • Line 108: warning: exported method WebsocketController.Close should have comment or be unexported (golint)
    • longhorn-manager/controller/controller_manager.go
    • Line 32: warning: exported var Workers should have comment or be unexported (golint)
    • Line 36: warning: exported function StartControllers should have comment or be unexported (golint)
    • Line 190: warning: exported function ParseResourceRequirement should have comment or be unexported (golint)
    • Line 205: warning: exported function GetInstanceManagerCPURequirement should have comment or be unexported (golint)
    • Line 282: warning: exported function IsSameGuaranteedCPURequirement should have comment or be unexported (golint)
    • longhorn-manager/engineapi/backups.go
    • Line 18: warning: exported type BackupTarget should have comment or be unexported (golint)
    • Line 24: warning: exported function NewBackupTarget should have comment or be unexported (golint)
    • Line 32: warning: exported method BackupTarget.LonghornEngineBinary should have comment or be unexported (golint)
    • Line 72: warning: exported method BackupTarget.ExecuteEngineBinary should have comment or be unexported (golint)
    • Line 80: warning: exported method BackupTarget.ExecuteEngineBinaryWithoutTimeout should have comment or be unexported (golint)
    • Line 161: warning: exported method BackupTarget.ListVolumes should have comment or be unexported (golint)
    • Line 172: warning: exported method BackupTarget.GetVolume should have comment or be unexported (golint)
    • Line 187: warning: exported method BackupTarget.DeleteVolume should have comment or be unexported (golint)
    • Line 198: warning: exported method BackupTarget.List should have comment or be unexported (golint)
    • Line 212: warning: exported method BackupTarget.GetBackup should have comment or be unexported (golint)
    • Line 223: warning: exported method BackupTarget.DeleteBackup should have comment or be unexported (golint)
    • Line 237: warning: exported function GetBackupURL should have comment or be unexported (golint)
    • Line 241: warning: exported method Engine.SnapshotBackup should have comment or be unexported (golint)
    • Line 282: warning: exported method Engine.SnapshotBackupStatus should have comment or be unexported (golint)
    • Line 295: warning: exported method Engine.BackupRestore should have comment or be unexported (golint)
    • Line 324: warning: exported method Engine.BackupRestoreStatus should have comment or be unexported (golint)
    • longhorn-manager/engineapi/types.go
    • Line 22: warning: exported const CLIVersionFour should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported type Replica should have comment or be unexported (golint)
    • Line 50: warning: exported type Controller should have comment or be unexported (golint)
    • Line 55: warning: exported type EngineClient should have comment or be unexported (golint)
    • Line 86: warning: exported type EngineClientRequest should have comment or be unexported (golint)
    • Line 93: warning: exported type EngineClientCollection should have comment or be unexported (golint)
    • Line 97: warning: exported type Volume should have comment or be unexported (golint)
    • Line 109: warning: exported type BackupVolume should have comment or be unexported (golint)
    • Line 126: warning: exported type Backup should have comment or be unexported (golint)
    • Line 142: warning: exported type BackupCreateInfo should have comment or be unexported (golint)
    • Line 147: warning: exported type LauncherVolumeInfo should have comment or be unexported (golint)
    • Line 153: warning: exported type EngineVersion should have comment or be unexported (golint)
    • Line 158: warning: exported type TaskError should have comment or be unexported (golint)
    • Line 162: warning: exported type ReplicaError should have comment or be unexported (golint)
    • Line 186: warning: exported function GetBackendReplicaURL should have comment or be unexported (golint)
    • Line 190: warning: exported function GetAddressFromBackendReplicaURL should have comment or be unexported (golint)
    • Line 195: warning: exported function ValidateReplicaURL should have comment or be unexported (golint)
    • Line 202: warning: exported function CheckCLICompatibilty should have comment or be unexported (golint)
    • Line 209: warning: exported function GetEngineProcessFrontend should have comment or be unexported (golint)
    • longhorn-manager/monitoring/node_collector.go
    • Line 18: warning: exported type NodeCollector should have comment or be unexported (golint)
    • Line 34: warning: exported function NewNodeCollector should have comment or be unexported (golint)
    • Line 138: warning: exported method NodeCollector.Describe should have comment or be unexported (golint)
    • Line 150: warning: exported method NodeCollector.Collect should have comment or be unexported (golint)
    • longhorn-manager/csi/manager.go
    • Line 10: warning: exported type Manager should have comment or be unexported (golint)
    • Line 18: warning: exported function GetCSIManager should have comment or be unexported (golint)
    • Line 22: warning: exported method Manager.Run should have comment or be unexported (golint)
    • longhorn-manager/client/generated_disk_update_input.go
    • Line 4: warning: exported const DISK_UPDATE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type DiskUpdateInput should have comment or be unexported (golint)
    • Line 13: warning: exported type DiskUpdateInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type DiskUpdateInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type DiskUpdateInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method DiskUpdateInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method DiskUpdateInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method DiskUpdateInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method DiskUpdateInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method DiskUpdateInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method DiskUpdateInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/upgrade/util/util.go
    • Line 14: warning: exported function ListShareManagerPods should have comment or be unexported (golint)
    • Line 24: warning: exported function ListIMPods should have comment or be unexported (golint)
    • Line 34: warning: exported function MergeStringMaps should have comment or be unexported (golint)
    • longhorn-manager/client/generated_salvage_input.go
    • Line 4: warning: exported const SALVAGE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type SalvageInput should have comment or be unexported (golint)
    • Line 13: warning: exported type SalvageInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type SalvageInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type SalvageInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method SalvageInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method SalvageInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method SalvageInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method SalvageInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method SalvageInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method SalvageInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/controller/node_controller.go
    • Line 33: warning: exported type NodeController should have comment or be unexported (golint)
    • Line 59: warning: exported type GetDiskInfoHandler should have comment or be unexported (golint)
    • Line 60: warning: exported type TopologyLabelsChecker should have comment or be unexported (golint)
    • Line 62: warning: exported type GetDiskConfig should have comment or be unexported (golint)
    • Line 63: warning: exported type GenerateDiskConfig should have comment or be unexported (golint)
    • Line 65: warning: exported function NewNodeController should have comment or be unexported (golint)
    • Line 213: warning: exported method NodeController.Run should have comment or be unexported (golint)
    • longhorn-manager/app/daemon.go
    • Line 25: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 28: warning: exported const FlagEngineImage should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported function DaemonCmd should have comment or be unexported (golint)
    • longhorn-manager/api/node.go
    • Line 17: warning: exported method Server.NodeList should have comment or be unexported (golint)
    • Line 40: warning: exported method Server.NodeGet should have comment or be unexported (golint)
    • Line 56: warning: exported method Server.NodeUpdate should have comment or be unexported (golint)
    • Line 101: warning: exported method Server.DiskUpdate should have comment or be unexported (golint)
    • Line 138: warning: exported method Server.NodeDelete should have comment or be unexported (golint)
    • longhorn-manager/client/client.go
    • Line 9: warning: exported type RancherBaseClientImpl should have comment or be unexported (golint)
    • Line 15: warning: exported type RancherBaseClient should have comment or be unexported (golint)
    • longhorn-manager/client/generated_node_condition.go
    • Line 4: warning: exported const NODE_CONDITION_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type NodeCondition should have comment or be unexported (golint)
    • Line 21: warning: exported type NodeConditionCollection should have comment or be unexported (golint)
    • Line 27: warning: exported type NodeConditionClient should have comment or be unexported (golint)
    • Line 31: warning: exported type NodeConditionOperations should have comment or be unexported (golint)
    • Line 45: warning: exported method NodeConditionClient.Create should have comment or be unexported (golint)
    • Line 51: warning: exported method NodeConditionClient.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method NodeConditionClient.List should have comment or be unexported (golint)
    • Line 64: warning: exported method NodeConditionCollection.Next should have comment or be unexported (golint)
    • Line 74: warning: exported method NodeConditionClient.ById should have comment or be unexported (golint)
    • Line 85: warning: exported method NodeConditionClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/types/setting.go
    • Line 21: warning: exported const EnvDefaultSettingPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type Setting should have comment or be unexported (golint)
    • Line 28: warning: exported type SettingType should have comment or be unexported (golint)
    • Line 31: warning: exported const SettingTypeString should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type SettingName should have comment or be unexported (golint)
    • Line 40: warning: exported const SettingNameBackupTarget should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: exported var SettingNameList should have comment or be unexported (golint)
    • Line 131: warning: exported type SettingCategory should have comment or be unexported (golint)
    • Line 134: warning: exported const SettingCategoryGeneral should have comment (or a comment on this block) or be unexported (golint)
    • Line 140: warning: exported type SettingDefinition should have comment or be unexported (golint)
    • Line 152: warning: exported var SettingDefinitions should have comment or be unexported (golint)
    • Line 687: warning: exported type VolumeAttachmentRecoveryPolicy should have comment or be unexported (golint)
    • Line 690: warning: exported const VolumeAttachmentRecoveryPolicyNever should have comment (or a comment on this block) or be unexported (golint)
    • Line 695: warning: exported type NodeDownPodDeletionPolicy should have comment or be unexported (golint)
    • Line 698: warning: exported const NodeDownPodDeletionPolicyDoNothing should have comment (or a comment on this block) or be unexported (golint)
    • Line 704: warning: exported type SystemManagedPodsImagePullPolicy should have comment or be unexported (golint)
    • Line 707: warning: exported const SystemManagedPodsImagePullPolicyNever should have comment (or a comment on this block) or be unexported (golint)
    • Line 712: warning: exported function ValidateInitSetting should have comment or be unexported (golint)
    • Line 851: warning: exported function GetCustomizedDefaultSettings should have comment or be unexported (golint)
    • Line 914: warning: exported function OverwriteBuiltInSettingsWithCustomizedValues should have comment or be unexported (golint)
    • Line 937: warning: exported function ValidateAndUnmarshalToleration should have comment or be unexported (golint)
    • Line 969: warning: exported function UnmarshalTolerations should have comment or be unexported (golint)
    • Line 996: warning: exported function UnmarshalNodeSelector should have comment or be unexported (golint)
    • longhorn-manager/monitoring/volume_collector.go
    • Line 14: warning: exported type VolumeCollector should have comment or be unexported (golint)
    • Line 23: warning: exported function NewVolumeCollector should have comment or be unexported (golint)
    • Line 75: warning: exported method VolumeCollector.Describe should have comment or be unexported (golint)
    • Line 82: warning: exported method VolumeCollector.Collect should have comment or be unexported (golint)
    • longhorn-manager/util/util.go
    • Line 43: warning: exported const VolumeStackPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 64: warning: exported var ConflictRetryInterval should have comment or be unexported (golint)
    • Line 68: warning: exported type MetadataConfig should have comment or be unexported (golint)
    • Line 75: warning: exported type DiskInfo should have comment or be unexported (golint)
    • Line 86: warning: exported function ConvertSize should have comment or be unexported (golint)
    • Line 105: warning: exported function RoundUpSize should have comment or be unexported (golint)
    • Line 116: warning: exported function Backoff should have comment or be unexported (golint)
    • Line 140: warning: exported function UUID should have comment or be unexported (golint)
    • Line 159: warning: exported function RandomID should have comment or be unexported (golint)
    • Line 163: warning: exported function GetLocalIPs should have comment or be unexported (golint)
    • Line 192: warning: exported function Now should have comment or be unexported (golint)
    • Line 196: warning: exported function ParseTime should have comment or be unexported (golint)
    • Line 201: warning: exported function Execute should have comment or be unexported (golint)
    • Line 205: warning: exported function ExecuteWithTimeout should have comment or be unexported (golint)
    • Line 240: warning: exported function ExecuteWithoutTimeout should have comment or be unexported (golint)
    • Line 255: warning: exported function TimestampAfterTimeout should have comment or be unexported (golint)
    • Line 266: warning: exported function TimestampWithinLimit should have comment or be unexported (golint)
    • Line 276: warning: exported function ValidateName should have comment or be unexported (golint)
    • Line 281: warning: exported function GetBackupID should have comment or be unexported (golint)
    • Line 295: warning: exported function GetRequiredEnv should have comment or be unexported (golint)
    • Line 327: warning: exported function RegisterShutdownChannel should have comment or be unexported (golint)
    • Line 337: warning: exported function SplitStringToMap should have comment or be unexported (golint)
    • Line 351: warning: exported function GetSortedKeysFromMap should have comment or be unexported (golint)
    • Line 382: warning: exported function GetStringChecksum should have comment or be unexported (golint)
    • Line 386: warning: exported function GetChecksumSHA512 should have comment or be unexported (golint)
    • Line 391: warning: exported function CheckBackupType should have comment or be unexported (golint)
    • Line 400: warning: exported function GetDiskInfo should have comment or be unexported (golint)
    • Line 424: warning: exported function RetryOnConflictCause should have comment or be unexported (golint)
    • Line 438: warning: exported function RunAsync should have comment or be unexported (golint)
    • Line 446: warning: exported function RemoveHostDirectoryContent should have comment or be unexported (golint)
    • Line 474: warning: exported function CopyHostDirectoryContent should have comment or be unexported (golint)
    • Line 519: warning: exported function FilteredLoggingHandler should have comment or be unexported (golint)
    • Line 539: warning: exported function ValidateSnapshotLabels should have comment or be unexported (golint)
    • Line 561: warning: exported function ValidateTags should have comment or be unexported (golint)
    • Line 581: warning: exported function CreateDiskPathReplicaSubdirectory should have comment or be unexported (golint)
    • Line 594: warning: exported function DeleteDiskPathReplicaSubdirectoryAndDiskCfgFile should have comment or be unexported (golint)
    • Line 618: warning: exported function IsKubernetesDefaultToleration should have comment or be unexported (golint)
    • Line 625: warning: exported function GetAnnotation should have comment or be unexported (golint)
    • Line 639: warning: exported function SetAnnotation should have comment or be unexported (golint)
    • Line 655: warning: exported function GetDistinctTolerations should have comment or be unexported (golint)
    • Line 664: warning: exported function TolerationListToMap should have comment or be unexported (golint)
    • Line 674: warning: exported function GetTolerationChecksum should have comment or be unexported (golint)
    • Line 678: warning: exported function ExpandFileSystem should have comment or be unexported (golint)
    • Line 758: warning: exported function DetectFileSystem should have comment or be unexported (golint)
    • Line 781: warning: exported function IsSupportedFileSystem should have comment or be unexported (golint)
    • Line 788: warning: exported function IsKubernetesVersionAtLeast should have comment or be unexported (golint)
    • Line 798: warning: exported type DiskConfig should have comment or be unexported (golint)
    • Line 802: warning: exported function GetDiskConfig should have comment or be unexported (golint)
    • Line 821: warning: exported function GenerateDiskConfig should have comment or be unexported (golint)
    • Line 862: warning: exported function MinInt should have comment or be unexported (golint)
    • longhorn-manager/client/generated_backup_volume.go
    • Line 4: warning: exported const BACKUP_VOLUME_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type BackupVolume should have comment or be unexported (golint)
    • Line 35: warning: exported type BackupVolumeCollection should have comment or be unexported (golint)
    • Line 41: warning: exported type BackupVolumeClient should have comment or be unexported (golint)
    • Line 45: warning: exported type BackupVolumeOperations should have comment or be unexported (golint)
    • Line 65: warning: exported method BackupVolumeClient.Create should have comment or be unexported (golint)
    • Line 71: warning: exported method BackupVolumeClient.Update should have comment or be unexported (golint)
    • Line 77: warning: exported method BackupVolumeClient.List should have comment or be unexported (golint)
    • Line 84: warning: exported method BackupVolumeCollection.Next should have comment or be unexported (golint)
    • Line 94: warning: exported method BackupVolumeClient.ById should have comment or be unexported (golint)
    • Line 105: warning: exported method BackupVolumeClient.Delete should have comment or be unexported (golint)
    • Line 109: warning: exported method BackupVolumeClient.ActionBackupDelete should have comment or be unexported (golint)
    • Line 118: warning: exported method BackupVolumeClient.ActionBackupGet should have comment or be unexported (golint)
    • Line 127: warning: exported method BackupVolumeClient.ActionBackupList should have comment or be unexported (golint)
    • longhorn-manager/engineapi/backing_image_manager.go
    • Line 14: warning: exported const BackingImageManagerDefaultPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type BackingImageManagerClient should have comment or be unexported (golint)
    • Line 29: warning: exported function CheckBackingImageManagerCompatibilty should have comment or be unexported (golint)
    • Line 37: warning: exported function NewBackingImageManagerClient should have comment or be unexported (golint)
    • Line 74: warning: exported method BackingImageManagerClient.Pull should have comment or be unexported (golint)
    • Line 85: warning: exported method BackingImageManagerClient.Sync should have comment or be unexported (golint)
    • Line 96: warning: exported method BackingImageManagerClient.Delete should have comment or be unexported (golint)
    • Line 103: warning: exported method BackingImageManagerClient.Get should have comment or be unexported (golint)
    • Line 114: warning: exported method BackingImageManagerClient.List should have comment or be unexported (golint)
    • Line 129: warning: exported method BackingImageManagerClient.Watch should have comment or be unexported (golint)
    • Line 136: warning: exported method BackingImageManagerClient.VersionGet should have comment or be unexported (golint)
    • longhorn-manager/manager/engine.go
    • Line 18: warning: exported const BackupStatusQueryInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported method VolumeManager.ListSnapshots should have comment or be unexported (golint)
    • Line 32: warning: exported method VolumeManager.GetSnapshot should have comment or be unexported (golint)
    • Line 50: warning: exported method VolumeManager.CreateSnapshot should have comment or be unexported (golint)
    • Line 84: warning: exported method VolumeManager.DeleteSnapshot should have comment or be unexported (golint)
    • Line 104: warning: exported method VolumeManager.RevertSnapshot should have comment or be unexported (golint)
    • Line 131: warning: exported method VolumeManager.PurgeSnapshot should have comment or be unexported (golint)
    • Line 152: warning: exported method VolumeManager.BackupSnapshot should have comment or be unexported (golint)
    • Line 234: warning: exported method VolumeManager.GetEngineClient should have comment or be unexported (golint)
    • Line 272: warning: exported method VolumeManager.ListBackupVolumes should have comment or be unexported (golint)
    • Line 287: warning: exported method VolumeManager.GetBackupVolume should have comment or be unexported (golint)
    • Line 301: warning: exported method VolumeManager.DeleteBackupVolume should have comment or be unexported (golint)
    • Line 317: warning: exported method VolumeManager.ListBackupsForVolume should have comment or be unexported (golint)
    • Line 326: warning: exported method VolumeManager.GetBackup should have comment or be unexported (golint)
    • Line 336: warning: exported method VolumeManager.DeleteBackup should have comment or be unexported (golint)
    • longhorn-manager/client/generated_setting.go
    • Line 4: warning: exported const SETTING_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type Setting should have comment or be unexported (golint)
    • Line 17: warning: exported type SettingCollection should have comment or be unexported (golint)
    • Line 23: warning: exported type SettingClient should have comment or be unexported (golint)
    • Line 27: warning: exported type SettingOperations should have comment or be unexported (golint)
    • Line 41: warning: exported method SettingClient.Create should have comment or be unexported (golint)
    • Line 47: warning: exported method SettingClient.Update should have comment or be unexported (golint)
    • Line 53: warning: exported method SettingClient.List should have comment or be unexported (golint)
    • Line 60: warning: exported method SettingCollection.Next should have comment or be unexported (golint)
    • Line 70: warning: exported method SettingClient.ById should have comment or be unexported (golint)
    • Line 81: warning: exported method SettingClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_volume.go
    • Line 4: warning: exported const VOLUME_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type Volume should have comment or be unexported (golint)
    • Line 83: warning: exported type VolumeCollection should have comment or be unexported (golint)
    • Line 89: warning: exported type VolumeClient should have comment or be unexported (golint)
    • Line 93: warning: exported type VolumeOperations should have comment or be unexported (golint)
    • Line 141: warning: exported method VolumeClient.Create should have comment or be unexported (golint)
    • Line 147: warning: exported method VolumeClient.Update should have comment or be unexported (golint)
    • Line 153: warning: exported method VolumeClient.List should have comment or be unexported (golint)
    • Line 160: warning: exported method VolumeCollection.Next should have comment or be unexported (golint)
    • Line 170: warning: exported method VolumeClient.ById should have comment or be unexported (golint)
    • Line 181: warning: exported method VolumeClient.Delete should have comment or be unexported (golint)
    • Line 185: warning: exported method VolumeClient.ActionActivate should have comment or be unexported (golint)
    • Line 194: warning: exported method VolumeClient.ActionAttach should have comment or be unexported (golint)
    • Line 203: warning: exported method VolumeClient.ActionCancelExpansion should have comment or be unexported (golint)
    • Line 212: warning: exported method VolumeClient.ActionDetach should have comment or be unexported (golint)
    • Line 221: warning: exported method VolumeClient.ActionExpand should have comment or be unexported (golint)
    • Line 230: warning: exported method VolumeClient.ActionPvCreate should have comment or be unexported (golint)
    • Line 239: warning: exported method VolumeClient.ActionPvcCreate should have comment or be unexported (golint)
    • Line 248: warning: exported method VolumeClient.ActionReplicaRemove should have comment or be unexported (golint)
    • Line 257: warning: exported method VolumeClient.ActionSalvage should have comment or be unexported (golint)
    • Line 266: warning: exported method VolumeClient.ActionSnapshotBackup should have comment or be unexported (golint)
    • Line 275: warning: exported method VolumeClient.ActionSnapshotCreate should have comment or be unexported (golint)
    • Line 284: warning: exported method VolumeClient.ActionSnapshotDelete should have comment or be unexported (golint)
    • Line 293: warning: exported method VolumeClient.ActionSnapshotGet should have comment or be unexported (golint)
    • Line 302: warning: exported method VolumeClient.ActionSnapshotList should have comment or be unexported (golint)
    • Line 311: warning: exported method VolumeClient.ActionSnapshotPurge should have comment or be unexported (golint)
    • Line 320: warning: exported method VolumeClient.ActionSnapshotRevert should have comment or be unexported (golint)
    • Line 329: warning: exported method VolumeClient.ActionUpdateAccessMode should have comment or be unexported (golint)
    • longhorn-manager/k8s/pkg/apis/longhorn/v1beta1/types.go
    • Line 12: warning: exported type Volume should have comment or be unexported (golint)
    • Line 21: warning: exported type VolumeList should have comment or be unexported (golint)
    • Line 30: warning: exported type Engine should have comment or be unexported (golint)
    • Line 39: warning: exported type EngineList should have comment or be unexported (golint)
    • Line 48: warning: exported type Replica should have comment or be unexported (golint)
    • Line 57: warning: exported type ReplicaList should have comment or be unexported (golint)
    • Line 66: warning: exported type Setting should have comment or be unexported (golint)
    • Line 74: warning: exported type SettingList should have comment or be unexported (golint)
    • Line 83: warning: exported type EngineImage should have comment or be unexported (golint)
    • Line 92: warning: exported type EngineImageList should have comment or be unexported (golint)
    • Line 101: warning: exported type Node should have comment or be unexported (golint)
    • Line 110: warning: exported type NodeList should have comment or be unexported (golint)
    • Line 119: warning: exported type InstanceManager should have comment or be unexported (golint)
    • Line 128: warning: exported type InstanceManagerList should have comment or be unexported (golint)
    • Line 137: warning: exported type ShareManager should have comment or be unexported (golint)
    • Line 146: warning: exported type ShareManagerList should have comment or be unexported (golint)
    • Line 155: warning: exported type BackingImage should have comment or be unexported (golint)
    • Line 164: warning: exported type BackingImageList should have comment or be unexported (golint)
    • Line 173: warning: exported type BackingImageManager should have comment or be unexported (golint)
    • Line 182: warning: exported type BackingImageManagerList should have comment or be unexported (golint)
    • longhorn-manager/csi/controller_server.go
    • Line 30: warning: exported type ControllerServer should have comment or be unexported (golint)
    • Line 37: warning: exported function NewControllerServer should have comment or be unexported (golint)
    • Line 56: warning: exported method ControllerServer.CreateVolume should have comment or be unexported (golint)
    • Line 215: warning: exported method ControllerServer.DeleteVolume should have comment or be unexported (golint)
    • Line 252: warning: exported method ControllerServer.ControllerGetCapabilities should have comment or be unexported (golint)
    • Line 258: warning: exported method ControllerServer.ValidateVolumeCapabilities should have comment or be unexported (golint)
    • Line 448: warning: exported method ControllerServer.ListVolumes should have comment or be unexported (golint)
    • Line 452: warning: exported method ControllerServer.GetCapacity should have comment or be unexported (golint)
    • Line 456: warning: exported method ControllerServer.CreateSnapshot should have comment or be unexported (golint)
    • Line 613: warning: exported method ControllerServer.DeleteSnapshot should have comment or be unexported (golint)
    • Line 634: warning: exported method ControllerServer.ListSnapshots should have comment or be unexported (golint)
    • Line 638: warning: exported method ControllerServer.ControllerExpandVolume should have comment or be unexported (golint)
    • longhorn-manager/client/generated_support_bundle.go
    • Line 4: warning: exported const SUPPORT_BUNDLE_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type SupportBundle should have comment or be unexported (golint)
    • Line 21: warning: exported type SupportBundleCollection should have comment or be unexported (golint)
    • Line 27: warning: exported type SupportBundleClient should have comment or be unexported (golint)
    • Line 31: warning: exported type SupportBundleOperations should have comment or be unexported (golint)
    • Line 45: warning: exported method SupportBundleClient.Create should have comment or be unexported (golint)
    • Line 51: warning: exported method SupportBundleClient.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method SupportBundleClient.List should have comment or be unexported (golint)
    • Line 64: warning: exported method SupportBundleCollection.Next should have comment or be unexported (golint)
    • Line 74: warning: exported method SupportBundleClient.ById should have comment or be unexported (golint)
    • Line 85: warning: exported method SupportBundleClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_update_data_locality_input.go
    • Line 4: warning: exported const UPDATE_DATA_LOCALITY_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type UpdateDataLocalityInput should have comment or be unexported (golint)
    • Line 13: warning: exported type UpdateDataLocalityInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type UpdateDataLocalityInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type UpdateDataLocalityInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method UpdateDataLocalityInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method UpdateDataLocalityInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method UpdateDataLocalityInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method UpdateDataLocalityInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method UpdateDataLocalityInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method UpdateDataLocalityInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_engine_upgrade_input.go
    • Line 4: warning: exported const ENGINE_UPGRADE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type EngineUpgradeInput should have comment or be unexported (golint)
    • Line 13: warning: exported type EngineUpgradeInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type EngineUpgradeInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type EngineUpgradeInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method EngineUpgradeInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method EngineUpgradeInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method EngineUpgradeInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method EngineUpgradeInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method EngineUpgradeInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method EngineUpgradeInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_update_access_mode_input.go
    • Line 4: warning: exported const UPDATE_ACCESS_MODE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type UpdateAccessModeInput should have comment or be unexported (golint)
    • Line 13: warning: exported type UpdateAccessModeInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type UpdateAccessModeInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type UpdateAccessModeInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method UpdateAccessModeInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method UpdateAccessModeInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method UpdateAccessModeInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method UpdateAccessModeInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method UpdateAccessModeInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method UpdateAccessModeInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_workload_status.go
    • Line 4: warning: exported const WORKLOAD_STATUS_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type WorkloadStatus should have comment or be unexported (golint)
    • Line 19: warning: exported type WorkloadStatusCollection should have comment or be unexported (golint)
    • Line 25: warning: exported type WorkloadStatusClient should have comment or be unexported (golint)
    • Line 29: warning: exported type WorkloadStatusOperations should have comment or be unexported (golint)
    • Line 43: warning: exported method WorkloadStatusClient.Create should have comment or be unexported (golint)
    • Line 49: warning: exported method WorkloadStatusClient.Update should have comment or be unexported (golint)
    • Line 55: warning: exported method WorkloadStatusClient.List should have comment or be unexported (golint)
    • Line 62: warning: exported method WorkloadStatusCollection.Next should have comment or be unexported (golint)
    • Line 72: warning: exported method WorkloadStatusClient.ById should have comment or be unexported (golint)
    • Line 83: warning: exported method WorkloadStatusClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_expand_input.go
    • Line 4: warning: exported const EXPAND_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type ExpandInput should have comment or be unexported (golint)
    • Line 13: warning: exported type ExpandInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type ExpandInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type ExpandInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method ExpandInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method ExpandInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method ExpandInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method ExpandInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method ExpandInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method ExpandInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_setting_definition.go
    • Line 4: warning: exported const SETTING_DEFINITION_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type SettingDefinition should have comment or be unexported (golint)
    • Line 25: warning: exported type SettingDefinitionCollection should have comment or be unexported (golint)
    • Line 31: warning: exported type SettingDefinitionClient should have comment or be unexported (golint)
    • Line 35: warning: exported type SettingDefinitionOperations should have comment or be unexported (golint)
    • Line 49: warning: exported method SettingDefinitionClient.Create should have comment or be unexported (golint)
    • Line 55: warning: exported method SettingDefinitionClient.Update should have comment or be unexported (golint)
    • Line 61: warning: exported method SettingDefinitionClient.List should have comment or be unexported (golint)
    • Line 68: warning: exported method SettingDefinitionCollection.Next should have comment or be unexported (golint)
    • Line 78: warning: exported method SettingDefinitionClient.ById should have comment or be unexported (golint)
    • Line 89: warning: exported method SettingDefinitionClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/scheduler/replica_scheduler.go
    • Line 18: warning: exported const FailedReplicaMaxRetryCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type ReplicaScheduler should have comment or be unexported (golint)
    • Line 25: warning: exported type Disk should have comment or be unexported (golint)
    • Line 31: warning: exported type DiskSchedulingInfo should have comment or be unexported (golint)
    • Line 40: warning: exported function NewReplicaScheduler should have comment or be unexported (golint)
    • Line 341: warning: exported method ReplicaScheduler.CheckAndReuseFailedReplica should have comment or be unexported (golint)
    • Line 523: warning: exported function GetLatestFailedReplica should have comment or be unexported (golint)
    • Line 543: warning: exported method ReplicaScheduler.IsSchedulableToDisk should have comment or be unexported (golint)
    • Line 552: warning: exported method ReplicaScheduler.GetDiskSchedulingInfo should have comment or be unexported (golint)
    • longhorn-manager/api/misc.go
    • Line 17: warning: exported method Server.EventList should have comment or be unexported (golint)
    • Line 36: warning: exported method Server.InitiateSupportBundle should have comment or be unexported (golint)
    • Line 52: warning: exported method Server.QuerySupportBundle should have comment or be unexported (golint)
    • Line 63: warning: exported method Server.DownloadSupportBundle should have comment or be unexported (golint)
    • Line 92: warning: exported method Server.DiskTagList should have comment or be unexported (golint)
    • Line 104: warning: exported method Server.NodeTagList should have comment or be unexported (golint)
    • Line 116: warning: exported method Server.InstanceManagerGet should have comment or be unexported (golint)
    • Line 129: warning: exported method Server.InstanceManagerList should have comment or be unexported (golint)
    • longhorn-manager/client/generated_kubernetes_status.go
    • Line 4: warning: exported const KUBERNETES_STATUS_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type KubernetesStatus should have comment or be unexported (golint)
    • Line 25: warning: exported type KubernetesStatusCollection should have comment or be unexported (golint)
    • Line 31: warning: exported type KubernetesStatusClient should have comment or be unexported (golint)
    • Line 35: warning: exported type KubernetesStatusOperations should have comment or be unexported (golint)
    • Line 49: warning: exported method KubernetesStatusClient.Create should have comment or be unexported (golint)
    • Line 55: warning: exported method KubernetesStatusClient.Update should have comment or be unexported (golint)
    • Line 61: warning: exported method KubernetesStatusClient.List should have comment or be unexported (golint)
    • Line 68: warning: exported method KubernetesStatusCollection.Next should have comment or be unexported (golint)
    • Line 78: warning: exported method KubernetesStatusClient.ById should have comment or be unexported (golint)
    • Line 89: warning: exported method KubernetesStatusClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/controller/replica_controller.go
    • Line 47: warning: exported type ReplicaController should have comment or be unexported (golint)
    • Line 68: warning: exported function NewReplicaController should have comment or be unexported (golint)
    • Line 129: warning: exported method ReplicaController.Run should have comment or be unexported (golint)
    • Line 230: warning: exported method ReplicaController.UpdateReplicaEvictionStatus should have comment or be unexported (golint)
    • Line 361: warning: exported method ReplicaController.CreateInstance should have comment or be unexported (golint)
    • Line 411: warning: exported method ReplicaController.DeleteInstance should have comment or be unexported (golint)
    • Line 520: warning: exported method ReplicaController.GetInstance should have comment or be unexported (golint)
    • Line 549: warning: exported method ReplicaController.LogInstance should have comment or be unexported (golint)
    • longhorn-manager/client/generated_snapshot.go
    • Line 4: warning: exported const SNAPSHOT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 27: warning: exported type SnapshotCollection should have comment or be unexported (golint)
    • Line 33: warning: exported type SnapshotClient should have comment or be unexported (golint)
    • Line 37: warning: exported type SnapshotOperations should have comment or be unexported (golint)
    • Line 51: warning: exported method SnapshotClient.Create should have comment or be unexported (golint)
    • Line 57: warning: exported method SnapshotClient.Update should have comment or be unexported (golint)
    • Line 63: warning: exported method SnapshotClient.List should have comment or be unexported (golint)
    • Line 70: warning: exported method SnapshotCollection.Next should have comment or be unexported (golint)
    • Line 80: warning: exported method SnapshotClient.ById should have comment or be unexported (golint)
    • Line 91: warning: exported method SnapshotClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/engineapi/engine.go
    • Line 20: warning: exported type EngineCollection should have comment or be unexported (golint)
    • Line 22: warning: exported type Engine should have comment or be unexported (golint)
    • Line 30: warning: exported method EngineCollection.NewEngineClient should have comment or be unexported (golint)
    • Line 46: warning: exported method Engine.Name should have comment or be unexported (golint)
    • Line 50: warning: exported method Engine.LonghornEngineBinary should have comment or be unexported (golint)
    • Line 54: warning: exported method Engine.ExecuteEngineBinary should have comment or be unexported (golint)
    • Line 59: warning: exported method Engine.ExecuteEngineBinaryWithTimeout should have comment or be unexported (golint)
    • Line 64: warning: exported method Engine.ExecuteEngineBinaryWithoutTimeout should have comment or be unexported (golint)
    • Line 85: warning: exported method Engine.ReplicaList should have comment or be unexported (golint)
    • Line 108: warning: exported method Engine.ReplicaAdd should have comment or be unexported (golint)
    • Line 122: warning: exported method Engine.ReplicaRemove should have comment or be unexported (golint)
    • Line 132: warning: exported method Engine.Info should have comment or be unexported (golint)
    • Line 145: warning: exported method Engine.Endpoint should have comment or be unexported (golint)
    • Line 164: warning: exported method Engine.Version should have comment or be unexported (golint)
    • Line 183: warning: exported method Engine.Expand should have comment or be unexported (golint)
    • Line 191: warning: exported method Engine.ReplicaRebuildStatus should have comment or be unexported (golint)
    • Line 205: warning: exported method Engine.FrontendStart should have comment or be unexported (golint)
    • Line 221: warning: exported method Engine.FrontendShutdown should have comment or be unexported (golint)
    • Line 229: warning: exported method Engine.ReplicaRebuildVerify should have comment or be unexported (golint)
    • longhorn-manager/app/volume.go
    • Line 29: warning: exported const FlagSnapshotName should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported function SnapshotCmd should have comment or be unexported (golint)
    • Line 122: warning: exported type Job should have comment or be unexported (golint)
    • Line 135: warning: exported function NewJob should have comment or be unexported (golint)
    • Line 412: warning: exported type NameWithTimestamp should have comment or be unexported (golint)
    • Line 717: warning: exported method Job.GetVolume should have comment or be unexported (golint)
    • Line 721: warning: exported method Job.UpdateVolumeStatus should have comment or be unexported (golint)
    • longhorn-manager/csi/deployment_util.go
    • Line 26: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 387: warning: exported function GetInContainerCSISocketDir should have comment or be unexported (golint)
    • Line 391: warning: exported function GetInContainerCSISocketFilePath should have comment or be unexported (golint)
    • Line 395: warning: exported function GetInContainerCSIRegistrationDir should have comment or be unexported (golint)
    • Line 399: warning: exported function GetInContainerPluginsDir should have comment or be unexported (golint)
    • Line 403: warning: exported function GetInContainerKubernetesCSIDir should have comment or be unexported (golint)
    • Line 407: warning: exported function GetOnHostKubernetesCSIDir should have comment or be unexported (golint)
    • Line 411: warning: exported function GetOnHostCSISocketDir should have comment or be unexported (golint)
    • Line 415: warning: exported function GetOnHostCSISocketFilePath should have comment or be unexported (golint)
    • Line 419: warning: exported function GetOnHostCSIRegistrationDir should have comment or be unexported (golint)
    • Line 423: warning: exported function GetOnHostPluginsDir should have comment or be unexported (golint)
    • Line 427: warning: exported function GetOnHostObseletedPluginsDir should have comment or be unexported (golint)
    • Line 431: warning: exported function GetCSIEndpoint should have comment or be unexported (golint)
    • longhorn-manager/manager/kubernetes.go
    • Line 19: warning: exported method VolumeManager.PVCreate should have comment or be unexported (golint)
    • Line 56: warning: exported method VolumeManager.PVCCreate should have comment or be unexported (golint)
    • Line 115: warning: exported method VolumeManager.GetDaemonSetRO should have comment or be unexported (golint)
    • longhorn-manager/csi/server.go
    • Line 35: warning: exported function NewNonBlockingGRPCServer should have comment or be unexported (golint)
    • Line 39: warning: exported type NonBlockingGRPCServer should have comment or be unexported (golint)
    • Line 44: warning: exported method NonBlockingGRPCServer.Start should have comment or be unexported (golint)
    • Line 53: warning: exported method NonBlockingGRPCServer.Wait should have comment or be unexported (golint)
    • Line 57: warning: exported method NonBlockingGRPCServer.Stop should have comment or be unexported (golint)
    • Line 61: warning: exported method NonBlockingGRPCServer.ForceStop should have comment or be unexported (golint)
    • longhorn-manager/util/time.go
    • Line 9: warning: exported function ParseTimeZ should have comment or be unexported (golint)
    • Line 14: warning: exported function ParseLocalTime should have comment or be unexported (golint)
    • Line 22: warning: exported function FormatTimeZ should have comment or be unexported (golint)
    • Line 26: warning: exported function FormatLocalTime should have comment or be unexported (golint)
    • Line 30: warning: exported function FromMillis should have comment or be unexported (golint)
    • Line 34: warning: exported function LimitToPeriod should have comment or be unexported (golint)
    • Line 44: warning: exported function ParsePeriod should have comment or be unexported (golint)
    • longhorn-manager/controller/uninstall_controller.go
    • Line 32: warning: exported const CRDEngineName should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type UninstallController should have comment or be unexported (golint)
    • Line 59: warning: exported function NewUninstallController should have comment or be unexported (golint)
    • Line 175: warning: exported method UninstallController.Run should have comment or be unexported (golint)
    • longhorn-manager/controller/volume_controller.go
    • Line 47: warning: exported var RetryInterval should have comment or be unexported (golint)
    • Line 54: warning: exported const CronJobBackoffLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported type VolumeController should have comment or be unexported (golint)
    • Line 89: warning: exported function NewVolumeController should have comment or be unexported (golint)
    • Line 153: warning: exported method VolumeController.Run should have comment or be unexported (golint)
    • Line 2102: warning: exported method VolumeController.ResolveRefAndEnqueue should have comment or be unexported (golint)
    • longhorn-manager/client/generated_backup_status.go
    • Line 4: warning: exported const BACKUP_STATUS_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type BackupStatus should have comment or be unexported (golint)
    • Line 23: warning: exported type BackupStatusCollection should have comment or be unexported (golint)
    • Line 29: warning: exported type BackupStatusClient should have comment or be unexported (golint)
    • Line 33: warning: exported type BackupStatusOperations should have comment or be unexported (golint)
    • Line 47: warning: exported method BackupStatusClient.Create should have comment or be unexported (golint)
    • Line 53: warning: exported method BackupStatusClient.Update should have comment or be unexported (golint)
    • Line 59: warning: exported method BackupStatusClient.List should have comment or be unexported (golint)
    • Line 66: warning: exported method BackupStatusCollection.Next should have comment or be unexported (golint)
    • Line 76: warning: exported method BackupStatusClient.ById should have comment or be unexported (golint)
    • Line 87: warning: exported method BackupStatusClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_instance_manager.go
    • Line 4: warning: exported const INSTANCE_MANAGER_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type InstanceManager should have comment or be unexported (golint)
    • Line 23: warning: exported type InstanceManagerCollection should have comment or be unexported (golint)
    • Line 29: warning: exported type InstanceManagerClient should have comment or be unexported (golint)
    • Line 33: warning: exported type InstanceManagerOperations should have comment or be unexported (golint)
    • Line 47: warning: exported method InstanceManagerClient.Create should have comment or be unexported (golint)
    • Line 53: warning: exported method InstanceManagerClient.Update should have comment or be unexported (golint)
    • Line 59: warning: exported method InstanceManagerClient.List should have comment or be unexported (golint)
    • Line 66: warning: exported method InstanceManagerCollection.Next should have comment or be unexported (golint)
    • Line 76: warning: exported method InstanceManagerClient.ById should have comment or be unexported (golint)
    • Line 87: warning: exported method InstanceManagerClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_recurring_input.go
    • Line 4: warning: exported const RECURRING_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type RecurringInput should have comment or be unexported (golint)
    • Line 13: warning: exported type RecurringInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type RecurringInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type RecurringInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method RecurringInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method RecurringInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method RecurringInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method RecurringInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method RecurringInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method RecurringInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/controller/backing_image_manager_controller.go
    • Line 41: warning: exported const BackingImageManagerPodContainerName should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type BackingImageManagerController should have comment or be unexported (golint)
    • Line 67: warning: exported type BackingImageManagerMonitor should have comment or be unexported (golint)
    • Line 100: warning: exported function NewBackingImageManagerController should have comment or be unexported (golint)
    • Line 167: warning: exported method BackingImageManagerController.Run should have comment or be unexported (golint)
    • Line 1056: warning: exported method BackingImageManagerMonitor.Run should have comment or be unexported (golint)
    • longhorn-manager/controller/instance_handler.go
    • Line 31: warning: exported type InstanceManagerHandler should have comment or be unexported (golint)
    • Line 38: warning: exported function NewInstanceHandler should have comment or be unexported (golint)
    • Line 175: warning: exported method InstanceHandler.ReconcileInstanceState should have comment or be unexported (golint)
    • longhorn-manager/client/generated_replica_remove_input.go
    • Line 4: warning: exported const REPLICA_REMOVE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type ReplicaRemoveInput should have comment or be unexported (golint)
    • Line 13: warning: exported type ReplicaRemoveInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type ReplicaRemoveInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type ReplicaRemoveInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method ReplicaRemoveInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method ReplicaRemoveInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method ReplicaRemoveInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method ReplicaRemoveInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method ReplicaRemoveInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method ReplicaRemoveInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/monitoring/instance_manager_collector.go
    • Line 18: warning: exported type InstanceManagerCollector should have comment or be unexported (golint)
    • Line 30: warning: exported function NewInstanceManagerCollector should have comment or be unexported (golint)
    • Line 86: warning: exported method InstanceManagerCollector.Describe should have comment or be unexported (golint)
    • Line 93: warning: exported method InstanceManagerCollector.Collect should have comment or be unexported (golint)
    • longhorn-manager/manager/volume.go
    • Line 27: warning: exported type VolumeManager should have comment or be unexported (golint)
    • Line 35: warning: exported const MaxRecurringJobRetain should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported function NewVolumeManager should have comment or be unexported (golint)
    • Line 46: warning: exported method VolumeManager.GetCurrentNodeID should have comment or be unexported (golint)
    • Line 50: warning: exported method VolumeManager.Node2APIAddress should have comment or be unexported (golint)
    • Line 62: warning: exported method VolumeManager.List should have comment or be unexported (golint)
    • Line 87: warning: exported method VolumeManager.ListSorted should have comment or be unexported (golint)
    • Line 104: warning: exported method VolumeManager.Get should have comment or be unexported (golint)
    • Line 108: warning: exported method VolumeManager.GetEngines should have comment or be unexported (golint)
    • Line 112: warning: exported method VolumeManager.GetEnginesSorted should have comment or be unexported (golint)
    • Line 129: warning: exported method VolumeManager.GetReplicas should have comment or be unexported (golint)
    • Line 133: warning: exported method VolumeManager.GetReplicasSorted should have comment or be unexported (golint)
    • Line 158: warning: exported method VolumeManager.Create should have comment or be unexported (golint)
    • Line 294: warning: exported method VolumeManager.Delete should have comment or be unexported (golint)
    • Line 302: warning: exported method VolumeManager.Attach should have comment or be unexported (golint)
    • Line 473: warning: exported method VolumeManager.Salvage should have comment or be unexported (golint)
    • Line 539: warning: exported method VolumeManager.Activate should have comment or be unexported (golint)
    • Line 601: warning: exported method VolumeManager.Expand should have comment or be unexported (golint)
    • Line 680: warning: exported method VolumeManager.CancelExpansion should have comment or be unexported (golint)
    • Line 725: warning: exported method VolumeManager.UpdateRecurringJobs should have comment or be unexported (golint)
    • Line 792: warning: exported method VolumeManager.DeleteReplica should have comment or be unexported (golint)
    • Line 820: warning: exported method VolumeManager.GetManagerNodeIPMap should have comment or be unexported (golint)
    • Line 836: warning: exported method VolumeManager.EngineUpgrade should have comment or be unexported (golint)
    • Line 914: warning: exported method VolumeManager.UpdateReplicaCount should have comment or be unexported (golint)
    • Line 949: warning: exported method VolumeManager.UpdateDataLocality should have comment or be unexported (golint)
    • Line 979: warning: exported method VolumeManager.UpdateAccessMode should have comment or be unexported (golint)
    • longhorn-manager/client/generated_backup.go
    • Line 4: warning: exported const BACKUP_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type Backup should have comment or be unexported (golint)
    • Line 37: warning: exported type BackupCollection should have comment or be unexported (golint)
    • Line 43: warning: exported type BackupClient should have comment or be unexported (golint)
    • Line 47: warning: exported type BackupOperations should have comment or be unexported (golint)
    • Line 61: warning: exported method BackupClient.Create should have comment or be unexported (golint)
    • Line 67: warning: exported method BackupClient.Update should have comment or be unexported (golint)
    • Line 73: warning: exported method BackupClient.List should have comment or be unexported (golint)
    • Line 80: warning: exported method BackupCollection.Next should have comment or be unexported (golint)
    • Line 90: warning: exported method BackupClient.ById should have comment or be unexported (golint)
    • Line 101: warning: exported method BackupClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_disk_info.go
    • Line 4: warning: exported const DISK_INFO_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type DiskInfo should have comment or be unexported (golint)
    • Line 33: warning: exported type DiskInfoCollection should have comment or be unexported (golint)
    • Line 39: warning: exported type DiskInfoClient should have comment or be unexported (golint)
    • Line 43: warning: exported type DiskInfoOperations should have comment or be unexported (golint)
    • Line 57: warning: exported method DiskInfoClient.Create should have comment or be unexported (golint)
    • Line 63: warning: exported method DiskInfoClient.Update should have comment or be unexported (golint)
    • Line 69: warning: exported method DiskInfoClient.List should have comment or be unexported (golint)
    • Line 76: warning: exported method DiskInfoCollection.Next should have comment or be unexported (golint)
    • Line 86: warning: exported method DiskInfoClient.ById should have comment or be unexported (golint)
    • Line 97: warning: exported method DiskInfoClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_recurring_job.go
    • Line 4: warning: exported const RECURRING_JOB_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type RecurringJob should have comment or be unexported (golint)
    • Line 21: warning: exported type RecurringJobCollection should have comment or be unexported (golint)
    • Line 27: warning: exported type RecurringJobClient should have comment or be unexported (golint)
    • Line 31: warning: exported type RecurringJobOperations should have comment or be unexported (golint)
    • Line 45: warning: exported method RecurringJobClient.Create should have comment or be unexported (golint)
    • Line 51: warning: exported method RecurringJobClient.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method RecurringJobClient.List should have comment or be unexported (golint)
    • Line 64: warning: exported method RecurringJobCollection.Next should have comment or be unexported (golint)
    • Line 74: warning: exported method RecurringJobClient.ById should have comment or be unexported (golint)
    • Line 85: warning: exported method RecurringJobClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/csi/node_server.go
    • Line 27: warning: exported type NodeServer should have comment or be unexported (golint)
    • Line 33: warning: exported function NewNodeServer should have comment or be unexported (golint)
    • Line 237: warning: exported method NodeServer.NodeUnpublishVolume should have comment or be unexported (golint)
    • Line 263: warning: exported method NodeServer.NodeStageVolume should have comment or be unexported (golint)
    • Line 271: warning: exported method NodeServer.NodeUnstageVolume should have comment or be unexported (golint)
    • Line 279: warning: exported method NodeServer.NodeGetVolumeStats should have comment or be unexported (golint)
    • Line 366: warning: exported method NodeServer.NodeGetInfo should have comment or be unexported (golint)
    • Line 372: warning: exported method NodeServer.NodeGetCapabilities should have comment or be unexported (golint)
    • longhorn-manager/api/setting.go
    • Line 19: warning: exported method Server.SettingList should have comment or be unexported (golint)
    • Line 38: warning: exported method Server.SettingGet should have comment or be unexported (golint)
    • Line 50: warning: exported method Server.SettingSet should have comment or be unexported (golint)
    • longhorn-manager/client/generated_tag.go
    • Line 4: warning: exported const TAG_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type Tag should have comment or be unexported (golint)
    • Line 15: warning: exported type TagCollection should have comment or be unexported (golint)
    • Line 21: warning: exported type TagClient should have comment or be unexported (golint)
    • Line 25: warning: exported type TagOperations should have comment or be unexported (golint)
    • Line 39: warning: exported method TagClient.Create should have comment or be unexported (golint)
    • Line 45: warning: exported method TagClient.Update should have comment or be unexported (golint)
    • Line 51: warning: exported method TagClient.List should have comment or be unexported (golint)
    • Line 58: warning: exported method TagCollection.Next should have comment or be unexported (golint)
    • Line 68: warning: exported method TagClient.ById should have comment or be unexported (golint)
    • Line 79: warning: exported method TagClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/app/post_upgrade.go
    • Line 19: warning: exported const RetryCounts should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported function PostUpgradeCmd should have comment or be unexported (golint)
    • longhorn-manager/client/generated_backup_input.go
    • Line 4: warning: exported const BACKUP_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type BackupInput should have comment or be unexported (golint)
    • Line 13: warning: exported type BackupInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type BackupInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type BackupInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method BackupInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method BackupInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method BackupInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method BackupInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method BackupInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method BackupInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/upgrade/v1alpha1/types/setting.go
    • Line 22: warning: exported const EnvDefaultSettingPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type Setting should have comment or be unexported (golint)
    • Line 29: warning: exported type SettingType should have comment or be unexported (golint)
    • Line 32: warning: exported const SettingTypeString should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type SettingName should have comment or be unexported (golint)
    • Line 40: warning: exported const SettingNameBackupTarget should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported var SettingNameList should have comment or be unexported (golint)
    • Line 77: warning: exported type SettingCategory should have comment or be unexported (golint)
    • Line 80: warning: exported const SettingCategoryGeneral should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: exported type SettingDefinition should have comment or be unexported (golint)
    • Line 96: warning: exported var SettingDefinitions should have comment or be unexported (golint)
    • Line 270: warning: exported function ValidateInitSetting should have comment or be unexported (golint)
    • Line 347: warning: exported function GetCustomizedDefaultSettings should have comment or be unexported (golint)
    • Line 387: warning: exported function OverwriteBuiltInSettingsWithCustomizedValues should have comment or be unexported (golint)
    • Line 410: warning: exported function ValidateAndUnmarshalToleration should have comment or be unexported (golint)
    • Line 447: warning: exported function UnmarshalTolerations should have comment or be unexported (golint)
    • longhorn-manager/api/forwarder.go
    • Line 16: warning: exported type OwnerIDFunc should have comment or be unexported (golint)
    • Line 18: warning: exported function OwnerIDFromVolume should have comment or be unexported (golint)
    • Line 55: warning: exported function OwnerIDFromNode should have comment or be unexported (golint)
    • Line 62: warning: exported type NodeLocator should have comment or be unexported (golint)
    • Line 67: warning: exported type Fwd should have comment or be unexported (golint)
    • Line 72: warning: exported function NewFwd should have comment or be unexported (golint)
    • Line 79: warning: exported method Fwd.Handler should have comment or be unexported (golint)
    • longhorn-manager/api/model.go
    • Line 22: warning: exported type Volume should have comment or be unexported (golint)
    • Line 67: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 72: warning: exported type BackupVolume should have comment or be unexported (golint)
    • Line 77: warning: exported type Backup should have comment or be unexported (golint)
    • Line 82: warning: exported type Setting should have comment or be unexported (golint)
    • Line 89: warning: exported type Instance should have comment or be unexported (golint)
    • Line 99: warning: exported type Controller should have comment or be unexported (golint)
    • Line 111: warning: exported type Replica should have comment or be unexported (golint)
    • Line 121: warning: exported type EngineImage should have comment or be unexported (golint)
    • Line 130: warning: exported type BackingImage should have comment or be unexported (golint)
    • Line 142: warning: exported type BackingImageCleanupInput should have comment or be unexported (golint)
    • Line 146: warning: exported type AttachInput should have comment or be unexported (golint)
    • Line 152: warning: exported type DetachInput should have comment or be unexported (golint)
    • Line 156: warning: exported type SnapshotInput should have comment or be unexported (golint)
    • Line 161: warning: exported type BackupInput should have comment or be unexported (golint)
    • Line 165: warning: exported type RecurringInput should have comment or be unexported (golint)
    • Line 169: warning: exported type ReplicaRemoveInput should have comment or be unexported (golint)
    • Line 173: warning: exported type SalvageInput should have comment or be unexported (golint)
    • Line 177: warning: exported type EngineUpgradeInput should have comment or be unexported (golint)
    • Line 181: warning: exported type UpdateReplicaCountInput should have comment or be unexported (golint)
    • Line 185: warning: exported type UpdateDataLocalityInput should have comment or be unexported (golint)
    • Line 189: warning: exported type UpdateAccessModeInput should have comment or be unexported (golint)
    • Line 193: warning: exported type PVCreateInput should have comment or be unexported (golint)
    • Line 198: warning: exported type PVCCreateInput should have comment or be unexported (golint)
    • Line 203: warning: exported type ActivateInput should have comment or be unexported (golint)
    • Line 207: warning: exported type ExpandInput should have comment or be unexported (golint)
    • Line 211: warning: exported type Node should have comment or be unexported (golint)
    • Line 226: warning: exported type DiskInfo should have comment or be unexported (golint)
    • Line 231: warning: exported type DiskUpdateInput should have comment or be unexported (golint)
    • Line 235: warning: exported type Event should have comment or be unexported (golint)
    • Line 241: warning: exported type SupportBundle should have comment or be unexported (golint)
    • Line 250: warning: exported type SupportBundleInitateInput should have comment or be unexported (golint)
    • Line 255: warning: exported type Tag should have comment or be unexported (golint)
    • Line 261: warning: exported type BackupStatus should have comment or be unexported (golint)
    • Line 272: warning: exported type RestoreStatus should have comment or be unexported (golint)
    • Line 284: warning: exported type PurgeStatus should have comment or be unexported (golint)
    • Line 293: warning: exported type RebuildStatus should have comment or be unexported (golint)
    • Line 303: warning: exported type InstanceManager should have comment or be unexported (golint)
    • Line 313: warning: exported type BackupListOutput should have comment or be unexported (golint)
    • Line 318: warning: exported type SnapshotListOutput should have comment or be unexported (golint)
    • Line 323: warning: exported function NewSchema should have comment or be unexported (golint)
    • Line 1157: warning: exported type Server should have comment or be unexported (golint)
    • Line 1163: warning: exported function NewServer should have comment or be unexported (golint)
    • longhorn-manager/api/volume.go
    • Line 20: warning: exported method Server.VolumeList should have comment or be unexported (golint)
    • Line 65: warning: exported method Server.VolumeGet should have comment or be unexported (golint)
    • Line 102: warning: exported method Server.VolumeCreate should have comment or be unexported (golint)
    • Line 174: warning: exported method Server.VolumeDelete should have comment or be unexported (golint)
    • Line 184: warning: exported method Server.VolumeAttach should have comment or be unexported (golint)
    • Line 207: warning: exported method Server.VolumeDetach should have comment or be unexported (golint)
    • Line 232: warning: exported method Server.VolumeSalvage should have comment or be unexported (golint)
    • Line 256: warning: exported method Server.VolumeRecurringUpdate should have comment or be unexported (golint)
    • Line 279: warning: exported method Server.VolumeUpdateReplicaCount should have comment or be unexported (golint)
    • Line 302: warning: exported method Server.VolumeUpdateDataLocality should have comment or be unexported (golint)
    • Line 324: warning: exported method Server.VolumeUpdateAccessMode should have comment or be unexported (golint)
    • Line 346: warning: exported method Server.VolumeActivate should have comment or be unexported (golint)
    • Line 370: warning: exported method Server.VolumeExpand should have comment or be unexported (golint)
    • Line 407: warning: exported method Server.VolumeCancelExpansion should have comment or be unexported (golint)
    • Line 424: warning: exported method Server.PVCreate should have comment or be unexported (golint)
    • Line 451: warning: exported method Server.PVCCreate should have comment or be unexported (golint)
    • Line 478: warning: exported method Server.ReplicaRemove should have comment or be unexported (golint)
    • Line 495: warning: exported method Server.EngineUpgrade should have comment or be unexported (golint)
    • longhorn-manager/manager/misc.go
    • Line 23: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 25: warning: exported type BundleState should have comment or be unexported (golint)
    • Line 28: warning: exported const BundleStateInProgress should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type BundleError should have comment or be unexported (golint)
    • Line 36: warning: exported const BundleErrorMkdirFailed should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported type SupportBundle should have comment or be unexported (golint)
    • Line 54: warning: exported method VolumeManager.GetSupportBundle should have comment or be unexported (golint)
    • Line 62: warning: exported method VolumeManager.DeleteSupportBundle should have comment or be unexported (golint)
    • Line 68: warning: exported method VolumeManager.GetBundleFileHandler should have comment or be unexported (golint)
    • Line 77: warning: exported method VolumeManager.GetLonghornEventList should have comment or be unexported (golint)
    • Line 81: warning: exported type BundleMeta should have comment or be unexported (golint)
    • Line 192: warning: exported type GetObjectMapFunc should have comment or be unexported (golint)
    • Line 193: warning: exported type GetRuntimeObjectListFunc should have comment or be unexported (golint)
    • Line 371: warning: exported method VolumeManager.InitSupportBundle should have comment or be unexported (golint)
    • longhorn-manager/client/generated_replica.go
    • Line 4: warning: exported const REPLICA_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type Replica should have comment or be unexported (golint)
    • Line 35: warning: exported type ReplicaCollection should have comment or be unexported (golint)
    • Line 41: warning: exported type ReplicaClient should have comment or be unexported (golint)
    • Line 45: warning: exported type ReplicaOperations should have comment or be unexported (golint)
    • Line 59: warning: exported method ReplicaClient.Create should have comment or be unexported (golint)
    • Line 65: warning: exported method ReplicaClient.Update should have comment or be unexported (golint)
    • Line 71: warning: exported method ReplicaClient.List should have comment or be unexported (golint)
    • Line 78: warning: exported method ReplicaCollection.Next should have comment or be unexported (golint)
    • Line 88: warning: exported method ReplicaClient.ById should have comment or be unexported (golint)
    • Line 99: warning: exported method ReplicaClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/controller/engine_controller.go
    • Line 45: warning: exported var EnginePollInterval should have comment or be unexported (golint)
    • Line 52: warning: exported const ConflictRetryCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported type EngineController should have comment or be unexported (golint)
    • Line 80: warning: exported type EngineMonitor should have comment or be unexported (golint)
    • Line 97: warning: exported function NewEngineController should have comment or be unexported (golint)
    • Line 146: warning: exported method EngineController.Run should have comment or be unexported (golint)
    • Line 379: warning: exported method EngineController.CreateInstance should have comment or be unexported (golint)
    • Line 404: warning: exported method EngineController.DeleteInstance should have comment or be unexported (golint)
    • Line 521: warning: exported method EngineController.GetInstance should have comment or be unexported (golint)
    • Line 550: warning: exported method EngineController.LogInstance should have comment or be unexported (golint)
    • Line 644: warning: exported method EngineMonitor.Run should have comment or be unexported (golint)
    • Line 1135: warning: exported method EngineController.ReconcileEngineState should have comment or be unexported (golint)
    • Line 1145: warning: exported function GetClientForEngine should have comment or be unexported (golint)
    • Line 1341: warning: exported method EngineController.Upgrade should have comment or be unexported (golint)
    • Line 1376: warning: exported method EngineController.UpgradeEngineProcess should have comment or be unexported (golint)
    • longhorn-manager/util/server/server.go
    • Line 12: warning: exported type UnixServer should have comment or be unexported (golint)
    • Line 16: warning: exported function NewUnixServer should have comment or be unexported (golint)
    • Line 20: warning: exported method UnixServer.Serve should have comment or be unexported (golint)
    • Line 37: warning: exported type TCPServer should have comment or be unexported (golint)
    • Line 41: warning: exported function NewTCPServer should have comment or be unexported (golint)
    • Line 45: warning: exported method TCPServer.Serve should have comment or be unexported (golint)
    • longhorn-manager/csi/identity_server.go
    • Line 9: warning: exported type IdentityServer should have comment or be unexported (golint)
    • Line 14: warning: exported function NewIdentityServer should have comment or be unexported (golint)
    • Line 21: warning: exported method IdentityServer.GetPluginInfo should have comment or be unexported (golint)
    • Line 29: warning: exported method IdentityServer.Probe should have comment or be unexported (golint)
    • Line 33: warning: exported method IdentityServer.GetPluginCapabilities should have comment or be unexported (golint)
    • longhorn-manager/manager/node.go
    • Line 15: warning: exported method VolumeManager.GetInstanceManager should have comment or be unexported (golint)
    • Line 19: warning: exported method VolumeManager.ListInstanceManagers should have comment or be unexported (golint)
    • Line 23: warning: exported method VolumeManager.GetNode should have comment or be unexported (golint)
    • Line 27: warning: exported method VolumeManager.GetDiskTags should have comment or be unexported (golint)
    • Line 48: warning: exported method VolumeManager.GetNodeTags should have comment or be unexported (golint)
    • Line 67: warning: exported method VolumeManager.UpdateNode should have comment or be unexported (golint)
    • Line 113: warning: exported method VolumeManager.ListNodes should have comment or be unexported (golint)
    • Line 121: warning: exported method VolumeManager.ListReadyNodesWithEngineImage should have comment or be unexported (golint)
    • Line 125: warning: exported method VolumeManager.ListNodesSorted should have comment or be unexported (golint)
    • Line 142: warning: exported method VolumeManager.DiskUpdate should have comment or be unexported (golint)
    • Line 181: warning: exported method VolumeManager.DeleteNode should have comment or be unexported (golint)
    • longhorn-manager/client/generated_activate_input.go
    • Line 4: warning: exported const ACTIVATE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type ActivateInput should have comment or be unexported (golint)
    • Line 13: warning: exported type ActivateInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type ActivateInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type ActivateInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method ActivateInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method ActivateInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method ActivateInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method ActivateInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method ActivateInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method ActivateInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/app/driver.go
    • Line 28: warning: exported const EnvKubeletRootDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported function DeployDriverCmd should have comment or be unexported (golint)
    • Line 330: warning: exported type DaemonSetOps should have comment or be unexported (golint)
    • Line 345: warning: exported method DaemonSetOps.Get should have comment or be unexported (golint)
    • Line 356: warning: exported method DaemonSetOps.Create should have comment or be unexported (golint)
    • Line 360: warning: exported method DaemonSetOps.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_backing_image_cleanup_input.go
    • Line 4: warning: exported const BACKING_IMAGE_CLEANUP_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type BackingImageCleanupInput should have comment or be unexported (golint)
    • Line 13: warning: exported type BackingImageCleanupInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type BackingImageCleanupInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type BackingImageCleanupInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method BackingImageCleanupInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method BackingImageCleanupInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method BackingImageCleanupInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method BackingImageCleanupInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method BackingImageCleanupInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method BackingImageCleanupInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/app/migrate.go
    • Line 24: warning: exported const FlagAll should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function MigrateForPre070VolumesCmd should have comment or be unexported (golint)
    • longhorn-manager/monitoring/disk_collector.go
    • Line 11: warning: exported type DiskCollector should have comment or be unexported (golint)
    • Line 19: warning: exported function NewDiskCollector should have comment or be unexported (golint)
    • Line 61: warning: exported method DiskCollector.Describe should have comment or be unexported (golint)
    • Line 67: warning: exported method DiskCollector.Collect should have comment or be unexported (golint)
    • longhorn-manager/client/generated_disk_condition.go
    • Line 4: warning: exported const DISK_CONDITION_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type DiskCondition should have comment or be unexported (golint)
    • Line 21: warning: exported type DiskConditionCollection should have comment or be unexported (golint)
    • Line 27: warning: exported type DiskConditionClient should have comment or be unexported (golint)
    • Line 31: warning: exported type DiskConditionOperations should have comment or be unexported (golint)
    • Line 45: warning: exported method DiskConditionClient.Create should have comment or be unexported (golint)
    • Line 51: warning: exported method DiskConditionClient.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method DiskConditionClient.List should have comment or be unexported (golint)
    • Line 64: warning: exported method DiskConditionCollection.Next should have comment or be unexported (golint)
    • Line 74: warning: exported method DiskConditionClient.ById should have comment or be unexported (golint)
    • Line 85: warning: exported method DiskConditionClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_node_input.go
    • Line 4: warning: exported const NODE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type NodeInput should have comment or be unexported (golint)
    • Line 13: warning: exported type NodeInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type NodeInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type NodeInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method NodeInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method NodeInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method NodeInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method NodeInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method NodeInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method NodeInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/generated_update_replica_count_input.go
    • Line 4: warning: exported const UPDATE_REPLICA_COUNT_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type UpdateReplicaCountInput should have comment or be unexported (golint)
    • Line 13: warning: exported type UpdateReplicaCountInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type UpdateReplicaCountInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type UpdateReplicaCountInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method UpdateReplicaCountInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method UpdateReplicaCountInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method UpdateReplicaCountInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method UpdateReplicaCountInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method UpdateReplicaCountInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method UpdateReplicaCountInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/engineapi/instance_manager.go
    • Line 18: warning: exported const CurrentInstanceManagerAPIVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type InstanceManagerClient should have comment or be unexported (golint)
    • Line 41: warning: exported function GetDeprecatedInstanceManagerBinary should have comment or be unexported (golint)
    • Line 46: warning: exported function CheckInstanceManagerCompatibilty should have comment or be unexported (golint)
    • Line 54: warning: exported function NewInstanceManagerClient should have comment or be unexported (golint)
    • Line 92: warning: exported method InstanceManagerClient.EngineProcessCreate should have comment or be unexported (golint)
    • Line 123: warning: exported method InstanceManagerClient.ReplicaProcessCreate should have comment or be unexported (golint)
    • Line 148: warning: exported method InstanceManagerClient.ProcessDelete should have comment or be unexported (golint)
    • Line 155: warning: exported method InstanceManagerClient.ProcessGet should have comment or be unexported (golint)
    • Line 166: warning: exported method InstanceManagerClient.ProcessLog should have comment or be unexported (golint)
    • Line 173: warning: exported method InstanceManagerClient.ProcessWatch should have comment or be unexported (golint)
    • Line 180: warning: exported method InstanceManagerClient.ProcessList should have comment or be unexported (golint)
    • Line 195: warning: exported method InstanceManagerClient.EngineProcessUpgrade should have comment or be unexported (golint)
    • Line 217: warning: exported method InstanceManagerClient.VersionGet should have comment or be unexported (golint)
    • longhorn-manager/api/snapshot.go
    • Line 17: warning: exported method Server.SnapshotCreate should have comment or be unexported (golint)
    • Line 47: warning: exported method Server.SnapshotList should have comment or be unexported (golint)
    • Line 62: warning: exported method Server.SnapshotGet should have comment or be unexported (golint)
    • Line 83: warning: exported method Server.SnapshotDelete should have comment or be unexported (golint)
    • Line 112: warning: exported method Server.SnapshotRevert should have comment or be unexported (golint)
    • Line 145: warning: exported method Server.SnapshotBackup should have comment or be unexported (golint)
    • Line 197: warning: exported method Server.SnapshotPurge should have comment or be unexported (golint)
    • longhorn-manager/client/generated_controller.go
    • Line 4: warning: exported const CONTROLLER_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type Controller should have comment or be unexported (golint)
    • Line 41: warning: exported type ControllerCollection should have comment or be unexported (golint)
    • Line 47: warning: exported type ControllerClient should have comment or be unexported (golint)
    • Line 51: warning: exported type ControllerOperations should have comment or be unexported (golint)
    • Line 65: warning: exported method ControllerClient.Create should have comment or be unexported (golint)
    • Line 71: warning: exported method ControllerClient.Update should have comment or be unexported (golint)
    • Line 77: warning: exported method ControllerClient.List should have comment or be unexported (golint)
    • Line 84: warning: exported method ControllerCollection.Next should have comment or be unexported (golint)
    • Line 94: warning: exported method ControllerClient.ById should have comment or be unexported (golint)
    • Line 105: warning: exported method ControllerClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/client/types.go
    • Line 3: warning: exported type Collection should have comment or be unexported (golint)
    • Line 15: warning: exported type GenericCollection should have comment or be unexported (golint)
    • Line 20: warning: exported type ResourceCollection should have comment or be unexported (golint)
    • Line 25: warning: exported type Sort should have comment or be unexported (golint)
    • Line 31: warning: exported type Condition should have comment or be unexported (golint)
    • Line 36: warning: exported type Pagination should have comment or be unexported (golint)
    • Line 46: warning: exported type Resource should have comment or be unexported (golint)
    • Line 53: warning: exported type Schema should have comment or be unexported (golint)
    • Line 66: warning: exported type Field should have comment or be unexported (golint)
    • Line 84: warning: exported type Action should have comment or be unexported (golint)
    • Line 89: warning: exported type Filter should have comment or be unexported (golint)
    • Line 93: warning: exported type ListOpts should have comment or be unexported (golint)
    • longhorn-manager/api/router.go
    • Line 19: warning: exported var RetryCounts should have comment or be unexported (golint)
    • Line 23: warning: exported type HandleFuncWithError should have comment or be unexported (golint)
    • Line 25: warning: exported function HandleError should have comment or be unexported (golint)
    • Line 44: warning: exported function NewRouter should have comment or be unexported (golint)
    • longhorn-manager/client/common.go
    • Line 21: warning: exported const SELF should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type ClientOpts should have comment or be unexported (golint)
    • Line 38: warning: exported type ApiError should have comment or be unexported (golint)
    • Line 50: warning: exported function IsNotFound should have comment or be unexported (golint)
    • Line 133: warning: exported function NormalizeUrl should have comment or be unexported (golint)
    • Line 220: warning: exported function NewListOpts should have comment or be unexported (golint)
    • Line 261: warning: exported method RancherBaseClientImpl.Websocket should have comment or be unexported (golint)
    • Line 323: warning: exported method RancherBaseClientImpl.List should have comment or be unexported (golint)
    • Line 349: warning: exported method RancherBaseClientImpl.Post should have comment or be unexported (golint)
    • Line 353: warning: exported method RancherBaseClientImpl.GetLink should have comment or be unexported (golint)
    • Line 408: warning: exported method RancherBaseClientImpl.Create should have comment or be unexported (golint)
    • Line 440: warning: exported method RancherBaseClientImpl.Update should have comment or be unexported (golint)
    • Line 474: warning: exported method RancherBaseClientImpl.ById should have comment or be unexported (golint)
    • Line 498: warning: exported method RancherBaseClientImpl.Delete should have comment or be unexported (golint)
    • Line 523: warning: exported method RancherBaseClientImpl.Reload should have comment or be unexported (golint)
    • Line 532: warning: exported method RancherBaseClientImpl.Action should have comment or be unexported (golint)
    • Line 600: warning: exported method RancherBaseClientImpl.GetOpts should have comment or be unexported (golint)
    • Line 604: warning: exported method RancherBaseClientImpl.GetSchemas should have comment or be unexported (golint)
    • Line 608: warning: exported method RancherBaseClientImpl.GetTypes should have comment or be unexported (golint)
    • longhorn-manager/client/generated_error.go
    • Line 4: warning: exported const ERROR_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type Error should have comment or be unexported (golint)
    • Line 19: warning: exported type ErrorCollection should have comment or be unexported (golint)
    • Line 25: warning: exported type ErrorClient should have comment or be unexported (golint)
    • Line 29: warning: exported type ErrorOperations should have comment or be unexported (golint)
    • Line 43: warning: exported method ErrorClient.Create should have comment or be unexported (golint)
    • Line 49: warning: exported method ErrorClient.Update should have comment or be unexported (golint)
    • Line 55: warning: exported method ErrorClient.List should have comment or be unexported (golint)
    • Line 62: warning: exported method ErrorCollection.Next should have comment or be unexported (golint)
    • Line 72: warning: exported method ErrorClient.ById should have comment or be unexported (golint)
    • Line 83: warning: exported method ErrorClient.Delete should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words