Preparing report...

Report for github.com/rancher/longhorn-manager

A+    Excellent!    Found 181 issues across 326 files

Tweet

gofmt99%

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


go_vet100%

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

No problems detected. Good job!


golint45%

Golint is a linter for Go source code.

    • 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.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/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/api/backup.go
    • Line 13: warning: exported method Server.BackupTargetList should have comment or be unexported (golint)
    • Line 24: warning: exported method Server.BackupVolumeList should have comment or be unexported (golint)
    • Line 43: warning: exported method Server.BackupVolumeGet should have comment or be unexported (golint)
    • Line 56: warning: exported method Server.BackupVolumeDelete should have comment or be unexported (golint)
    • Line 64: warning: exported method Server.BackupList should have comment or be unexported (golint)
    • Line 85: warning: exported method Server.BackupGet should have comment or be unexported (golint)
    • Line 111: warning: exported method Server.BackupDelete 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_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/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/monitoring/node_collector.go
    • Line 19: warning: exported type NodeCollector should have comment or be unexported (golint)
    • Line 35: warning: exported function NewNodeCollector should have comment or be unexported (golint)
    • Line 139: warning: exported method NodeCollector.Describe should have comment or be unexported (golint)
    • Line 151: warning: exported method NodeCollector.Collect should have comment or be unexported (golint)
    • longhorn-manager/datastore/kubernetes.go
    • Line 34: warning: exported const PodProbeInitialDelay should have comment (or a comment on this block) or be unexported (golint)
    • Line 169: warning: exported method DataStore.ListEngineImageDaemonSetPodsFromEngineImageName should have comment or be unexported (golint)
    • Line 276: warning: exported method DataStore.ListDaemonSetWithLabels should have comment or be unexported (golint)
    • Line 306: warning: exported method DataStore.ListDeploymentWithLabels should have comment or be unexported (golint)
    • Line 372: warning: exported method DataStore.ListShareManagerPods should have comment or be unexported (golint)
    • Line 380: warning: exported method DataStore.ListBackingImageManagerPods should have comment or be unexported (golint)
    • Line 390: warning: exported method DataStore.ListPodsBySelector should have comment or be unexported (golint)
    • longhorn-manager/controller/volume_controller.go
    • Line 44: warning: exported var RetryInterval should have comment or be unexported (golint)
    • Line 51: warning: exported const CronJobBackoffLimit should have comment (or a comment on this block) or be unexported (golint)
    • Line 58: warning: exported type VolumeController should have comment or be unexported (golint)
    • Line 88: warning: exported function NewVolumeController should have comment or be unexported (golint)
    • Line 165: warning: exported method VolumeController.Run should have comment or be unexported (golint)
    • Line 2776: warning: exported method VolumeController.ResolveRefAndEnqueue should have comment or be unexported (golint)
    • longhorn-manager/upgrade/upgrade.go
    • Line 37: warning: exported const LeaseLockName should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported function Upgrade should have comment or be unexported (golint)
    • longhorn-manager/csi/controller_server.go
    • Line 33: warning: exported type ControllerServer should have comment or be unexported (golint)
    • Line 40: warning: exported function NewControllerServer should have comment or be unexported (golint)
    • Line 60: warning: exported method ControllerServer.CreateVolume should have comment or be unexported (golint)
    • Line 300: warning: exported method ControllerServer.DeleteVolume should have comment or be unexported (golint)
    • Line 331: warning: exported method ControllerServer.ControllerGetCapabilities should have comment or be unexported (golint)
    • Line 337: warning: exported method ControllerServer.ValidateVolumeCapabilities should have comment or be unexported (golint)
    • Line 525: warning: exported method ControllerServer.ListVolumes should have comment or be unexported (golint)
    • Line 529: warning: exported method ControllerServer.GetCapacity should have comment or be unexported (golint)
    • Line 533: warning: exported method ControllerServer.CreateSnapshot should have comment or be unexported (golint)
    • Line 688: warning: exported method ControllerServer.DeleteSnapshot should have comment or be unexported (golint)
    • Line 710: warning: exported method ControllerServer.ListSnapshots should have comment or be unexported (golint)
    • Line 714: warning: exported method ControllerServer.ControllerExpandVolume 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/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/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_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/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_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/engineapi/engine.go
    • Line 19: warning: exported type EngineCollection should have comment or be unexported (golint)
    • Line 21: warning: exported type Engine should have comment or be unexported (golint)
    • Line 29: warning: exported method EngineCollection.NewEngineClient should have comment or be unexported (golint)
    • Line 45: warning: exported method Engine.Name should have comment or be unexported (golint)
    • Line 49: warning: exported method Engine.LonghornEngineBinary should have comment or be unexported (golint)
    • Line 53: warning: exported method Engine.ExecuteEngineBinary should have comment or be unexported (golint)
    • Line 58: warning: exported method Engine.ExecuteEngineBinaryWithTimeout should have comment or be unexported (golint)
    • Line 63: warning: exported method Engine.ExecuteEngineBinaryWithoutTimeout should have comment or be unexported (golint)
    • Line 84: warning: exported method Engine.ReplicaList should have comment or be unexported (golint)
    • Line 107: warning: exported method Engine.ReplicaAdd should have comment or be unexported (golint)
    • Line 121: warning: exported method Engine.ReplicaRemove should have comment or be unexported (golint)
    • Line 131: warning: exported method Engine.Info should have comment or be unexported (golint)
    • Line 144: warning: exported method Engine.Version should have comment or be unexported (golint)
    • Line 163: warning: exported method Engine.Expand should have comment or be unexported (golint)
    • Line 171: warning: exported method Engine.ReplicaRebuildStatus should have comment or be unexported (golint)
    • Line 185: warning: exported method Engine.FrontendStart should have comment or be unexported (golint)
    • Line 201: warning: exported method Engine.FrontendShutdown should have comment or be unexported (golint)
    • Line 209: warning: exported method Engine.ReplicaRebuildVerify 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/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/types/resource.go
    • Line 9: warning: exported type VolumeState should have comment or be unexported (golint)
    • Line 12: warning: exported const VolumeStateCreating should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type VolumeRobustness should have comment or be unexported (golint)
    • Line 23: warning: exported const VolumeRobustnessHealthy should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type VolumeFrontend should have comment or be unexported (golint)
    • Line 32: warning: exported const VolumeFrontendBlockDev should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type VolumeDataSource should have comment or be unexported (golint)
    • Line 40: warning: exported const VolumeDataSourceTypeBackup should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported type ReplicaAutoBalance should have comment or be unexported (golint)
    • Line 48: warning: exported const ReplicaAutoBalanceIgnored should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported type DataLocality should have comment or be unexported (golint)
    • Line 57: warning: exported const DataLocalityDisabled should have comment (or a comment on this block) or be unexported (golint)
    • Line 61: warning: exported type AccessMode should have comment or be unexported (golint)
    • Line 64: warning: exported const AccessModeReadWriteOnce should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: exported type ConditionStatus should have comment or be unexported (golint)
    • Line 71: warning: exported const ConditionStatusTrue should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: exported type Condition should have comment or be unexported (golint)
    • Line 86: warning: exported const VolumeConditionTypeScheduled should have comment (or a comment on this block) or be unexported (golint)
    • Line 92: warning: exported const VolumeConditionReasonReplicaSchedulingFailure should have comment (or a comment on this block) or be unexported (golint)
    • Line 99: warning: exported type VolumeSpec should have comment or be unexported (golint)
    • Line 131: warning: exported type KubernetesStatus should have comment or be unexported (golint)
    • Line 145: warning: exported type WorkloadStatus should have comment or be unexported (golint)
    • Line 152: warning: exported type VolumeStatus should have comment or be unexported (golint)
    • Line 176: warning: exported type RecurringJobType should have comment or be unexported (golint)
    • Line 179: warning: exported const RecurringJobTypeSnapshot should have comment (or a comment on this block) or be unexported (golint)
    • Line 198: warning: exported type VolumeRecurringJob should have comment or be unexported (golint)
    • Line 203: warning: exported type VolumeCloneStatus should have comment or be unexported (golint)
    • Line 209: warning: exported type VolumeCloneState should have comment or be unexported (golint)
    • Line 212: warning: exported const VolumeCloneStateEmpty should have comment (or a comment on this block) or be unexported (golint)
    • Line 218: warning: exported type InstanceState should have comment or be unexported (golint)
    • Line 221: warning: exported const InstanceStateRunning should have comment (or a comment on this block) or be unexported (golint)
    • Line 229: warning: exported type InstanceSpec should have comment or be unexported (golint)
    • Line 239: warning: exported type InstanceStatus should have comment or be unexported (golint)
    • Line 251: warning: exported type EngineSpec should have comment or be unexported (golint)
    • Line 263: warning: exported type EngineStatus should have comment or be unexported (golint)
    • Line 282: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 293: warning: exported type ReplicaSpec should have comment or be unexported (golint)
    • Line 313: warning: exported type ReplicaStatus should have comment or be unexported (golint)
    • Line 318: warning: exported type EngineImageState should have comment or be unexported (golint)
    • Line 321: warning: exported const EngineImageStateDeploying should have comment (or a comment on this block) or be unexported (golint)
    • Line 327: warning: exported type EngineImageSpec should have comment or be unexported (golint)
    • Line 332: warning: exported const EngineImageConditionTypeReady should have comment (or a comment on this block) or be unexported (golint)
    • Line 338: warning: exported type EngineImageStatus should have comment or be unexported (golint)
    • Line 350: warning: exported const InvalidEngineVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 353: warning: exported type EngineVersionDetails should have comment or be unexported (golint)
    • Line 366: warning: exported type NodeSpec should have comment or be unexported (golint)
    • Line 377: warning: exported const NodeConditionTypeReady should have comment (or a comment on this block) or be unexported (golint)
    • Line 383: warning: exported const NodeConditionReasonManagerPodDown should have comment (or a comment on this block) or be unexported (golint)
    • Line 394: warning: exported const DiskConditionTypeSchedulable should have comment (or a comment on this block) or be unexported (golint)
    • Line 399: warning: exported const DiskConditionReasonDiskPressure should have comment (or a comment on this block) or be unexported (golint)
    • Line 405: warning: exported type NodeStatus should have comment or be unexported (golint)
    • Line 412: warning: exported type DiskSpec should have comment or be unexported (golint)
    • Line 420: warning: exported type DiskStatus should have comment or be unexported (golint)
    • Line 429: warning: exported type BackupStatus should have comment or be unexported (golint)
    • Line 438: warning: exported type RestoreStatus should have comment or be unexported (golint)
    • Line 449: warning: exported type PurgeStatus should have comment or be unexported (golint)
    • Line 456: warning: exported type RebuildStatus should have comment or be unexported (golint)
    • Line 464: warning: exported type SnapshotCloneStatus should have comment or be unexported (golint)
    • Line 480: warning: exported type InstanceType should have comment or be unexported (golint)
    • Line 483: warning: exported const InstanceTypeEngine should have comment (or a comment on this block) or be unexported (golint)
    • Line 487: warning: exported type InstanceManagerState should have comment or be unexported (golint)
    • Line 490: warning: exported const InstanceManagerStateError should have comment (or a comment on this block) or be unexported (golint)
    • Line 497: warning: exported type InstanceManagerType should have comment or be unexported (golint)
    • Line 500: warning: exported const InstanceManagerTypeEngine should have comment (or a comment on this block) or be unexported (golint)
    • Line 504: warning: exported type InstanceManagerSpec should have comment or be unexported (golint)
    • Line 513: warning: exported type InstanceManagerStatus should have comment or be unexported (golint)
    • Line 522: warning: exported type InstanceProcess should have comment or be unexported (golint)
    • Line 527: warning: exported type InstanceProcessSpec should have comment or be unexported (golint)
    • Line 531: warning: exported type InstanceProcessStatus should have comment or be unexported (golint)
    • Line 542: warning: exported type ShareManagerState should have comment or be unexported (golint)
    • Line 545: warning: exported const ShareManagerStateUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 552: warning: exported type ShareManagerSpec should have comment or be unexported (golint)
    • Line 556: warning: exported type ShareManagerStatus should have comment or be unexported (golint)
    • Line 565: warning: exported type BackingImageState should have comment or be unexported (golint)
    • Line 568: warning: exported const BackingImageStatePending should have comment (or a comment on this block) or be unexported (golint)
    • Line 577: warning: exported type BackingImageSpec should have comment or be unexported (golint)
    • Line 587: warning: exported type BackingImageStatus should have comment or be unexported (golint)
    • Line 601: warning: exported type BackingImageDiskFileStatus should have comment or be unexported (golint)
    • Line 607: warning: exported type BackingImageManagerState should have comment or be unexported (golint)
    • Line 610: warning: exported const BackingImageManagerStateError should have comment (or a comment on this block) or be unexported (golint)
    • Line 617: warning: exported type BackingImageManagerSpec should have comment or be unexported (golint)
    • Line 625: warning: exported type BackingImageManagerStatus should have comment or be unexported (golint)
    • Line 634: warning: exported type BackingImageFileInfo should have comment or be unexported (golint)
    • Line 653: warning: exported type BackingImageDataSourceType should have comment or be unexported (golint)
    • Line 656: warning: exported const BackingImageDataSourceTypeDownload should have comment (or a comment on this block) or be unexported (golint)
    • Line 662: warning: exported const DataSourceTypeDownloadParameterURL should have comment (or a comment on this block) or be unexported (golint)
    • Line 674: warning: exported type BackingImageDataSourceSpec should have comment or be unexported (golint)
    • Line 684: warning: exported type BackingImageDataSourceStatus should have comment or be unexported (golint)
    • Line 694: warning: exported type BackupTargetSpec should have comment or be unexported (golint)
    • Line 702: warning: exported const BackupTargetConditionTypeUnavailable should have comment (or a comment on this block) or be unexported (golint)
    • Line 707: warning: exported type BackupTargetStatus should have comment or be unexported (golint)
    • Line 714: warning: exported type BackupVolumeSpec should have comment or be unexported (golint)
    • Line 718: warning: exported type BackupVolumeStatus should have comment or be unexported (golint)
    • Line 733: warning: exported type SnapshotBackupSpec should have comment or be unexported (golint)
    • Line 739: warning: exported type BackupState should have comment or be unexported (golint)
    • Line 742: warning: exported const BackupStateInProgress should have comment (or a comment on this block) or be unexported (golint)
    • Line 748: warning: exported type SnapshotBackupStatus should have comment or be unexported (golint)
    • Line 765: warning: exported type RecurringJobSpec should have comment or be unexported (golint)
    • Line 775: warning: exported type RecurringJobStatus should have comment or be unexported (golint)
    • longhorn-manager/api/snapshot.go
    • Line 19: warning: exported method Server.SnapshotCreate should have comment or be unexported (golint)
    • Line 49: warning: exported method Server.SnapshotList should have comment or be unexported (golint)
    • Line 64: warning: exported method Server.SnapshotGet should have comment or be unexported (golint)
    • Line 85: warning: exported method Server.SnapshotDelete should have comment or be unexported (golint)
    • Line 114: warning: exported method Server.SnapshotRevert should have comment or be unexported (golint)
    • Line 147: warning: exported method Server.SnapshotBackup should have comment or be unexported (golint)
    • Line 191: warning: exported method Server.SnapshotPurge 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/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/csi/deployment_util.go
    • Line 27: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 391: warning: exported function GetInContainerCSISocketDir should have comment or be unexported (golint)
    • Line 395: warning: exported function GetInContainerCSISocketFilePath should have comment or be unexported (golint)
    • Line 399: warning: exported function GetInContainerCSIRegistrationDir should have comment or be unexported (golint)
    • Line 403: warning: exported function GetCSIPodsDir should have comment or be unexported (golint)
    • Line 407: warning: exported function GetCSIKubernetesDir should have comment or be unexported (golint)
    • Line 411: warning: exported function GetCSISocketDir should have comment or be unexported (golint)
    • Line 415: warning: exported function GetCSISocketFilePath should have comment or be unexported (golint)
    • Line 419: warning: exported function GetCSIRegistrationDir should have comment or be unexported (golint)
    • Line 423: warning: exported function GetCSIPluginsDir should have comment or be unexported (golint)
    • Line 427: warning: exported function GetCSIEndpoint 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/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/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/recurring_job.go
    • Line 31: warning: exported const FlagSnapshotName should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type Job should have comment or be unexported (golint)
    • Line 64: warning: exported function RecurringJobCmd should have comment or be unexported (golint)
    • Line 200: warning: exported function NewJob should have comment or be unexported (golint)
    • Line 477: warning: exported type NameWithTimestamp should have comment or be unexported (golint)
    • Line 782: warning: exported method Job.GetVolume should have comment or be unexported (golint)
    • Line 786: warning: exported method Job.UpdateVolumeStatus 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/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/api/forwarder.go
    • Line 19: warning: exported type OwnerIDFunc should have comment or be unexported (golint)
    • Line 20: warning: exported type BackingImageUploadServerAddressFunc should have comment or be unexported (golint)
    • Line 21: warning: exported type GetTargetAddressFunc should have comment or be unexported (golint)
    • Line 22: warning: exported type ProxyRequestHandler should have comment or be unexported (golint)
    • Line 24: warning: exported function OwnerIDFromVolume should have comment or be unexported (golint)
    • Line 61: warning: exported function OwnerIDFromNode should have comment or be unexported (golint)
    • Line 68: warning: exported type NodeLocator should have comment or be unexported (golint)
    • Line 73: warning: exported type Fwd should have comment or be unexported (golint)
    • Line 78: warning: exported function NewFwd should have comment or be unexported (golint)
    • Line 85: warning: exported method Fwd.Handler should have comment or be unexported (golint)
    • Line 109: warning: exported method Fwd.HandleProxyRequestByNodeID should have comment or be unexported (golint)
    • Line 130: warning: exported method Fwd.GetHTTPAddressByNodeID should have comment or be unexported (golint)
    • Line 141: warning: exported const BackingImageUpload should have comment (or a comment on this block) or be unexported (golint)
    • Line 144: warning: exported method Fwd.HandleProxyRequestForBackingImageUpload should have comment or be unexported (golint)
    • Line 161: warning: exported method Fwd.GetHTTPAddressForBackingImageUpload should have comment or be unexported (golint)
    • Line 167: warning: exported function UploadServerAddressFromBackingImage 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_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/controller/replica_controller.go
    • Line 48: warning: exported type ReplicaController should have comment or be unexported (golint)
    • Line 69: warning: exported function NewReplicaController should have comment or be unexported (golint)
    • Line 130: warning: exported method ReplicaController.Run should have comment or be unexported (golint)
    • Line 231: warning: exported method ReplicaController.UpdateReplicaEvictionStatus should have comment or be unexported (golint)
    • Line 362: warning: exported method ReplicaController.CreateInstance should have comment or be unexported (golint)
    • Line 423: warning: exported method ReplicaController.DeleteInstance should have comment or be unexported (golint)
    • Line 532: warning: exported method ReplicaController.GetInstance should have comment or be unexported (golint)
    • Line 561: warning: exported method ReplicaController.LogInstance should have comment or be unexported (golint)
    • longhorn-manager/monitoring/manager_collector.go
    • Line 17: warning: exported type ManagerCollector should have comment or be unexported (golint)
    • Line 27: warning: exported function NewManagerCollector should have comment or be unexported (golint)
    • Line 63: warning: exported method ManagerCollector.Describe should have comment or be unexported (golint)
    • Line 68: warning: exported method ManagerCollector.Collect 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 73: warning: exported method VolumeManager.PVCCreate should have comment or be unexported (golint)
    • Line 132: warning: exported method VolumeManager.GetDaemonSetRO 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/client/generated_backing_image_disk_file_status.go
    • Line 4: warning: exported const BACKING_IMAGE_DISK_FILE_STATUS_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type BackingImageDiskFileStatus should have comment or be unexported (golint)
    • Line 17: warning: exported type BackingImageDiskFileStatusCollection should have comment or be unexported (golint)
    • Line 23: warning: exported type BackingImageDiskFileStatusClient should have comment or be unexported (golint)
    • Line 27: warning: exported type BackingImageDiskFileStatusOperations should have comment or be unexported (golint)
    • Line 41: warning: exported method BackingImageDiskFileStatusClient.Create should have comment or be unexported (golint)
    • Line 47: warning: exported method BackingImageDiskFileStatusClient.Update should have comment or be unexported (golint)
    • Line 53: warning: exported method BackingImageDiskFileStatusClient.List should have comment or be unexported (golint)
    • Line 60: warning: exported method BackingImageDiskFileStatusCollection.Next should have comment or be unexported (golint)
    • Line 70: warning: exported method BackingImageDiskFileStatusClient.ById should have comment or be unexported (golint)
    • Line 81: warning: exported method BackingImageDiskFileStatusClient.Delete 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/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/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/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/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/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_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_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/upgrade/util/util.go
    • Line 15: warning: exported function ListShareManagerPods should have comment or be unexported (golint)
    • Line 25: warning: exported function ListIMPods should have comment or be unexported (golint)
    • Line 35: warning: exported function MergeStringMaps 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 19: warning: exported type PVCreateInputCollection should have comment or be unexported (golint)
    • Line 25: warning: exported type PVCreateInputClient should have comment or be unexported (golint)
    • Line 29: warning: exported type PVCreateInputOperations should have comment or be unexported (golint)
    • Line 43: warning: exported method PVCreateInputClient.Create should have comment or be unexported (golint)
    • Line 49: warning: exported method PVCreateInputClient.Update should have comment or be unexported (golint)
    • Line 55: warning: exported method PVCreateInputClient.List should have comment or be unexported (golint)
    • Line 62: warning: exported method PVCreateInputCollection.Next should have comment or be unexported (golint)
    • Line 72: warning: exported method PVCreateInputClient.ById should have comment or be unexported (golint)
    • Line 83: warning: exported method PVCreateInputClient.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 381: warning: exported method EngineController.CreateInstance should have comment or be unexported (golint)
    • Line 406: warning: exported method EngineController.DeleteInstance should have comment or be unexported (golint)
    • Line 523: warning: exported method EngineController.GetInstance should have comment or be unexported (golint)
    • Line 552: warning: exported method EngineController.LogInstance should have comment or be unexported (golint)
    • Line 646: warning: exported method EngineMonitor.Run should have comment or be unexported (golint)
    • Line 1202: warning: exported method EngineController.ReconcileEngineState should have comment or be unexported (golint)
    • Line 1212: warning: exported function GetClientForEngine should have comment or be unexported (golint)
    • Line 1408: warning: exported method EngineController.Upgrade should have comment or be unexported (golint)
    • Line 1443: warning: exported method EngineController.UpgradeEngineProcess 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/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_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_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/controller/uninstall_controller.go
    • Line 32: warning: exported const CRDEngineName should have comment (or a comment on this block) or be unexported (golint)
    • Line 54: warning: exported type UninstallController should have comment or be unexported (golint)
    • Line 64: warning: exported function NewUninstallController should have comment or be unexported (golint)
    • Line 205: warning: exported method UninstallController.Run 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/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)
    • longhorn-manager/engineapi/types.go
    • Line 21: warning: exported const CLIVersionFour should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type Replica should have comment or be unexported (golint)
    • Line 52: warning: exported type Controller should have comment or be unexported (golint)
    • Line 57: warning: exported type EngineClient should have comment or be unexported (golint)
    • Line 89: warning: exported type EngineClientRequest should have comment or be unexported (golint)
    • Line 96: warning: exported type EngineClientCollection should have comment or be unexported (golint)
    • Line 100: warning: exported type Volume should have comment or be unexported (golint)
    • Line 112: warning: exported type BackupTarget should have comment or be unexported (golint)
    • Line 120: warning: exported type BackupVolume should have comment or be unexported (golint)
    • Line 134: warning: exported type Backup should have comment or be unexported (golint)
    • Line 150: warning: exported type ConfigMetadata should have comment or be unexported (golint)
    • Line 154: warning: exported type BackupCreateInfo should have comment or be unexported (golint)
    • Line 159: warning: exported type LauncherVolumeInfo should have comment or be unexported (golint)
    • Line 165: warning: exported type EngineVersion should have comment or be unexported (golint)
    • Line 170: warning: exported type TaskError should have comment or be unexported (golint)
    • Line 174: warning: exported type ReplicaError should have comment or be unexported (golint)
    • Line 198: warning: exported function GetBackendReplicaURL should have comment or be unexported (golint)
    • Line 202: warning: exported function GetAddressFromBackendReplicaURL should have comment or be unexported (golint)
    • Line 207: warning: exported function ValidateReplicaURL should have comment or be unexported (golint)
    • Line 214: warning: exported function CheckCLICompatibilty should have comment or be unexported (golint)
    • Line 221: warning: exported function GetEngineProcessFrontend should have comment or be unexported (golint)
    • Line 236: warning: exported function GetEngineEndpoint 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/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/api/model.go
    • Line 22: warning: exported type Volume should have comment or be unexported (golint)
    • Line 74: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 79: warning: exported type BackupTarget should have comment or be unexported (golint)
    • Line 84: warning: exported type BackupVolume should have comment or be unexported (golint)
    • Line 99: warning: exported type Backup should have comment or be unexported (golint)
    • Line 117: warning: exported type Setting should have comment or be unexported (golint)
    • Line 124: warning: exported type Instance should have comment or be unexported (golint)
    • Line 134: warning: exported type Controller should have comment or be unexported (golint)
    • Line 146: warning: exported type Replica should have comment or be unexported (golint)
    • Line 156: warning: exported type EngineImage should have comment or be unexported (golint)
    • Line 165: warning: exported type BackingImage should have comment or be unexported (golint)
    • Line 180: warning: exported type BackingImageCleanupInput should have comment or be unexported (golint)
    • Line 184: warning: exported type AttachInput should have comment or be unexported (golint)
    • Line 190: warning: exported type DetachInput should have comment or be unexported (golint)
    • Line 194: warning: exported type SnapshotInput should have comment or be unexported (golint)
    • Line 199: warning: exported type BackupInput should have comment or be unexported (golint)
    • Line 203: warning: exported type ReplicaRemoveInput should have comment or be unexported (golint)
    • Line 207: warning: exported type SalvageInput should have comment or be unexported (golint)
    • Line 211: warning: exported type EngineUpgradeInput should have comment or be unexported (golint)
    • Line 215: warning: exported type UpdateReplicaCountInput should have comment or be unexported (golint)
    • Line 219: warning: exported type UpdateReplicaAutoBalanceInput should have comment or be unexported (golint)
    • Line 223: warning: exported type UpdateDataLocalityInput should have comment or be unexported (golint)
    • Line 227: warning: exported type UpdateAccessModeInput should have comment or be unexported (golint)
    • Line 231: warning: exported type PVCreateInput should have comment or be unexported (golint)
    • Line 239: warning: exported type PVCCreateInput should have comment or be unexported (golint)
    • Line 244: warning: exported type ActivateInput should have comment or be unexported (golint)
    • Line 248: warning: exported type ExpandInput should have comment or be unexported (golint)
    • Line 252: warning: exported type Node should have comment or be unexported (golint)
    • Line 267: warning: exported type DiskInfo should have comment or be unexported (golint)
    • Line 272: warning: exported type DiskUpdateInput should have comment or be unexported (golint)
    • Line 276: warning: exported type Event should have comment or be unexported (golint)
    • Line 282: warning: exported type SupportBundle should have comment or be unexported (golint)
    • Line 291: warning: exported type SupportBundleInitateInput should have comment or be unexported (golint)
    • Line 296: warning: exported type Tag should have comment or be unexported (golint)
    • Line 302: warning: exported type BackupStatus should have comment or be unexported (golint)
    • Line 313: warning: exported type RestoreStatus should have comment or be unexported (golint)
    • Line 325: warning: exported type PurgeStatus should have comment or be unexported (golint)
    • Line 334: warning: exported type RebuildStatus should have comment or be unexported (golint)
    • Line 344: warning: exported type InstanceManager should have comment or be unexported (golint)
    • Line 354: warning: exported type RecurringJob should have comment or be unexported (golint)
    • Line 359: warning: exported type VolumeRecurringJob should have comment or be unexported (golint)
    • Line 364: warning: exported type VolumeRecurringJobInput should have comment or be unexported (golint)
    • Line 368: warning: exported type BackupListOutput should have comment or be unexported (golint)
    • Line 373: warning: exported type SnapshotListOutput should have comment or be unexported (golint)
    • Line 378: warning: exported function NewSchema should have comment or be unexported (golint)
    • Line 1398: warning: exported type Server should have comment or be unexported (golint)
    • Line 1404: warning: exported function NewServer 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/instance_manager_controller.go
    • Line 44: warning: exported type InstanceManagerController should have comment or be unexported (golint)
    • Line 67: warning: exported type InstanceManagerMonitor should have comment or be unexported (golint)
    • Line 84: warning: exported type InstanceManagerUpdater should have comment or be unexported (golint)
    • Line 88: warning: exported type InstanceManagerNotifier should have comment or be unexported (golint)
    • Line 106: warning: exported function NewInstanceManagerController should have comment or be unexported (golint)
    • Line 188: warning: exported method InstanceManagerController.Run should have comment or be unexported (golint)
    • Line 971: warning: exported function NewInstanceManagerUpdater should have comment or be unexported (golint)
    • Line 978: warning: exported method InstanceManagerUpdater.Poll should have comment or be unexported (golint)
    • Line 982: warning: exported method InstanceManagerUpdater.GetNotifier should have comment or be unexported (golint)
    • Line 990: warning: exported function NewInstanceManagerNotifier should have comment or be unexported (golint)
    • Line 996: warning: exported method InstanceManagerNotifier.Recv should have comment or be unexported (golint)
    • Line 1004: warning: exported method InstanceManagerNotifier.Close should have comment or be unexported (golint)
    • Line 1088: warning: exported method InstanceManagerMonitor.Run should have comment or be unexported (golint)
    • Line 1189: warning: exported method InstanceManagerMonitor.CheckMonitorStoppedWithLock should have comment or be unexported (golint)
    • Line 1195: warning: exported method InstanceManagerMonitor.StopMonitorWithLock should have comment or be unexported (golint)
    • longhorn-manager/engineapi/backups.go
    • Line 18: warning: exported type BackupTargetClient should have comment or be unexported (golint)
    • Line 33: warning: exported method BackupTargetClient.LonghornEngineBinary should have comment or be unexported (golint)
    • Line 73: warning: exported method BackupTargetClient.ExecuteEngineBinary should have comment or be unexported (golint)
    • Line 81: warning: exported method BackupTargetClient.ExecuteEngineBinaryWithoutTimeout should have comment or be unexported (golint)
    • Line 243: warning: exported method Engine.SnapshotBackup should have comment or be unexported (golint)
    • Line 294: warning: exported method Engine.SnapshotBackupStatus should have comment or be unexported (golint)
    • Line 307: warning: exported method Engine.BackupRestore should have comment or be unexported (golint)
    • Line 336: warning: exported method Engine.BackupRestoreStatus should have comment or be unexported (golint)
    • longhorn-manager/util/util.go
    • Line 46: warning: exported const VolumeStackPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 67: warning: exported var APIRetryInterval should have comment or be unexported (golint)
    • Line 72: warning: exported type MetadataConfig should have comment or be unexported (golint)
    • Line 79: warning: exported type DiskInfo should have comment or be unexported (golint)
    • Line 90: warning: exported function ConvertSize should have comment or be unexported (golint)
    • Line 109: warning: exported function RoundUpSize should have comment or be unexported (golint)
    • Line 120: warning: exported function Backoff should have comment or be unexported (golint)
    • Line 144: warning: exported function UUID should have comment or be unexported (golint)
    • Line 163: warning: exported function RandomID should have comment or be unexported (golint)
    • Line 167: warning: exported function GetLocalIPs should have comment or be unexported (golint)
    • Line 196: warning: exported function Now should have comment or be unexported (golint)
    • Line 200: warning: exported function ParseTime should have comment or be unexported (golint)
    • Line 205: warning: exported function Execute should have comment or be unexported (golint)
    • Line 209: warning: exported function ExecuteWithTimeout should have comment or be unexported (golint)
    • Line 244: warning: exported function ExecuteWithoutTimeout should have comment or be unexported (golint)
    • Line 259: warning: exported function TimestampAfterTimeout should have comment or be unexported (golint)
    • Line 270: warning: exported function TimestampWithinLimit should have comment or be unexported (golint)
    • Line 280: warning: exported function ValidateName should have comment or be unexported (golint)
    • Line 285: warning: exported function GetBackupID should have comment or be unexported (golint)
    • Line 299: warning: exported function GetRequiredEnv should have comment or be unexported (golint)
    • Line 331: warning: exported function RegisterShutdownChannel should have comment or be unexported (golint)
    • Line 341: warning: exported function SplitStringToMap should have comment or be unexported (golint)
    • Line 355: warning: exported function GetSortedKeysFromMap should have comment or be unexported (golint)
    • Line 386: warning: exported function GetStringChecksum should have comment or be unexported (golint)
    • Line 390: warning: exported function GetChecksumSHA512 should have comment or be unexported (golint)
    • Line 395: warning: exported function GetStringHash should have comment or be unexported (golint)
    • Line 401: warning: exported function CheckBackupType should have comment or be unexported (golint)
    • Line 410: warning: exported function GetDiskInfo should have comment or be unexported (golint)
    • Line 434: warning: exported function RetryOnConflictCause should have comment or be unexported (golint)
    • Line 438: warning: exported function RetryOnNotFoundCause should have comment or be unexported (golint)
    • Line 442: warning: exported function RetryOnErrorCondition should have comment or be unexported (golint)
    • Line 456: warning: exported function RunAsync should have comment or be unexported (golint)
    • Line 464: warning: exported function RemoveHostDirectoryContent should have comment or be unexported (golint)
    • Line 492: warning: exported function CopyHostDirectoryContent should have comment or be unexported (golint)
    • Line 537: warning: exported function FilteredLoggingHandler should have comment or be unexported (golint)
    • Line 557: warning: exported function ValidateSnapshotLabels should have comment or be unexported (golint)
    • Line 579: warning: exported function ValidateTags should have comment or be unexported (golint)
    • Line 599: warning: exported function CreateDiskPathReplicaSubdirectory should have comment or be unexported (golint)
    • Line 612: warning: exported function DeleteDiskPathReplicaSubdirectoryAndDiskCfgFile should have comment or be unexported (golint)
    • Line 636: warning: exported function IsKubernetesDefaultToleration should have comment or be unexported (golint)
    • Line 643: warning: exported function GetAnnotation should have comment or be unexported (golint)
    • Line 657: warning: exported function SetAnnotation should have comment or be unexported (golint)
    • Line 673: warning: exported function GetDistinctTolerations should have comment or be unexported (golint)
    • Line 682: warning: exported function TolerationListToMap should have comment or be unexported (golint)
    • Line 692: warning: exported function GetTolerationChecksum should have comment or be unexported (golint)
    • Line 696: warning: exported function ExpandFileSystem should have comment or be unexported (golint)
    • Line 776: warning: exported function DetectFileSystem should have comment or be unexported (golint)
    • Line 799: warning: exported function IsSupportedFileSystem should have comment or be unexported (golint)
    • Line 806: warning: exported function IsKubernetesVersionAtLeast should have comment or be unexported (golint)
    • Line 816: warning: exported type DiskConfig should have comment or be unexported (golint)
    • Line 820: warning: exported function GetDiskConfig should have comment or be unexported (golint)
    • Line 839: warning: exported function GenerateDiskConfig should have comment or be unexported (golint)
    • Line 880: warning: exported function MinInt should have comment or be unexported (golint)
    • Line 887: warning: exported function Contains 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/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_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/upgrade/v110to111/upgrade.go
    • Line 37: warning: exported function UpgradeCRs should have comment or be unexported (golint)
    • Line 57: warning: exported function UpgradePods should have comment or be unexported (golint)
    • Line 70: warning: exported function UpgradeServices should have comment or be unexported (golint)
    • Line 83: warning: exported function UpgradeDeploymentAndDaemonSet should have comment or be unexported (golint)
    • longhorn-manager/csi/node_server.go
    • Line 34: warning: exported const CryptoKeyValue should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type NodeServer should have comment or be unexported (golint)
    • Line 43: warning: exported function NewNodeServer should have comment or be unexported (golint)
    • Line 231: warning: exported method NodeServer.NodeUnpublishVolume should have comment or be unexported (golint)
    • Line 250: warning: exported method NodeServer.NodeStageVolume should have comment or be unexported (golint)
    • Line 394: warning: exported method NodeServer.NodeUnstageVolume should have comment or be unexported (golint)
    • Line 433: warning: exported method NodeServer.NodeGetVolumeStats should have comment or be unexported (golint)
    • Line 521: warning: exported method NodeServer.NodeGetInfo should have comment or be unexported (golint)
    • Line 528: warning: exported method NodeServer.NodeGetCapabilities should have comment or be unexported (golint)
    • longhorn-manager/datastore/longhorn.go
    • Line 34: warning: exported const MaxRecurringJobRetain should have comment (or a comment on this block) or be unexported (golint)
    • Line 1686: warning: exported method DataStore.GetNodeRO should have comment or be unexported (golint)
    • Line 1770: warning: exported method DataStore.ListNodesWithEngineImage should have comment or be unexported (golint)
    • Line 1819: warning: exported method DataStore.ListReadyNodes should have comment or be unexported (golint)
    • Line 1828: warning: exported method DataStore.ListReadyAndSchedulableNodes should have comment or be unexported (golint)
    • Line 1899: warning: exported method DataStore.IsNodeDownOrDeletedOrMissingManager should have comment or be unexported (golint)
    • Line 1942: warning: exported method DataStore.IsNodeSchedulable should have comment or be unexported (golint)
    • Line 2109: warning: exported function FixupRecurringJob should have comment or be unexported (golint)
    • Line 2229: warning: exported method DataStore.GetSettingTaintToleration should have comment or be unexported (golint)
    • Line 2241: warning: exported method DataStore.GetSettingSystemManagedComponentsNodeSelector should have comment or be unexported (golint)
    • Line 3126: warning: exported function ValidateRecurringJob should have comment or be unexported (golint)
    • Line 3155: warning: exported function ValidateRecurringJobs should have comment or be unexported (golint)
    • longhorn-manager/types/data_source.go
    • Line 11: warning: exported const SnapPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function NewVolumeDataSource should have comment or be unexported (golint)
    • Line 45: warning: exported function NewVolumeDataSourceTypeVolume should have comment or be unexported (golint)
    • Line 49: warning: exported function NewVolumeDataSourceTypeSnapshot should have comment or be unexported (golint)
    • Line 53: warning: exported function IsValidVolumeDataSource should have comment or be unexported (golint)
    • Line 72: warning: exported method VolumeDataSource.GetType should have comment or be unexported (golint)
    • Line 88: warning: exported method VolumeDataSource.IsDataFromVolume should have comment or be unexported (golint)
    • Line 93: warning: exported method VolumeDataSource.GetVolumeName should have comment or be unexported (golint)
    • Line 106: warning: exported method VolumeDataSource.GetSnapshotName should have comment or be unexported (golint)
    • Line 136: warning: exported method VolumeDataSource.ToString should have comment or be unexported (golint)
    • longhorn-manager/manager/recurringjob.go
    • Line 19: warning: exported method VolumeManager.GetRecurringJob should have comment or be unexported (golint)
    • Line 23: warning: exported method VolumeManager.ListRecurringJobsSorted should have comment or be unexported (golint)
    • Line 40: warning: exported method VolumeManager.CreateRecurringJob should have comment or be unexported (golint)
    • Line 75: warning: exported method VolumeManager.UpdateRecurringJob should have comment or be unexported (golint)
    • Line 117: warning: exported method VolumeManager.DeleteRecurringJob 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_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_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/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 68: warning: exported type BackingImageManagerMonitor should have comment or be unexported (golint)
    • Line 102: warning: exported function NewBackingImageManagerController should have comment or be unexported (golint)
    • Line 171: warning: exported method BackingImageManagerController.Run should have comment or be unexported (golint)
    • Line 1080: warning: exported method BackingImageManagerMonitor.Run should have comment or be unexported (golint)
    • longhorn-manager/controller/backup_controller.go
    • Line 36: warning: exported const BackupStatusQueryInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type BackupController should have comment or be unexported (golint)
    • Line 55: warning: exported function NewBackupController should have comment or be unexported (golint)
    • Line 103: warning: exported method BackupController.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/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 51: warning: exported function NewWebsocketController should have comment or be unexported (golint)
    • Line 96: warning: exported method WebsocketController.NewWatcher should have comment or be unexported (golint)
    • Line 109: warning: exported method WebsocketController.Run should have comment or be unexported (golint)
    • Line 125: warning: exported method WebsocketController.Close 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/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/types/types.go
    • Line 19: warning: exported const LonghornKindNode should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const DefaultAPIPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 110: warning: exported const KubernetesMinVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 113: warning: exported type ReplicaMode should have comment or be unexported (golint)
    • Line 116: warning: exported const ReplicaModeRW should have comment (or a comment on this block) or be unexported (golint)
    • Line 154: warning: exported type NotFoundError should have comment or be unexported (golint)
    • Line 171: warning: exported const BackingImageDataSourcePodNamePrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 179: warning: exported function GenerateEngineNameForVolume should have comment or be unexported (golint)
    • Line 183: warning: exported function GenerateReplicaNameForVolume should have comment or be unexported (golint)
    • Line 187: warning: exported function GetCronJobNameForRecurringJob should have comment or be unexported (golint)
    • Line 191: warning: exported function GetCronJobNameForVolumeAndJob should have comment or be unexported (golint)
    • Line 195: warning: exported function GetAPIServerAddressFromIP should have comment or be unexported (golint)
    • Line 199: warning: exported function GetDefaultManagerURL should have comment or be unexported (golint)
    • Line 203: warning: exported function GetImageCanonicalName should have comment or be unexported (golint)
    • Line 207: warning: exported function GetEngineBinaryDirectoryOnHostForImage should have comment or be unexported (golint)
    • Line 212: warning: exported function GetEngineBinaryDirectoryForEngineManagerContainer should have comment or be unexported (golint)
    • Line 217: warning: exported function GetEngineBinaryDirectoryForReplicaManagerContainer should have comment or be unexported (golint)
    • Line 222: warning: exported function EngineBinaryExistOnHostForImage should have comment or be unexported (golint)
    • Line 227: warning: exported function GetBackingImageManagerName should have comment or be unexported (golint)
    • Line 231: warning: exported function GetBackingImageDirectoryName should have comment or be unexported (golint)
    • Line 235: warning: exported function GetBackingImageManagerDirectoryOnHost should have comment or be unexported (golint)
    • Line 239: warning: exported function GetBackingImageDirectoryOnHost should have comment or be unexported (golint)
    • Line 243: warning: exported function GetBackingImagePathForReplicaManagerContainer should have comment or be unexported (golint)
    • Line 248: warning: exported var LonghornSystemKey should have comment or be unexported (golint)
    • Line 251: warning: exported function GetLonghornLabelKey should have comment or be unexported (golint)
    • Line 255: warning: exported function GetBaseLabelsForSystemManagedComponent should have comment or be unexported (golint)
    • Line 259: warning: exported function GetLonghornLabelComponentKey should have comment or be unexported (golint)
    • Line 263: warning: exported function GetEngineImageLabels should have comment or be unexported (golint)
    • Line 278: warning: exported function GetEngineImageComponentLabel should have comment or be unexported (golint)
    • Line 284: warning: exported function GetInstanceManagerLabels should have comment or be unexported (golint)
    • Line 298: warning: exported function GetInstanceManagerComponentLabel should have comment or be unexported (golint)
    • Line 304: warning: exported function GetShareManagerComponentLabel should have comment or be unexported (golint)
    • Line 310: warning: exported function GetShareManagerInstanceLabel should have comment or be unexported (golint)
    • Line 316: warning: exported function GetShareManagerLabels should have comment or be unexported (golint)
    • Line 331: warning: exported function GetCronJobLabels should have comment or be unexported (golint)
    • Line 337: warning: exported function GetBackingImageLabels should have comment or be unexported (golint)
    • Line 343: warning: exported function GetBackingImageManagerLabels should have comment or be unexported (golint)
    • Line 355: warning: exported function GetBackingImageDataSourceLabels should have comment or be unexported (golint)
    • Line 370: warning: exported function GetBackupVolumeLabels should have comment or be unexported (golint)
    • Line 376: warning: exported function GetVolumeLabels should have comment or be unexported (golint)
    • Line 382: warning: exported function GetRecurringJobLabelKey should have comment or be unexported (golint)
    • Line 387: warning: exported function GetRecurringJobLabelValueMap should have comment or be unexported (golint)
    • Line 392: warning: exported function GetRegionAndZone should have comment or be unexported (golint)
    • Line 404: warning: exported function GetEngineImageChecksumName should have comment or be unexported (golint)
    • Line 408: warning: exported function GetInstanceManagerImageChecksumName should have comment or be unexported (golint)
    • Line 412: warning: exported function GetShareManagerImageChecksumName should have comment or be unexported (golint)
    • Line 416: warning: exported function GetShareManagerPodNameFromShareManagerName should have comment or be unexported (golint)
    • Line 420: warning: exported function GetShareManagerNameFromShareManagerPodName should have comment or be unexported (golint)
    • Line 424: warning: exported function ValidateEngineImageChecksumName should have comment or be unexported (golint)
    • Line 429: warning: exported function GetInstanceManagerName should have comment or be unexported (golint)
    • Line 439: warning: exported function GetInstanceManagerPrefix should have comment or be unexported (golint)
    • Line 449: warning: exported function GetBackingImageDataSourcePodName should have comment or be unexported (golint)
    • Line 453: warning: exported function GetReplicaDataPath should have comment or be unexported (golint)
    • Line 457: warning: exported function GetReplicaMountedDataPath should have comment or be unexported (golint)
    • Line 464: warning: exported function ErrorIsNotFound should have comment or be unexported (golint)
    • Line 468: warning: exported function ErrorAlreadyExists should have comment or be unexported (golint)
    • Line 472: warning: exported function ValidateReplicaCount should have comment or be unexported (golint)
    • Line 479: warning: exported function ValidateReplicaAutoBalance should have comment or be unexported (golint)
    • Line 491: warning: exported function ValidateDataLocality should have comment or be unexported (golint)
    • Line 498: warning: exported function ValidateAccessMode should have comment or be unexported (golint)
    • Line 505: warning: exported function GetDaemonSetNameFromEngineImageName should have comment or be unexported (golint)
    • Line 509: warning: exported function GetEngineImageNameFromDaemonSetName should have comment or be unexported (golint)
    • Line 513: warning: exported function LabelsToString should have comment or be unexported (golint)
    • Line 522: warning: exported function CreateDisksFromAnnotation should have comment or be unexported (golint)
    • Line 577: warning: exported function GetNodeTagsFromAnnotation should have comment or be unexported (golint)
    • Line 590: warning: exported type DiskSpecWithName should have comment or be unexported (golint)
    • Line 615: warning: exported function CreateDefaultDisk should have comment or be unexported (golint)
    • Line 633: warning: exported function ValidateCPUReservationValues 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 45: warning: exported method Server.BackingImageCreate should have comment or be unexported (golint)
    • Line 61: warning: exported method Server.BackingImageDelete should have comment or be unexported (golint)
    • Line 70: warning: exported method Server.BackingImageCleanup should have comment or be unexported (golint)
    • longhorn-manager/client/generated_volume_recurring_job_input.go
    • Line 4: warning: exported const VOLUME_RECURRING_JOB_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type VolumeRecurringJobInput should have comment or be unexported (golint)
    • Line 15: warning: exported type VolumeRecurringJobInputCollection should have comment or be unexported (golint)
    • Line 21: warning: exported type VolumeRecurringJobInputClient should have comment or be unexported (golint)
    • Line 25: warning: exported type VolumeRecurringJobInputOperations should have comment or be unexported (golint)
    • Line 39: warning: exported method VolumeRecurringJobInputClient.Create should have comment or be unexported (golint)
    • Line 45: warning: exported method VolumeRecurringJobInputClient.Update should have comment or be unexported (golint)
    • Line 51: warning: exported method VolumeRecurringJobInputClient.List should have comment or be unexported (golint)
    • Line 58: warning: exported method VolumeRecurringJobInputCollection.Next should have comment or be unexported (golint)
    • Line 68: warning: exported method VolumeRecurringJobInputClient.ById should have comment or be unexported (golint)
    • Line 79: warning: exported method VolumeRecurringJobInputClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/csi/deployment.go
    • Line 21: warning: exported const DefaultCSIAttacherImage should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported var HostPathDirectoryOrCreate should have comment or be unexported (golint)
    • Line 48: warning: exported type AttacherDeployment should have comment or be unexported (golint)
    • Line 53: warning: exported function NewAttacherDeployment should have comment or be unexported (golint)
    • Line 86: warning: exported method AttacherDeployment.Deploy should have comment or be unexported (golint)
    • Line 96: warning: exported method AttacherDeployment.Cleanup should have comment or be unexported (golint)
    • Line 114: warning: exported type ProvisionerDeployment should have comment or be unexported (golint)
    • Line 119: warning: exported function NewProvisionerDeployment should have comment or be unexported (golint)
    • Line 152: warning: exported method ProvisionerDeployment.Deploy should have comment or be unexported (golint)
    • Line 162: warning: exported method ProvisionerDeployment.Cleanup should have comment or be unexported (golint)
    • Line 180: warning: exported type ResizerDeployment should have comment or be unexported (golint)
    • Line 185: warning: exported function NewResizerDeployment should have comment or be unexported (golint)
    • Line 218: warning: exported method ResizerDeployment.Deploy should have comment or be unexported (golint)
    • Line 228: warning: exported method ResizerDeployment.Cleanup should have comment or be unexported (golint)
    • Line 246: warning: exported type SnapshotterDeployment should have comment or be unexported (golint)
    • Line 251: warning: exported function NewSnapshotterDeployment should have comment or be unexported (golint)
    • Line 282: warning: exported method SnapshotterDeployment.Deploy should have comment or be unexported (golint)
    • Line 292: warning: exported method SnapshotterDeployment.Cleanup should have comment or be unexported (golint)
    • Line 310: warning: exported type PluginDeployment should have comment or be unexported (golint)
    • Line 314: warning: exported function NewPluginDeployment should have comment or be unexported (golint)
    • Line 552: warning: exported method PluginDeployment.Deploy should have comment or be unexported (golint)
    • Line 557: warning: exported method PluginDeployment.Cleanup should have comment or be unexported (golint)
    • Line 564: warning: exported type DriverObjectDeployment should have comment or be unexported (golint)
    • Line 568: warning: exported function NewCSIDriverObject should have comment or be unexported (golint)
    • Line 583: warning: exported method DriverObjectDeployment.Deploy should have comment or be unexported (golint)
    • Line 588: warning: exported method DriverObjectDeployment.Cleanup 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 374: warning: exported method VolumeManager.InitSupportBundle 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_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 31: warning: exported type BackupVolumeCollection should have comment or be unexported (golint)
    • Line 37: warning: exported type BackupVolumeClient should have comment or be unexported (golint)
    • Line 41: warning: exported type BackupVolumeOperations should have comment or be unexported (golint)
    • Line 61: warning: exported method BackupVolumeClient.Create should have comment or be unexported (golint)
    • Line 67: warning: exported method BackupVolumeClient.Update should have comment or be unexported (golint)
    • Line 73: warning: exported method BackupVolumeClient.List should have comment or be unexported (golint)
    • Line 80: warning: exported method BackupVolumeCollection.Next should have comment or be unexported (golint)
    • Line 90: warning: exported method BackupVolumeClient.ById should have comment or be unexported (golint)
    • Line 101: warning: exported method BackupVolumeClient.Delete should have comment or be unexported (golint)
    • Line 105: warning: exported method BackupVolumeClient.ActionBackupDelete should have comment or be unexported (golint)
    • Line 114: warning: exported method BackupVolumeClient.ActionBackupGet should have comment or be unexported (golint)
    • Line 123: warning: exported method BackupVolumeClient.ActionBackupList 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_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_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 93: warning: exported type VolumeCollection should have comment or be unexported (golint)
    • Line 99: warning: exported type VolumeClient should have comment or be unexported (golint)
    • Line 103: warning: exported type VolumeOperations should have comment or be unexported (golint)
    • Line 157: warning: exported method VolumeClient.Create should have comment or be unexported (golint)
    • Line 163: warning: exported method VolumeClient.Update should have comment or be unexported (golint)
    • Line 169: warning: exported method VolumeClient.List should have comment or be unexported (golint)
    • Line 176: warning: exported method VolumeCollection.Next should have comment or be unexported (golint)
    • Line 186: warning: exported method VolumeClient.ById should have comment or be unexported (golint)
    • Line 197: warning: exported method VolumeClient.Delete should have comment or be unexported (golint)
    • Line 201: warning: exported method VolumeClient.ActionActivate should have comment or be unexported (golint)
    • Line 210: warning: exported method VolumeClient.ActionAttach should have comment or be unexported (golint)
    • Line 219: warning: exported method VolumeClient.ActionCancelExpansion should have comment or be unexported (golint)
    • Line 228: warning: exported method VolumeClient.ActionDetach should have comment or be unexported (golint)
    • Line 237: warning: exported method VolumeClient.ActionExpand should have comment or be unexported (golint)
    • Line 246: warning: exported method VolumeClient.ActionPvCreate should have comment or be unexported (golint)
    • Line 255: warning: exported method VolumeClient.ActionPvcCreate should have comment or be unexported (golint)
    • Line 264: warning: exported method VolumeClient.ActionRecurringJobAdd should have comment or be unexported (golint)
    • Line 273: warning: exported method VolumeClient.ActionRecurringJobDelete should have comment or be unexported (golint)
    • Line 282: warning: exported method VolumeClient.ActionRecurringJobList should have comment or be unexported (golint)
    • Line 291: warning: exported method VolumeClient.ActionReplicaRemove should have comment or be unexported (golint)
    • Line 300: warning: exported method VolumeClient.ActionSalvage should have comment or be unexported (golint)
    • Line 309: warning: exported method VolumeClient.ActionSnapshotBackup should have comment or be unexported (golint)
    • Line 318: warning: exported method VolumeClient.ActionSnapshotCreate should have comment or be unexported (golint)
    • Line 327: warning: exported method VolumeClient.ActionSnapshotDelete should have comment or be unexported (golint)
    • Line 336: warning: exported method VolumeClient.ActionSnapshotGet should have comment or be unexported (golint)
    • Line 345: warning: exported method VolumeClient.ActionSnapshotList should have comment or be unexported (golint)
    • Line 354: warning: exported method VolumeClient.ActionSnapshotPurge should have comment or be unexported (golint)
    • Line 363: warning: exported method VolumeClient.ActionSnapshotRevert should have comment or be unexported (golint)
    • Line 372: warning: exported method VolumeClient.ActionUpdateAccessMode should have comment or be unexported (golint)
    • longhorn-manager/client/generated_volume_recurring_job.go
    • Line 4: warning: exported const VOLUME_RECURRING_JOB_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type VolumeRecurringJob should have comment or be unexported (golint)
    • Line 15: warning: exported type VolumeRecurringJobCollection should have comment or be unexported (golint)
    • Line 21: warning: exported type VolumeRecurringJobClient should have comment or be unexported (golint)
    • Line 25: warning: exported type VolumeRecurringJobOperations should have comment or be unexported (golint)
    • Line 39: warning: exported method VolumeRecurringJobClient.Create should have comment or be unexported (golint)
    • Line 45: warning: exported method VolumeRecurringJobClient.Update should have comment or be unexported (golint)
    • Line 51: warning: exported method VolumeRecurringJobClient.List should have comment or be unexported (golint)
    • Line 58: warning: exported method VolumeRecurringJobCollection.Next should have comment or be unexported (golint)
    • Line 68: warning: exported method VolumeRecurringJobClient.ById should have comment or be unexported (golint)
    • Line 79: warning: exported method VolumeRecurringJobClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/app/daemon.go
    • Line 27: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 30: warning: exported const FlagEngineImage should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported function DaemonCmd 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 245: warning: exported method BackingImageManagerSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 255: warning: exported method BackingImageManagerStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 265: warning: exported method BackingImageDataSourceSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 275: warning: exported method BackingImageDataSourceStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 279: warning: exported method BackupTargetSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 284: warning: exported method BackupTargetStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 295: warning: exported method BackupVolumeSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 300: warning: exported method BackupVolumeStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 317: warning: exported method SnapshotBackupSpec.DeepCopyInto should have comment or be unexported (golint)
    • Line 328: warning: exported method SnapshotBackupStatus.DeepCopyInto should have comment or be unexported (golint)
    • Line 345: warning: exported method RecurringJobSpec.DeepCopyInto should have comment or be unexported (golint)
    • longhorn-manager/client/generated_backup_target.go
    • Line 4: warning: exported const BACKUP_TARGET_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type BackupTarget should have comment or be unexported (golint)
    • Line 21: warning: exported type BackupTargetCollection should have comment or be unexported (golint)
    • Line 27: warning: exported type BackupTargetClient should have comment or be unexported (golint)
    • Line 31: warning: exported type BackupTargetOperations should have comment or be unexported (golint)
    • Line 45: warning: exported method BackupTargetClient.Create should have comment or be unexported (golint)
    • Line 51: warning: exported method BackupTargetClient.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method BackupTargetClient.List should have comment or be unexported (golint)
    • Line 64: warning: exported method BackupTargetCollection.Next should have comment or be unexported (golint)
    • Line 74: warning: exported method BackupTargetClient.ById should have comment or be unexported (golint)
    • Line 85: warning: exported method BackupTargetClient.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_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_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/controller/engine_image_controller.go
    • Line 41: warning: exported var ExpiredEngineImageTimeout should have comment or be unexported (golint)
    • Line 44: warning: exported type EngineImageController should have comment or be unexported (golint)
    • Line 68: warning: exported function NewEngineImageController should have comment or be unexported (golint)
    • Line 125: warning: exported method EngineImageController.Run should have comment or be unexported (golint)
    • Line 677: warning: exported method EngineImageController.ResolveRefAndEnqueue 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/app/driver.go
    • Line 29: warning: exported const EnvKubeletRootDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: exported function DeployDriverCmd should have comment or be unexported (golint)
    • Line 317: warning: exported type DaemonSetOps should have comment or be unexported (golint)
    • Line 332: warning: exported method DaemonSetOps.Get should have comment or be unexported (golint)
    • Line 343: warning: exported method DaemonSetOps.Create should have comment or be unexported (golint)
    • Line 347: warning: exported method DaemonSetOps.Delete should have comment or be unexported (golint)
    • longhorn-manager/manager/volume.go
    • Line 28: warning: exported type VolumeManager should have comment or be unexported (golint)
    • Line 35: warning: exported function NewVolumeManager should have comment or be unexported (golint)
    • Line 43: warning: exported method VolumeManager.GetCurrentNodeID should have comment or be unexported (golint)
    • Line 47: warning: exported method VolumeManager.Node2APIAddress should have comment or be unexported (golint)
    • Line 59: warning: exported method VolumeManager.List should have comment or be unexported (golint)
    • Line 84: warning: exported method VolumeManager.ListSorted should have comment or be unexported (golint)
    • Line 101: warning: exported method VolumeManager.Get should have comment or be unexported (golint)
    • Line 105: warning: exported method VolumeManager.GetEngines should have comment or be unexported (golint)
    • Line 109: warning: exported method VolumeManager.GetEnginesSorted should have comment or be unexported (golint)
    • Line 126: warning: exported method VolumeManager.GetReplicas should have comment or be unexported (golint)
    • Line 130: warning: exported method VolumeManager.GetReplicasSorted should have comment or be unexported (golint)
    • Line 155: warning: exported method VolumeManager.Create should have comment or be unexported (golint)
    • Line 353: warning: exported method VolumeManager.Delete should have comment or be unexported (golint)
    • Line 361: warning: exported method VolumeManager.Attach should have comment or be unexported (golint)
    • Line 532: warning: exported method VolumeManager.Salvage should have comment or be unexported (golint)
    • Line 598: warning: exported method VolumeManager.Activate should have comment or be unexported (golint)
    • Line 654: warning: exported method VolumeManager.Expand should have comment or be unexported (golint)
    • Line 761: warning: exported method VolumeManager.CancelExpansion should have comment or be unexported (golint)
    • Line 806: warning: exported method VolumeManager.AddVolumeRecurringJob should have comment or be unexported (golint)
    • Line 837: warning: exported method VolumeManager.ListVolumeRecurringJob should have comment or be unexported (golint)
    • Line 873: warning: exported method VolumeManager.DeleteVolumeRecurringJob should have comment or be unexported (golint)
    • Line 900: warning: exported method VolumeManager.DeleteReplica should have comment or be unexported (golint)
    • Line 928: warning: exported method VolumeManager.GetManagerNodeIPMap should have comment or be unexported (golint)
    • Line 944: warning: exported method VolumeManager.EngineUpgrade should have comment or be unexported (golint)
    • Line 1022: warning: exported method VolumeManager.UpdateReplicaCount should have comment or be unexported (golint)
    • Line 1057: warning: exported method VolumeManager.UpdateReplicaAutoBalance should have comment or be unexported (golint)
    • Line 1087: warning: exported method VolumeManager.UpdateDataLocality should have comment or be unexported (golint)
    • Line 1117: warning: exported method VolumeManager.UpdateAccessMode should have comment or be unexported (golint)
    • longhorn-manager/api/recurringjob.go
    • Line 17: warning: exported method Server.RecurringJobList should have comment or be unexported (golint)
    • Line 36: warning: exported method Server.RecurringJobGet should have comment or be unexported (golint)
    • Line 49: warning: exported method Server.RecurringJobCreate should have comment or be unexported (golint)
    • Line 77: warning: exported method Server.RecurringJobUpdate should have comment or be unexported (golint)
    • Line 114: warning: exported method Server.RecurringJobDelete 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 176: warning: exported method Server.VolumeDelete should have comment or be unexported (golint)
    • Line 186: warning: exported method Server.VolumeAttach should have comment or be unexported (golint)
    • Line 209: warning: exported method Server.VolumeDetach should have comment or be unexported (golint)
    • Line 234: warning: exported method Server.VolumeSalvage should have comment or be unexported (golint)
    • Line 258: warning: exported method Server.VolumeRecurringAdd should have comment or be unexported (golint)
    • Line 281: warning: exported method Server.VolumeRecurringList should have comment or be unexported (golint)
    • Line 296: warning: exported method Server.VolumeRecurringDelete should have comment or be unexported (golint)
    • Line 319: warning: exported method Server.VolumeUpdateReplicaCount should have comment or be unexported (golint)
    • Line 342: warning: exported method Server.VolumeUpdateReplicaAutoBalance should have comment or be unexported (golint)
    • Line 365: warning: exported method Server.VolumeUpdateDataLocality should have comment or be unexported (golint)
    • Line 387: warning: exported method Server.VolumeUpdateAccessMode should have comment or be unexported (golint)
    • Line 409: warning: exported method Server.VolumeActivate should have comment or be unexported (golint)
    • Line 433: warning: exported method Server.VolumeExpand should have comment or be unexported (golint)
    • Line 470: warning: exported method Server.VolumeCancelExpansion should have comment or be unexported (golint)
    • Line 487: warning: exported method Server.PVCreate should have comment or be unexported (golint)
    • Line 514: warning: exported method Server.PVCCreate should have comment or be unexported (golint)
    • Line 541: warning: exported method Server.ReplicaRemove should have comment or be unexported (golint)
    • Line 558: warning: exported method Server.EngineUpgrade 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 25: warning: exported type RecurringJobCollection should have comment or be unexported (golint)
    • Line 31: warning: exported type RecurringJobClient should have comment or be unexported (golint)
    • Line 35: warning: exported type RecurringJobOperations should have comment or be unexported (golint)
    • Line 49: warning: exported method RecurringJobClient.Create should have comment or be unexported (golint)
    • Line 55: warning: exported method RecurringJobClient.Update should have comment or be unexported (golint)
    • Line 61: warning: exported method RecurringJobClient.List should have comment or be unexported (golint)
    • Line 68: warning: exported method RecurringJobCollection.Next should have comment or be unexported (golint)
    • Line 78: warning: exported method RecurringJobClient.ById should have comment or be unexported (golint)
    • Line 89: warning: exported method RecurringJobClient.Delete 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/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/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 219: warning: exported function ParseResourceRequirement should have comment or be unexported (golint)
    • Line 234: warning: exported function GetInstanceManagerCPURequirement should have comment or be unexported (golint)
    • Line 311: warning: exported function IsSameGuaranteedCPURequirement 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.Expand should have comment or be unexported (golint)
    • Line 198: warning: exported method EngineSimulator.BackupRestore should have comment or be unexported (golint)
    • Line 202: warning: exported method EngineSimulator.SnapshotClone 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.SnapshotCloneStatus should have comment or be unexported (golint)
    • Line 214: warning: exported method EngineSimulator.ReplicaRebuildStatus should have comment or be unexported (golint)
    • Line 218: warning: exported method EngineSimulator.FrontendStart should have comment or be unexported (golint)
    • Line 221: warning: exported method EngineSimulator.FrontendShutdown should have comment or be unexported (golint)
    • Line 225: warning: exported method EngineSimulator.ReplicaRebuildVerify 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/manager/backingimage.go
    • Line 21: warning: exported method VolumeManager.ListBackingImages should have comment or be unexported (golint)
    • Line 25: warning: exported method VolumeManager.ListBackingImagesSorted should have comment or be unexported (golint)
    • Line 42: warning: exported method VolumeManager.GetBackingImage should have comment or be unexported (golint)
    • Line 46: warning: exported method VolumeManager.ListBackingImageDataSources should have comment or be unexported (golint)
    • Line 50: warning: exported method VolumeManager.GetBackingImageDataSource should have comment or be unexported (golint)
    • Line 54: warning: exported method VolumeManager.GetBackingImageDataSourcePod should have comment or be unexported (golint)
    • Line 65: warning: exported method VolumeManager.CreateBackingImage should have comment or be unexported (golint)
    • Line 135: warning: exported method VolumeManager.DeleteBackingImage should have comment or be unexported (golint)
    • Line 150: warning: exported method VolumeManager.CleanUpBackingImageDiskFiles 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/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)
    • Line 951: warning: exported function BackingImageDiskFileCleanup 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/client/generated_update_replica_auto_balance_input.go
    • Line 4: warning: exported const UPDATE_REPLICA_AUTO_BALANCE_INPUT_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type UpdateReplicaAutoBalanceInput should have comment or be unexported (golint)
    • Line 13: warning: exported type UpdateReplicaAutoBalanceInputCollection should have comment or be unexported (golint)
    • Line 19: warning: exported type UpdateReplicaAutoBalanceInputClient should have comment or be unexported (golint)
    • Line 23: warning: exported type UpdateReplicaAutoBalanceInputOperations should have comment or be unexported (golint)
    • Line 37: warning: exported method UpdateReplicaAutoBalanceInputClient.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method UpdateReplicaAutoBalanceInputClient.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method UpdateReplicaAutoBalanceInputClient.List should have comment or be unexported (golint)
    • Line 56: warning: exported method UpdateReplicaAutoBalanceInputCollection.Next should have comment or be unexported (golint)
    • Line 66: warning: exported method UpdateReplicaAutoBalanceInputClient.ById should have comment or be unexported (golint)
    • Line 77: warning: exported method UpdateReplicaAutoBalanceInputClient.Delete 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)
    • Line 191: warning: exported type BackingImageDataSource should have comment or be unexported (golint)
    • Line 200: warning: exported type BackingImageDataSourceList should have comment or be unexported (golint)
    • Line 209: warning: exported type BackupTarget should have comment or be unexported (golint)
    • Line 218: warning: exported type BackupTargetList should have comment or be unexported (golint)
    • Line 227: warning: exported type BackupVolume should have comment or be unexported (golint)
    • Line 236: warning: exported type BackupVolumeList should have comment or be unexported (golint)
    • Line 245: warning: exported type Backup should have comment or be unexported (golint)
    • Line 254: warning: exported type BackupList should have comment or be unexported (golint)
    • Line 263: warning: exported type RecurringJob should have comment or be unexported (golint)
    • Line 272: warning: exported type RecurringJobList 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)
    • Line 94: warning: exported method Engine.SnapshotClone should have comment or be unexported (golint)
    • Line 103: warning: exported method Engine.SnapshotCloneStatus should have comment or be unexported (golint)
    • longhorn-manager/app/migrate.go
    • Line 25: warning: exported const FlagAll should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function MigrateForPre070VolumesCmd should have comment or be unexported (golint)
    • longhorn-manager/app/post_upgrade.go
    • Line 20: warning: exported const RetryCounts should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported function PostUpgradeCmd 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/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_clone_status.go
    • Line 4: warning: exported const CLONE_STATUS_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: exported type CloneStatus should have comment or be unexported (golint)
    • Line 17: warning: exported type CloneStatusCollection should have comment or be unexported (golint)
    • Line 23: warning: exported type CloneStatusClient should have comment or be unexported (golint)
    • Line 27: warning: exported type CloneStatusOperations should have comment or be unexported (golint)
    • Line 41: warning: exported method CloneStatusClient.Create should have comment or be unexported (golint)
    • Line 47: warning: exported method CloneStatusClient.Update should have comment or be unexported (golint)
    • Line 53: warning: exported method CloneStatusClient.List should have comment or be unexported (golint)
    • Line 60: warning: exported method CloneStatusCollection.Next should have comment or be unexported (golint)
    • Line 70: warning: exported method CloneStatusClient.ById should have comment or be unexported (golint)
    • Line 81: warning: exported method CloneStatusClient.Delete should have comment or be unexported (golint)
    • longhorn-manager/engineapi/backing_image_data_source.go
    • Line 11: warning: exported const BackingImageDataSourceDefaultPort should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type BackingImageDataSourceInfo should have comment or be unexported (golint)
    • Line 28: warning: exported type BackingImageDataSourceClient should have comment or be unexported (golint)
    • Line 32: warning: exported function NewBackingImageDataSourceClient should have comment or be unexported (golint)
    • Line 59: warning: exported method BackingImageDataSourceClient.Get should have comment or be unexported (golint)
    • Line 67: warning: exported function GetBackingImageDataSourceFileName 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_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 27: warning: exported type BackingImageCollection should have comment or be unexported (golint)
    • Line 33: warning: exported type BackingImageClient should have comment or be unexported (golint)
    • Line 37: warning: exported type BackingImageOperations should have comment or be unexported (golint)
    • Line 53: warning: exported method BackingImageClient.Create should have comment or be unexported (golint)
    • Line 59: warning: exported method BackingImageClient.Update should have comment or be unexported (golint)
    • Line 65: warning: exported method BackingImageClient.List should have comment or be unexported (golint)
    • Line 72: warning: exported method BackingImageCollection.Next should have comment or be unexported (golint)
    • Line 82: warning: exported method BackingImageClient.ById should have comment or be unexported (golint)
    • Line 93: warning: exported method BackingImageClient.Delete should have comment or be unexported (golint)
    • Line 97: warning: exported method BackingImageClient.ActionBackingImageCleanup 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_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/controller/backing_image_data_source_controller.go
    • Line 42: warning: exported const BackingImageDataSourcePodContainerName should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported type BackingImageDataSourceController should have comment or be unexported (golint)
    • Line 69: warning: exported type BackingImageDataSourceMonitor should have comment or be unexported (golint)
    • Line 81: warning: exported function NewBackingImageDataSourceController should have comment or be unexported (golint)
    • Line 154: warning: exported method BackingImageDataSourceController.Run 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 86: warning: exported var SettingNameList should have comment or be unexported (golint)
    • Line 133: warning: exported type SettingCategory should have comment or be unexported (golint)
    • Line 136: warning: exported const SettingCategoryGeneral should have comment (or a comment on this block) or be unexported (golint)
    • Line 142: warning: exported type SettingDefinition should have comment or be unexported (golint)
    • Line 154: warning: exported var SettingDefinitions should have comment or be unexported (golint)
    • Line 715: warning: exported type VolumeAttachmentRecoveryPolicy should have comment or be unexported (golint)
    • Line 718: warning: exported const VolumeAttachmentRecoveryPolicyNever should have comment (or a comment on this block) or be unexported (golint)
    • Line 723: warning: exported type NodeDownPodDeletionPolicy should have comment or be unexported (golint)
    • Line 726: warning: exported const NodeDownPodDeletionPolicyDoNothing should have comment (or a comment on this block) or be unexported (golint)
    • Line 732: warning: exported type SystemManagedPodsImagePullPolicy should have comment or be unexported (golint)
    • Line 735: warning: exported const SystemManagedPodsImagePullPolicyNever should have comment (or a comment on this block) or be unexported (golint)
    • Line 740: warning: exported function ValidateInitSetting should have comment or be unexported (golint)
    • Line 883: warning: exported function GetCustomizedDefaultSettings should have comment or be unexported (golint)
    • Line 946: warning: exported function OverwriteBuiltInSettingsWithCustomizedValues should have comment or be unexported (golint)
    • Line 969: warning: exported function ValidateAndUnmarshalToleration should have comment or be unexported (golint)
    • Line 1001: warning: exported function UnmarshalTolerations should have comment or be unexported (golint)
    • Line 1028: warning: exported function UnmarshalNodeSelector should have comment or be unexported (golint)
    • longhorn-manager/manager/engine.go
    • Line 21: warning: exported const BackupStatusQueryInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported method VolumeManager.ListSnapshots should have comment or be unexported (golint)
    • Line 35: warning: exported method VolumeManager.GetSnapshot should have comment or be unexported (golint)
    • Line 53: warning: exported method VolumeManager.CreateSnapshot should have comment or be unexported (golint)
    • Line 87: warning: exported method VolumeManager.DeleteSnapshot should have comment or be unexported (golint)
    • Line 107: warning: exported method VolumeManager.RevertSnapshot should have comment or be unexported (golint)
    • Line 134: warning: exported method VolumeManager.PurgeSnapshot should have comment or be unexported (golint)
    • Line 155: warning: exported method VolumeManager.BackupSnapshot should have comment or be unexported (golint)
    • Line 188: warning: exported method VolumeManager.GetEngineClient should have comment or be unexported (golint)
    • Line 226: warning: exported method VolumeManager.ListBackupTargetsSorted should have comment or be unexported (golint)
    • Line 242: warning: exported method VolumeManager.ListBackupVolumes should have comment or be unexported (golint)
    • Line 246: warning: exported method VolumeManager.ListBackupVolumesSorted should have comment or be unexported (golint)
    • Line 262: warning: exported method VolumeManager.GetBackupVolume should have comment or be unexported (golint)
    • Line 277: warning: exported method VolumeManager.DeleteBackupVolume should have comment or be unexported (golint)
    • Line 281: warning: exported method VolumeManager.ListAllBackupsSorted should have comment or be unexported (golint)
    • Line 297: warning: exported method VolumeManager.ListBackupsForVolume should have comment or be unexported (golint)
    • Line 301: warning: exported method VolumeManager.ListBackupsForVolumeSorted should have comment or be unexported (golint)
    • Line 317: warning: exported method VolumeManager.GetBackup should have comment or be unexported (golint)
    • Line 321: warning: exported method VolumeManager.DeleteBackup 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 70: warning: exported type BackupStoreTimer should have comment or be unexported (golint)
    • Line 79: warning: exported type Version should have comment or be unexported (golint)
    • Line 85: warning: exported type CheckUpgradeRequest should have comment or be unexported (golint)
    • Line 90: warning: exported type CheckUpgradeResponse should have comment or be unexported (golint)
    • Line 94: warning: exported function NewSettingController should have comment or be unexported (golint)
    • Line 146: warning: exported method SettingController.Run should have comment or be unexported (golint)
    • Line 666: warning: exported method BackupStoreTimer.Start should have comment or be unexported (golint)
    • Line 693: warning: exported method BackupStoreTimer.Stop should have comment or be unexported (golint)
    • Line 750: warning: exported method SettingController.CheckLatestLonghornVersion 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 73: warning: exported method BackingImageManagerClient.Fetch should have comment or be unexported (golint)
    • Line 84: warning: exported method BackingImageManagerClient.Sync should have comment or be unexported (golint)
    • Line 95: warning: exported method BackingImageManagerClient.Delete should have comment or be unexported (golint)
    • Line 102: warning: exported method BackingImageManagerClient.Get should have comment or be unexported (golint)
    • Line 113: warning: exported method BackingImageManagerClient.List should have comment or be unexported (golint)
    • Line 128: warning: exported method BackingImageManagerClient.Watch should have comment or be unexported (golint)
    • Line 135: warning: exported method BackingImageManagerClient.VersionGet 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/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/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/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/monitoring/instance_manager_collector.go
    • Line 19: warning: exported type InstanceManagerCollector should have comment or be unexported (golint)
    • Line 31: warning: exported function NewInstanceManagerCollector should have comment or be unexported (golint)
    • Line 87: warning: exported method InstanceManagerCollector.Describe should have comment or be unexported (golint)
    • Line 94: warning: exported method InstanceManagerCollector.Collect should have comment or be unexported (golint)

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/backing_image_controller.go
    • Line 350: warning: cyclomatic complexity 57 of function (*BackingImageController).handleBackingImageDataSource() is high (> 15) (gocyclo)
    • Line 174: warning: cyclomatic complexity 27 of function (*BackingImageController).syncBackingImage() is high (> 15) (gocyclo)
    • Line 604: warning: cyclomatic complexity 22 of function (*BackingImageController).syncBackingImageFileInfo() is high (> 15) (gocyclo)
    • Line 290: warning: cyclomatic complexity 16 of function (*BackingImageController).cleanupBackingImageManagers() is high (> 15) (gocyclo)
    • Line 535: warning: cyclomatic complexity 16 of function (*BackingImageController).handleBackingImageManagers() is high (> 15) (gocyclo)
    • longhorn-manager/controller/backing_image_data_source_controller.go
    • Line 362: warning: cyclomatic complexity 33 of function (*BackingImageDataSourceController).syncBackingImageDataSourcePod() is high (> 15) (gocyclo)
    • Line 220: warning: cyclomatic complexity 26 of function (*BackingImageDataSourceController).syncBackingImageDataSource() is high (> 15) (gocyclo)
    • Line 635: warning: cyclomatic complexity 20 of function (*BackingImageDataSourceController).prepareRunningParameters() is high (> 15) (gocyclo)
    • longhorn-manager/controller/share_manager_controller.go
    • Line 435: warning: cyclomatic complexity 26 of function (*ShareManagerController).syncShareManagerVolume() is high (> 15) (gocyclo)
    • Line 553: warning: cyclomatic complexity 22 of function (*ShareManagerController).syncShareManagerPod() is high (> 15) (gocyclo)
    • Line 633: warning: cyclomatic complexity 17 of function (*ShareManagerController).createShareManagerPod() is high (> 15) (gocyclo)
    • Line 263: warning: cyclomatic complexity 17 of function (*ShareManagerController).syncShareManager() is high (> 15) (gocyclo)
    • longhorn-manager/controller/setting_controller.go
    • Line 589: warning: cyclomatic complexity 24 of function (*SettingController).updateNodeSelector() is high (> 15) (gocyclo)
    • Line 365: warning: cyclomatic complexity 20 of function (*SettingController).updateTaintToleration() is high (> 15) (gocyclo)
    • Line 261: warning: cyclomatic complexity 17 of function (*SettingController).syncBackupTarget() is high (> 15) (gocyclo)
    • Line 501: warning: cyclomatic complexity 16 of function (*SettingController).updatePriorityClass() is high (> 15) (gocyclo)
    • Line 199: warning: cyclomatic complexity 16 of function (*SettingController).syncSetting() is high (> 15) (gocyclo)
    • longhorn-manager/controller/node_controller.go
    • Line 587: warning: cyclomatic complexity 37 of function (*NodeController).syncDiskStatus() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 36 of function (*NodeController).syncNode() is high (> 15) (gocyclo)
    • Line 951: warning: cyclomatic complexity 24 of function BackingImageDiskFileCleanup() is high (> 15) (gocyclo)
    • Line 827: warning: cyclomatic complexity 21 of function (*NodeController).syncInstanceManagers() is high (> 15) (gocyclo)
    • longhorn-manager/manager/backingimage.go
    • Line 150: warning: cyclomatic complexity 29 of function (*VolumeManager).CleanUpBackingImageDiskFiles() is high (> 15) (gocyclo)
    • Line 65: warning: cyclomatic complexity 18 of function (*VolumeManager).CreateBackingImage() is high (> 15) (gocyclo)
    • longhorn-manager/controller/engine_controller.go
    • Line 704: warning: cyclomatic complexity 51 of function (*EngineMonitor).refresh() is high (> 15) (gocyclo)
    • Line 205: warning: cyclomatic complexity 32 of function (*EngineController).syncEngine() is high (> 15) (gocyclo)
    • Line 952: warning: cyclomatic complexity 19 of function syncWithRestoreStatus() is high (> 15) (gocyclo)
    • longhorn-manager/manager/volume.go
    • Line 155: warning: cyclomatic complexity 39 of function (*VolumeManager).Create() is high (> 15) (gocyclo)
    • Line 361: warning: cyclomatic complexity 27 of function (*VolumeManager).Attach() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 19 of function (*VolumeManager).Detach() is high (> 15) (gocyclo)
    • Line 944: warning: cyclomatic complexity 18 of function (*VolumeManager).EngineUpgrade() is high (> 15) (gocyclo)
    • Line 532: warning: cyclomatic complexity 17 of function (*VolumeManager).Salvage() is high (> 15) (gocyclo)
    • longhorn-manager/csi/node_server.go
    • Line 250: warning: cyclomatic complexity 36 of function (*NodeServer).NodeStageVolume() is high (> 15) (gocyclo)
    • Line 56: warning: cyclomatic complexity 23 of function (*NodeServer).NodePublishVolume() is high (> 15) (gocyclo)
    • longhorn-manager/controller/volume_controller.go
    • Line 921: warning: cyclomatic complexity 148 of function (*VolumeController).ReconcileVolumeState() is high (> 15) (gocyclo)
    • Line 242: warning: cyclomatic complexity 61 of function (*VolumeController).syncVolume() is high (> 15) (gocyclo)
    • Line 495: warning: cyclomatic complexity 55 of function (*VolumeController).ReconcileEngineReplicaState() is high (> 15) (gocyclo)
    • Line 2155: warning: cyclomatic complexity 36 of function (*VolumeController).upgradeEngineForVolume() is high (> 15) (gocyclo)
    • Line 2908: warning: cyclomatic complexity 34 of function (*VolumeController).processMigration() is high (> 15) (gocyclo)
    • Line 2548: warning: cyclomatic complexity 33 of function (*VolumeController).checkForAutoDetachment() is high (> 15) (gocyclo)
    • Line 1763: warning: cyclomatic complexity 20 of function (*VolumeController).getReplicaCountForAutoBalanceZone() is high (> 15) (gocyclo)
    • Line 1952: warning: cyclomatic complexity 20 of function (*VolumeController).getReplenishReplicasCount() is high (> 15) (gocyclo)
    • Line 1575: warning: cyclomatic complexity 19 of function (*VolumeController).replenishReplicas() is high (> 15) (gocyclo)
    • Line 1870: warning: cyclomatic complexity 16 of function (*VolumeController).getReplicaCountForAutoBalanceNode() is high (> 15) (gocyclo)
    • Line 3148: warning: cyclomatic complexity 16 of function (*VolumeController).ReconcileShareManagerState() is high (> 15) (gocyclo)
    • Line 2501: warning: cyclomatic complexity 16 of function (*VolumeController).checkForAutoAttachment() is high (> 15) (gocyclo)
    • Line 719: warning: cyclomatic complexity 16 of function (*VolumeController).cleanupCorruptedOrStaleReplicas() is high (> 15) (gocyclo)
    • longhorn-manager/controller/backing_image_manager_controller.go
    • Line 410: warning: cyclomatic complexity 41 of function (*BackingImageManagerController).syncBackingImageManagerPod() is high (> 15) (gocyclo)
    • Line 610: warning: cyclomatic complexity 27 of function (*BackingImageManagerController).prepareBackingImageFiles() is high (> 15) (gocyclo)
    • Line 235: warning: cyclomatic complexity 27 of function (*BackingImageManagerController).syncBackingImageManager() is high (> 15) (gocyclo)
    • longhorn-manager/csi/controller_server.go
    • Line 60: warning: cyclomatic complexity 32 of function (*ControllerServer).CreateVolume() is high (> 15) (gocyclo)
    • Line 533: warning: cyclomatic complexity 22 of function (*ControllerServer).CreateSnapshot() is high (> 15) (gocyclo)
    • Line 243: warning: cyclomatic complexity 20 of function (*ControllerServer).checkAndPrepareBackingImage() is high (> 15) (gocyclo)
    • Line 365: warning: cyclomatic complexity 17 of function (*ControllerServer).ControllerPublishVolume() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!