Preparing report...

Report for github.com/joyent/triton-go

A    Great!    Found 107 issues across 160 files

Tweet

gofmt100%

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

No problems detected. Good job!


go_vet100%

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

No problems detected. Good job!


gocyclo92%

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


golint37%

Golint is a linter for Go source code.

    • triton-go/authentication/ssh_agent_signer.go
    • Line 27: warning: exported var ErrUnsetEnvVar should have comment or be unexported (golint)
    • Line 30: warning: exported type SSHAgentSigner should have comment or be unexported (golint)
    • Line 42: warning: exported type SSHAgentSignerInput should have comment or be unexported (golint)
    • Line 48: warning: exported function NewSSHAgentSigner should have comment or be unexported (golint)
    • Line 90: warning: exported method SSHAgentSigner.MatchKey should have comment or be unexported (golint)
    • Line 122: warning: exported method SSHAgentSigner.Sign should have comment or be unexported (golint)
    • Line 162: warning: exported method SSHAgentSigner.SignRaw should have comment or be unexported (golint)
    • Line 192: warning: exported method SSHAgentSigner.KeyFingerprint should have comment or be unexported (golint)
    • Line 196: warning: exported method SSHAgentSigner.DefaultAlgorithm should have comment or be unexported (golint)
    • triton-go/client/client.go
    • Line 34: warning: exported var ErrDefaultAuth should have comment or be unexported (golint)
    • Line 196: warning: comment on exported method Client.DefaultAuth should be of the form "DefaultAuth ..." (golint)
    • Line 291: warning: exported type RequestInput should have comment or be unexported (golint)
    • Line 302: warning: exported method Client.ExecuteRequestURIParams should have comment or be unexported (golint)
    • Line 366: warning: exported method Client.ExecuteRequest should have comment or be unexported (golint)
    • Line 370: warning: exported method Client.ExecuteRequestRaw should have comment or be unexported (golint)
    • Line 440: warning: exported method Client.ExecuteRequestStorage should have comment or be unexported (golint)
    • Line 510: warning: exported type RequestNoEncodeInput should have comment or be unexported (golint)
    • Line 518: warning: exported method Client.ExecuteRequestNoEncode should have comment or be unexported (golint)
    • Line 577: warning: exported method Client.ExecuteRequestTSG should have comment or be unexported (golint)
    • triton-go/network/client.go
    • Line 18: warning: exported type NetworkClient should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method NetworkClient.SetHeader should be of the form "SetHeader ..." (golint)
    • triton-go/network/fabrics.go
    • Line 22: warning: exported type FabricsClient should have comment or be unexported (golint)
    • Line 26: warning: exported type FabricVLAN should have comment or be unexported (golint)
    • Line 32: warning: exported type ListVLANsInput should have comment or be unexported (golint)
    • Line 34: warning: exported method FabricsClient.ListVLANs should have comment or be unexported (golint)
    • Line 57: warning: exported type CreateVLANInput should have comment or be unexported (golint)
    • Line 63: warning: exported method FabricsClient.CreateVLAN should have comment or be unexported (golint)
    • Line 87: warning: exported type UpdateVLANInput should have comment or be unexported (golint)
    • Line 93: warning: exported method FabricsClient.UpdateVLAN should have comment or be unexported (golint)
    • Line 117: warning: exported type GetVLANInput should have comment or be unexported (golint)
    • Line 121: warning: exported method FabricsClient.GetVLAN should have comment or be unexported (golint)
    • Line 144: warning: exported type DeleteVLANInput should have comment or be unexported (golint)
    • Line 148: warning: exported method FabricsClient.DeleteVLAN should have comment or be unexported (golint)
    • Line 165: warning: exported type ListFabricsInput should have comment or be unexported (golint)
    • Line 169: warning: exported method FabricsClient.List should have comment or be unexported (golint)
    • Line 192: warning: exported type CreateFabricInput should have comment or be unexported (golint)
    • Line 205: warning: exported method FabricsClient.Create should have comment or be unexported (golint)
    • Line 229: warning: exported type GetFabricInput should have comment or be unexported (golint)
    • Line 234: warning: exported method FabricsClient.Get should have comment or be unexported (golint)
    • Line 257: warning: exported type DeleteFabricInput should have comment or be unexported (golint)
    • Line 262: warning: exported method FabricsClient.Delete should have comment or be unexported (golint)
    • triton-go/compute/services.go
    • Line 22: warning: exported type ServicesClient should have comment or be unexported (golint)
    • Line 26: warning: exported type Service should have comment or be unexported (golint)
    • Line 31: warning: exported type ListServicesInput should have comment or be unexported (golint)
    • Line 33: warning: exported method ServicesClient.List should have comment or be unexported (golint)
    • triton-go/compute/images.go
    • Line 23: warning: exported type ImagesClient should have comment or be unexported (golint)
    • Line 27: warning: exported type ImageFile should have comment or be unexported (golint)
    • Line 33: warning: exported type Image should have comment or be unexported (golint)
    • Line 52: warning: exported type ListImagesInput should have comment or be unexported (golint)
    • Line 62: warning: exported method ImagesClient.List should have comment or be unexported (golint)
    • Line 110: warning: exported type GetImageInput should have comment or be unexported (golint)
    • Line 114: warning: exported method ImagesClient.Get should have comment or be unexported (golint)
    • Line 137: warning: exported type DeleteImageInput should have comment or be unexported (golint)
    • Line 141: warning: exported method ImagesClient.Delete should have comment or be unexported (golint)
    • Line 158: warning: exported type ExportImageInput should have comment or be unexported (golint)
    • Line 163: warning: exported type MantaLocation should have comment or be unexported (golint)
    • Line 169: warning: exported method ImagesClient.Export should have comment or be unexported (golint)
    • Line 196: warning: exported type CreateImageFromMachineInput should have comment or be unexported (golint)
    • Line 207: warning: exported method ImagesClient.CreateFromMachine should have comment or be unexported (golint)
    • Line 231: warning: exported type UpdateImageInput should have comment or be unexported (golint)
    • Line 242: warning: exported method ImagesClient.Update should have comment or be unexported (golint)
    • triton-go/account/account.go
    • Line 22: warning: exported type Account should have comment or be unexported (golint)
    • Line 40: warning: exported type GetInput should have comment or be unexported (golint)
    • Line 42: warning: exported method AccountClient.Get should have comment or be unexported (golint)
    • Line 65: warning: exported type UpdateInput should have comment or be unexported (golint)
    • Line 79: warning: comment on exported method AccountClient.Update should be of the form "Update ..." (golint)
    • triton-go/account/keys.go
    • Line 21: warning: exported type KeysClient should have comment or be unexported (golint)
    • Line 37: warning: exported type ListKeysInput should have comment or be unexported (golint)
    • Line 39: warning: comment on exported method KeysClient.List should be of the form "List ..." (golint)
    • Line 64: warning: exported type GetKeyInput should have comment or be unexported (golint)
    • Line 68: warning: exported method KeysClient.Get should have comment or be unexported (golint)
    • Line 91: warning: exported type DeleteKeyInput should have comment or be unexported (golint)
    • Line 95: warning: exported method KeysClient.Delete should have comment or be unexported (golint)
    • Line 122: warning: comment on exported method KeysClient.Create should be of the form "Create ..." (golint)
    • triton-go/services/templates.go
    • Line 25: warning: exported type TemplatesClient should have comment or be unexported (golint)
    • Line 29: warning: exported type InstanceTemplate should have comment or be unexported (golint)
    • Line 42: warning: exported type ListTemplatesInput should have comment or be unexported (golint)
    • Line 44: warning: exported method TemplatesClient.List should have comment or be unexported (golint)
    • Line 66: warning: exported type GetTemplateInput should have comment or be unexported (golint)
    • Line 70: warning: exported method GetTemplateInput.Validate should have comment or be unexported (golint)
    • Line 78: warning: exported method TemplatesClient.Get should have comment or be unexported (golint)
    • Line 104: warning: exported type CreateTemplateInput should have comment or be unexported (golint)
    • Line 151: warning: exported method TemplatesClient.Create should have comment or be unexported (golint)
    • Line 174: warning: exported type DeleteTemplateInput should have comment or be unexported (golint)
    • Line 178: warning: exported method DeleteTemplateInput.Validate should have comment or be unexported (golint)
    • Line 186: warning: exported method TemplatesClient.Delete should have comment or be unexported (golint)
    • triton-go/authentication/test_signer.go
    • Line 21: warning: exported method TestSigner.DefaultAlgorithm should have comment or be unexported (golint)
    • Line 25: warning: exported method TestSigner.KeyFingerprint should have comment or be unexported (golint)
    • Line 29: warning: exported method TestSigner.Sign should have comment or be unexported (golint)
    • Line 33: warning: exported method TestSigner.SignRaw should have comment or be unexported (golint)
    • triton-go/identity/policies.go
    • Line 22: warning: exported type PoliciesClient should have comment or be unexported (golint)
    • Line 26: warning: exported type Policy should have comment or be unexported (golint)
    • Line 33: warning: exported type ListPoliciesInput should have comment or be unexported (golint)
    • Line 35: warning: exported method PoliciesClient.List should have comment or be unexported (golint)
    • Line 58: warning: exported type GetPolicyInput should have comment or be unexported (golint)
    • Line 62: warning: exported method PoliciesClient.Get should have comment or be unexported (golint)
    • Line 85: warning: exported type DeletePolicyInput should have comment or be unexported (golint)
    • Line 89: warning: exported method PoliciesClient.Delete should have comment or be unexported (golint)
    • Line 115: warning: exported method PoliciesClient.Update should have comment or be unexported (golint)
    • Line 139: warning: exported type CreatePolicyInput should have comment or be unexported (golint)
    • Line 145: warning: exported method PoliciesClient.Create should have comment or be unexported (golint)
    • triton-go/compute/instances.go
    • Line 30: warning: exported type InstancesClient should have comment or be unexported (golint)
    • Line 35: warning: exported const CNSTagDisable should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type InstanceVolume should have comment or be unexported (golint)
    • Line 56: warning: exported type NetworkObject should have comment or be unexported (golint)
    • Line 61: warning: exported type Instance should have comment or be unexported (golint)
    • Line 94: warning: exported type NIC should have comment or be unexported (golint)
    • Line 104: warning: exported type GetInstanceInput should have comment or be unexported (golint)
    • Line 108: warning: exported method GetInstanceInput.Validate should have comment or be unexported (golint)
    • Line 116: warning: exported method InstancesClient.Count should have comment or be unexported (golint)
    • Line 148: warning: exported method InstancesClient.Get should have comment or be unexported (golint)
    • Line 190: warning: exported type ListInstancesInput should have comment or be unexported (golint)
    • Line 246: warning: exported method InstancesClient.List should have comment or be unexported (golint)
    • Line 280: warning: exported type CreateInstanceInput should have comment or be unexported (golint)
    • Line 399: warning: exported method InstancesClient.Create should have comment or be unexported (golint)
    • Line 428: warning: exported type DeleteInstanceInput should have comment or be unexported (golint)
    • Line 432: warning: exported method InstancesClient.Delete should have comment or be unexported (golint)
    • Line 455: warning: exported type DeleteTagsInput should have comment or be unexported (golint)
    • Line 459: warning: exported method InstancesClient.DeleteTags should have comment or be unexported (golint)
    • Line 482: warning: exported type DeleteTagInput should have comment or be unexported (golint)
    • Line 487: warning: exported method InstancesClient.DeleteTag should have comment or be unexported (golint)
    • Line 510: warning: exported type RenameInstanceInput should have comment or be unexported (golint)
    • Line 515: warning: exported method InstancesClient.Rename should have comment or be unexported (golint)
    • Line 538: warning: exported type ReplaceTagsInput should have comment or be unexported (golint)
    • Line 555: warning: exported method InstancesClient.ReplaceTags should have comment or be unexported (golint)
    • Line 573: warning: exported type AddTagsInput should have comment or be unexported (golint)
    • Line 578: warning: exported method InstancesClient.AddTags should have comment or be unexported (golint)
    • Line 596: warning: exported type GetTagInput should have comment or be unexported (golint)
    • Line 601: warning: exported method InstancesClient.GetTag should have comment or be unexported (golint)
    • Line 624: warning: exported type ListTagsInput should have comment or be unexported (golint)
    • Line 628: warning: exported method InstancesClient.ListTags should have comment or be unexported (golint)
    • Line 652: warning: exported type GetMetadataInput should have comment or be unexported (golint)
    • Line 685: warning: exported type ListMetadataInput should have comment or be unexported (golint)
    • Line 690: warning: exported method InstancesClient.ListMetadata should have comment or be unexported (golint)
    • Line 720: warning: exported type UpdateMetadataInput should have comment or be unexported (golint)
    • Line 725: warning: exported method InstancesClient.UpdateMetadata should have comment or be unexported (golint)
    • Line 749: warning: exported type DeleteMetadataInput should have comment or be unexported (golint)
    • Line 776: warning: exported type DeleteAllMetadataInput should have comment or be unexported (golint)
    • Line 798: warning: exported type ResizeInstanceInput should have comment or be unexported (golint)
    • Line 803: warning: exported method InstancesClient.Resize should have comment or be unexported (golint)
    • Line 826: warning: exported type EnableFirewallInput should have comment or be unexported (golint)
    • Line 830: warning: exported method InstancesClient.EnableFirewall should have comment or be unexported (golint)
    • Line 852: warning: exported type DisableFirewallInput should have comment or be unexported (golint)
    • Line 856: warning: exported method InstancesClient.DisableFirewall should have comment or be unexported (golint)
    • Line 878: warning: exported type ListNICsInput should have comment or be unexported (golint)
    • Line 882: warning: exported method InstancesClient.ListNICs should have comment or be unexported (golint)
    • Line 905: warning: exported type GetNICInput should have comment or be unexported (golint)
    • Line 910: warning: exported method InstancesClient.GetNIC should have comment or be unexported (golint)
    • Line 941: warning: exported type AddNICInput should have comment or be unexported (golint)
    • Line 1005: warning: exported type RemoveNICInput should have comment or be unexported (golint)
    • Line 1042: warning: exported type StopInstanceInput should have comment or be unexported (golint)
    • Line 1046: warning: exported method InstancesClient.Stop should have comment or be unexported (golint)
    • Line 1068: warning: exported type StartInstanceInput should have comment or be unexported (golint)
    • Line 1072: warning: exported method InstancesClient.Start should have comment or be unexported (golint)
    • Line 1094: warning: exported type RebootInstanceInput should have comment or be unexported (golint)
    • Line 1098: warning: exported method InstancesClient.Reboot should have comment or be unexported (golint)
    • Line 1120: warning: exported type EnableDeletionProtectionInput should have comment or be unexported (golint)
    • Line 1124: warning: exported method InstancesClient.EnableDeletionProtection should have comment or be unexported (golint)
    • Line 1146: warning: exported type DisableDeletionProtectionInput should have comment or be unexported (golint)
    • Line 1150: warning: exported method InstancesClient.DisableDeletionProtection should have comment or be unexported (golint)
    • triton-go/compute/snapshots.go
    • Line 22: warning: exported type SnapshotsClient should have comment or be unexported (golint)
    • Line 26: warning: exported type Snapshot should have comment or be unexported (golint)
    • Line 33: warning: exported type ListSnapshotsInput should have comment or be unexported (golint)
    • Line 37: warning: exported method SnapshotsClient.List should have comment or be unexported (golint)
    • Line 60: warning: exported type GetSnapshotInput should have comment or be unexported (golint)
    • Line 65: warning: exported method SnapshotsClient.Get should have comment or be unexported (golint)
    • Line 88: warning: exported type DeleteSnapshotInput should have comment or be unexported (golint)
    • Line 93: warning: exported method SnapshotsClient.Delete should have comment or be unexported (golint)
    • Line 110: warning: exported type StartMachineFromSnapshotInput should have comment or be unexported (golint)
    • Line 115: warning: exported method SnapshotsClient.StartMachine should have comment or be unexported (golint)
    • Line 132: warning: exported type CreateSnapshotInput should have comment or be unexported (golint)
    • Line 137: warning: exported method SnapshotsClient.Create should have comment or be unexported (golint)
    • triton-go/cmd/agent/compute/public.go
    • Line 25: warning: exported type AgentComputeClient should have comment or be unexported (golint)
    • Line 29: warning: exported function NewComputeClient should have comment or be unexported (golint)
    • Line 39: warning: exported method AgentComputeClient.GetPackagesList should have comment or be unexported (golint)
    • Line 75: warning: exported method AgentComputeClient.GetPackage should have comment or be unexported (golint)
    • Line 99: warning: exported method AgentComputeClient.GetImagesList should have comment or be unexported (golint)
    • Line 108: warning: exported method AgentComputeClient.GetDataCenterList should have comment or be unexported (golint)
    • Line 119: warning: exported method AgentComputeClient.GetServiceList should have comment or be unexported (golint)
    • Line 130: warning: exported method AgentComputeClient.DeleteInstance should have comment or be unexported (golint)
    • Line 163: warning: exported method AgentComputeClient.RebootInstance should have comment or be unexported (golint)
    • Line 196: warning: exported method AgentComputeClient.StartInstance should have comment or be unexported (golint)
    • Line 229: warning: exported method AgentComputeClient.StopInstance should have comment or be unexported (golint)
    • Line 262: warning: exported method AgentComputeClient.GetInstanceList should have comment or be unexported (golint)
    • Line 294: warning: exported method AgentComputeClient.CountInstanceList should have comment or be unexported (golint)
    • Line 326: warning: exported method AgentComputeClient.GetInstance should have comment or be unexported (golint)
    • Line 351: warning: exported method AgentComputeClient.CreateInstance should have comment or be unexported (golint)
    • Line 510: warning: exported method AgentComputeClient.FormatImageName should have comment or be unexported (golint)
    • triton-go/compute/client.go
    • Line 18: warning: exported type ComputeClient should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method ComputeClient.SetHeader should be of the form "SetHeader ..." (golint)
    • Line 62: warning: comment on exported method ComputeClient.Instances should be of the form "Instances ..." (golint)
    • Line 86: warning: comment on exported method ComputeClient.Volumes should be of the form "Volumes ..." (golint)
    • triton-go/cmd/agent/account/public.go
    • Line 22: warning: exported type AgentAccountClient should have comment or be unexported (golint)
    • Line 26: warning: exported function NewAccountClient should have comment or be unexported (golint)
    • Line 37: warning: exported method AgentAccountClient.Get should have comment or be unexported (golint)
    • Line 46: warning: exported method AgentAccountClient.UpdateAccount should have comment or be unexported (golint)
    • Line 114: warning: exported method AgentAccountClient.ListKeys should have comment or be unexported (golint)
    • Line 123: warning: exported method AgentAccountClient.CreateKey should have comment or be unexported (golint)
    • Line 141: warning: exported method AgentAccountClient.DeleteKey should have comment or be unexported (golint)
    • Line 181: warning: exported method AgentAccountClient.GetKey should have comment or be unexported (golint)
    • Line 212: warning: exported method AgentAccountClient.ListAccessKeys should have comment or be unexported (golint)
    • Line 221: warning: exported method AgentAccountClient.CreateAccessKey should have comment or be unexported (golint)
    • Line 232: warning: exported method AgentAccountClient.DeleteAccessKey should have comment or be unexported (golint)
    • Line 257: warning: exported method AgentAccountClient.GetAccessKey should have comment or be unexported (golint)
    • triton-go/testutils/mock_http.go
    • Line 19: warning: comment on exported type Responder should be of the form "Responder ..." (with optional leading article) (golint)
    • Line 25: warning: error var NoResponderFound should have name of the form ErrFoo (golint)
    • Line 79: warning: comment on exported function ActivateClient should be of the form "ActivateClient ..." (golint)
    • Line 86: warning: comment on exported function DeactivateClient should be of the form "DeactivateClient ..." (golint)
    • Line 102: warning: exported type MockClientInput should have comment or be unexported (golint)
    • triton-go/compute/volumes.go
    • Line 22: warning: exported type VolumesClient should have comment or be unexported (golint)
    • Line 26: warning: exported type Volume should have comment or be unexported (golint)
    • Line 39: warning: exported type ListVolumesInput should have comment or be unexported (golint)
    • Line 46: warning: exported method VolumesClient.List should have comment or be unexported (golint)
    • Line 85: warning: exported type CreateVolumeInput should have comment or be unexported (golint)
    • Line 119: warning: exported method VolumesClient.Create should have comment or be unexported (golint)
    • Line 144: warning: exported type DeleteVolumeInput should have comment or be unexported (golint)
    • Line 148: warning: exported method VolumesClient.Delete should have comment or be unexported (golint)
    • Line 171: warning: exported type GetVolumeInput should have comment or be unexported (golint)
    • Line 175: warning: exported method VolumesClient.Get should have comment or be unexported (golint)
    • Line 201: warning: exported type UpdateVolumeInput should have comment or be unexported (golint)
    • Line 206: warning: exported method VolumesClient.Update should have comment or be unexported (golint)
    • triton-go/storage/directory.go
    • Line 25: warning: exported type DirectoryClient should have comment or be unexported (golint)
    • Line 157: warning: context.Context should be the first parameter of a function (golint)
    • Line 179: warning: context.Context should be the first parameter of a function (golint)
    • Line 195: warning: context.Context should be the first parameter of a function (golint)
    • triton-go/storage/objects.go
    • Line 27: warning: exported type ObjectsClient should have comment or be unexported (golint)
    • Line 36: warning: exported method ObjectsClient.AbortMultipartUpload should have comment or be unexported (golint)
    • Line 52: warning: exported method ObjectsClient.CommitMultipartUpload should have comment or be unexported (golint)
    • Line 77: warning: exported method ObjectsClient.CreateMultipartUpload should have comment or be unexported (golint)
    • Line 81: warning: comment on exported type GetInfoInput should be of the form "GetInfoInput ..." (with optional leading article) (golint)
    • Line 87: warning: comment on exported type GetInfoOutput should be of the form "GetInfoOutput ..." (with optional leading article) (golint)
    • Line 234: warning: comment on exported method ObjectsClient.Delete should be of the form "Delete ..." (golint)
    • Line 264: warning: exported type GetMpuHeaders should have comment or be unexported (golint)
    • Line 269: warning: exported type GetMpuOutput should have comment or be unexported (golint)
    • Line 279: warning: exported method ObjectsClient.GetMultipartUpload should have comment or be unexported (golint)
    • Line 283: warning: exported type ListMpuPartsInput should have comment or be unexported (golint)
    • Line 287: warning: exported type ListMpuPart should have comment or be unexported (golint)
    • Line 293: warning: exported type ListMpuPartsOutput should have comment or be unexported (golint)
    • Line 297: warning: exported method ObjectsClient.ListMultipartUploadParts should have comment or be unexported (golint)
    • Line 308: warning: comment on exported method ObjectsClient.PutMetadata should be of the form "PutMetadata ..." (golint)
    • Line 360: warning: exported method ObjectsClient.Put should have comment or be unexported (golint)
    • Line 394: warning: exported method ObjectsClient.UploadPart should have comment or be unexported (golint)
    • Line 412: warning: context.Context should be the first parameter of a function (golint)
    • Line 460: warning: context.Context should be the first parameter of a function (golint)
    • Line 488: warning: context.Context should be the first parameter of a function (golint)
    • Line 507: warning: context.Context should be the first parameter of a function (golint)
    • Line 545: warning: context.Context should be the first parameter of a function (golint)
    • Line 599: warning: context.Context should be the first parameter of a function (golint)
    • Line 621: warning: context.Context should be the first parameter of a function (golint)
    • Line 659: warning: context.Context should be the first parameter of a function (golint)
    • Line 704: warning: context.Context should be the first parameter of a function (golint)
    • triton-go/cmd/config/config.go
    • Line 1: warning: package comment should be of the form "Package config ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 26: warning: exported type TritonClientConfig should have comment or be unexported (golint)
    • Line 80: warning: exported function NewTritonConfig should have comment or be unexported (golint)
    • Line 116: warning: exported function NewMantaConfig should have comment or be unexported (golint)
    • Line 175: warning: exported function GetTritonURL should have comment or be unexported (golint)
    • Line 184: warning: exported function GetTritonKeyMaterial should have comment or be unexported (golint)
    • Line 193: warning: exported function GetTritonAccount should have comment or be unexported (golint)
    • Line 202: warning: exported function GetTritonKeyID should have comment or be unexported (golint)
    • Line 211: warning: exported function GetMantaURL should have comment or be unexported (golint)
    • Line 220: warning: exported function GetMantaKeyMaterial should have comment or be unexported (golint)
    • Line 229: warning: exported function GetMantaAccount should have comment or be unexported (golint)
    • Line 238: warning: exported function GetMantaKeyID should have comment or be unexported (golint)
    • Line 247: warning: exported function GetPkgID should have comment or be unexported (golint)
    • Line 251: warning: exported function GetPkgName should have comment or be unexported (golint)
    • Line 255: warning: exported function GetPkgMemory should have comment or be unexported (golint)
    • Line 259: warning: exported function GetPkgDisk should have comment or be unexported (golint)
    • Line 263: warning: exported function GetPkgSwap should have comment or be unexported (golint)
    • Line 267: warning: exported function GetPkgVPCUs should have comment or be unexported (golint)
    • Line 271: warning: exported function GetImgID should have comment or be unexported (golint)
    • Line 275: warning: exported function GetImgName should have comment or be unexported (golint)
    • Line 279: warning: exported function GetMachineID should have comment or be unexported (golint)
    • Line 283: warning: exported function GetMachineName should have comment or be unexported (golint)
    • Line 287: warning: exported function GetMachineState should have comment or be unexported (golint)
    • Line 291: warning: exported function GetMachineBrand should have comment or be unexported (golint)
    • Line 295: warning: exported function GetMachineFirewall should have comment or be unexported (golint)
    • Line 299: warning: exported function GetMachineNetworks should have comment or be unexported (golint)
    • Line 312: warning: exported function GetMachineAffinityRules should have comment or be unexported (golint)
    • Line 325: warning: exported function GetMachineTags should have comment or be unexported (golint)
    • Line 340: warning: exported function GetSearchTags should have comment or be unexported (golint)
    • Line 355: warning: exported function GetMachineMetadata should have comment or be unexported (golint)
    • Line 370: warning: exported function GetMachineUserdata should have comment or be unexported (golint)
    • Line 374: warning: exported function GetAccountEmail should have comment or be unexported (golint)
    • Line 378: warning: exported function GetAccountCompanyName should have comment or be unexported (golint)
    • Line 382: warning: exported function GetAccountFirstName should have comment or be unexported (golint)
    • Line 386: warning: exported function GetAccountLastName should have comment or be unexported (golint)
    • Line 390: warning: exported function GetAccountAddress should have comment or be unexported (golint)
    • Line 394: warning: exported function GetAccountPostalCode should have comment or be unexported (golint)
    • Line 398: warning: exported function GetAccountCity should have comment or be unexported (golint)
    • Line 402: warning: exported function GetAccountState should have comment or be unexported (golint)
    • Line 406: warning: exported function GetAccountCountry should have comment or be unexported (golint)
    • Line 410: warning: exported function GetAccountPhone should have comment or be unexported (golint)
    • Line 414: warning: exported function GetAccountCNSEnabled should have comment or be unexported (golint)
    • Line 418: warning: exported function GetSSHKeyName should have comment or be unexported (golint)
    • Line 421: warning: exported function GetSSHKeyFingerprint should have comment or be unexported (golint)
    • Line 425: warning: exported function GetSSHKey should have comment or be unexported (golint)
    • Line 429: warning: exported function GetAccessKeyID should have comment or be unexported (golint)
    • Line 433: warning: exported function IsBlockingAction should have comment or be unexported (golint)
    • Line 437: warning: exported function FormatTime should have comment or be unexported (golint)
    • triton-go/testutils/step.go
    • Line 11: warning: exported type StepAction should have comment or be unexported (golint)
    • Line 14: warning: exported const Continue should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported const StateCancelled should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type Step should have comment or be unexported (golint)
    • triton-go/services/groups.go
    • Line 26: warning: exported type GroupsClient should have comment or be unexported (golint)
    • Line 30: warning: exported type ServiceGroup should have comment or be unexported (golint)
    • Line 39: warning: exported type ListGroupsInput should have comment or be unexported (golint)
    • Line 41: warning: exported method GroupsClient.List should have comment or be unexported (golint)
    • Line 78: warning: exported type ListGroupInstancesInput should have comment or be unexported (golint)
    • Line 82: warning: exported method ListGroupInstancesInput.Validate should have comment or be unexported (golint)
    • Line 90: warning: exported method GroupsClient.ListInstances should have comment or be unexported (golint)
    • Line 125: warning: exported type GetGroupInput should have comment or be unexported (golint)
    • Line 129: warning: exported method GetGroupInput.Validate should have comment or be unexported (golint)
    • Line 137: warning: exported method GroupsClient.Get should have comment or be unexported (golint)
    • Line 163: warning: exported type CreateGroupInput should have comment or be unexported (golint)
    • Line 186: warning: exported method GroupsClient.Create should have comment or be unexported (golint)
    • Line 214: warning: exported type UpdateGroupInput should have comment or be unexported (golint)
    • Line 243: warning: exported method GroupsClient.Update should have comment or be unexported (golint)
    • Line 271: warning: exported type DeleteGroupInput should have comment or be unexported (golint)
    • Line 275: warning: exported method DeleteGroupInput.Validate should have comment or be unexported (golint)
    • Line 283: warning: exported method GroupsClient.Delete should have comment or be unexported (golint)
    • triton-go/network/firewall.go
    • Line 22: warning: exported type FirewallClient should have comment or be unexported (golint)
    • Line 44: warning: exported type ListRulesInput should have comment or be unexported (golint)
    • Line 46: warning: exported method FirewallClient.ListRules should have comment or be unexported (golint)
    • Line 69: warning: exported type GetRuleInput should have comment or be unexported (golint)
    • Line 73: warning: exported method FirewallClient.GetRule should have comment or be unexported (golint)
    • Line 96: warning: exported type CreateRuleInput should have comment or be unexported (golint)
    • Line 102: warning: exported method FirewallClient.CreateRule should have comment or be unexported (golint)
    • Line 126: warning: exported type UpdateRuleInput should have comment or be unexported (golint)
    • Line 133: warning: exported method FirewallClient.UpdateRule should have comment or be unexported (golint)
    • Line 157: warning: exported type EnableRuleInput should have comment or be unexported (golint)
    • Line 161: warning: exported method FirewallClient.EnableRule should have comment or be unexported (golint)
    • Line 185: warning: exported type DisableRuleInput should have comment or be unexported (golint)
    • Line 189: warning: exported method FirewallClient.DisableRule should have comment or be unexported (golint)
    • Line 213: warning: exported type DeleteRuleInput should have comment or be unexported (golint)
    • Line 217: warning: exported method FirewallClient.DeleteRule should have comment or be unexported (golint)
    • Line 234: warning: exported type ListMachineRulesInput should have comment or be unexported (golint)
    • Line 238: warning: exported method FirewallClient.ListMachineRules should have comment or be unexported (golint)
    • Line 261: warning: exported type ListRuleMachinesInput should have comment or be unexported (golint)
    • Line 265: warning: exported type Machine should have comment or be unexported (golint)
    • Line 287: warning: exported method FirewallClient.ListRuleMachines should have comment or be unexported (golint)
    • triton-go/storage/job.go
    • Line 26: warning: exported type JobClient should have comment or be unexported (golint)
    • Line 31: warning: exported const JobStateDone should have comment (or a comment on this block) or be unexported (golint)
    • Line 107: warning: comment on exported method JobClient.Create should be of the form "Create ..." (golint)
    • Line 136: warning: comment on exported type AddJobInputsInput should be of the form "AddJobInputsInput ..." (with optional leading article) (golint)
    • Line 142: warning: comment on exported method JobClient.AddInputs should be of the form "AddInputs ..." (golint)
    • Line 172: warning: comment on exported method JobClient.EndInput should be of the form "EndInput ..." (golint)
    • Line 196: warning: comment on exported method JobClient.Cancel should be of the form "Cancel ..." (golint)
    • Line 235: warning: comment on exported method JobClient.List should be of the form "List ..." (golint)
    • Line 297: warning: comment on exported method JobClient.Get should be of the form "Get ..." (golint)
    • Line 336: warning: comment on exported method JobClient.GetOutput should be of the form "GetOutput ..." (golint)
    • Line 378: warning: comment on exported method JobClient.GetInput should be of the form "GetInput ..." (golint)
    • Line 420: warning: comment on exported method JobClient.GetFailures should be of the form "GetFailures ..." (golint)
    • triton-go/storage/snaplink.go
    • Line 20: warning: exported type SnapLinksClient should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method SnapLinksClient.Put should be of the form "Put ..." (golint)
    • triton-go/errors/errors.go
    • Line 49: warning: exported function IsAuthSchemeError should have comment or be unexported (golint)
    • Line 53: warning: exported function IsAuthorizationError should have comment or be unexported (golint)
    • Line 57: warning: exported function IsBadRequestError should have comment or be unexported (golint)
    • Line 61: warning: exported function IsChecksumError should have comment or be unexported (golint)
    • Line 65: warning: exported function IsConcurrentRequestError should have comment or be unexported (golint)
    • Line 69: warning: exported function IsContentLengthError should have comment or be unexported (golint)
    • Line 73: warning: exported function IsContentMD5MismatchError should have comment or be unexported (golint)
    • Line 77: warning: exported function IsEntityExistsError should have comment or be unexported (golint)
    • Line 81: warning: exported function IsInvalidArgumentError should have comment or be unexported (golint)
    • Line 85: warning: exported function IsInvalidAuthTokenError should have comment or be unexported (golint)
    • Line 89: warning: exported function IsInvalidCredentialsError should have comment or be unexported (golint)
    • Line 93: warning: exported function IsInvalidDurabilityLevelError should have comment or be unexported (golint)
    • Line 97: warning: exported function IsInvalidKeyIdError should have comment or be unexported (golint)
    • Line 101: warning: exported function IsInvalidJobError should have comment or be unexported (golint)
    • Line 105: warning: exported function IsInvalidLinkError should have comment or be unexported (golint)
    • Line 109: warning: exported function IsInvalidLimitError should have comment or be unexported (golint)
    • Line 113: warning: exported function IsInvalidSignatureError should have comment or be unexported (golint)
    • Line 117: warning: exported function IsInvalidUpdateError should have comment or be unexported (golint)
    • Line 121: warning: exported function IsDirectoryDoesNotExistError should have comment or be unexported (golint)
    • Line 125: warning: exported function IsDirectoryExistsError should have comment or be unexported (golint)
    • Line 129: warning: exported function IsDirectoryNotEmptyError should have comment or be unexported (golint)
    • Line 133: warning: exported function IsDirectoryOperationError should have comment or be unexported (golint)
    • Line 137: warning: exported function IsInternalError should have comment or be unexported (golint)
    • Line 141: warning: exported function IsJobNotFoundError should have comment or be unexported (golint)
    • Line 145: warning: exported function IsJobStateError should have comment or be unexported (golint)
    • Line 149: warning: exported function IsKeyDoesNotExistError should have comment or be unexported (golint)
    • Line 153: warning: exported function IsNotAcceptableError should have comment or be unexported (golint)
    • Line 157: warning: exported function IsNotEnoughSpaceError should have comment or be unexported (golint)
    • Line 161: warning: exported function IsLinkNotFoundError should have comment or be unexported (golint)
    • Line 165: warning: exported function IsLinkNotObjectError should have comment or be unexported (golint)
    • Line 169: warning: exported function IsLinkRequiredError should have comment or be unexported (golint)
    • Line 173: warning: exported function IsParentNotDirectoryError should have comment or be unexported (golint)
    • Line 177: warning: exported function IsPreconditionFailedError should have comment or be unexported (golint)
    • Line 181: warning: exported function IsPreSignedRequestError should have comment or be unexported (golint)
    • Line 185: warning: exported function IsRequestEntityTooLargeError should have comment or be unexported (golint)
    • Line 189: warning: exported function IsResourceNotFoundError should have comment or be unexported (golint)
    • Line 193: warning: exported function IsRootDirectoryError should have comment or be unexported (golint)
    • Line 197: warning: exported function IsServiceUnavailableError should have comment or be unexported (golint)
    • Line 201: warning: exported function IsSSLRequiredError should have comment or be unexported (golint)
    • Line 205: warning: exported function IsUploadTimeoutError should have comment or be unexported (golint)
    • Line 209: warning: exported function IsUserDoesNotExistError should have comment or be unexported (golint)
    • Line 213: warning: exported function IsBadRequest should have comment or be unexported (golint)
    • Line 217: warning: exported function IsInUseError should have comment or be unexported (golint)
    • Line 221: warning: exported function IsInvalidArgument should have comment or be unexported (golint)
    • Line 225: warning: exported function IsInvalidCredentials should have comment or be unexported (golint)
    • Line 229: warning: exported function IsInvalidHeader should have comment or be unexported (golint)
    • Line 233: warning: exported function IsInvalidVersion should have comment or be unexported (golint)
    • Line 237: warning: exported function IsMissingParameter should have comment or be unexported (golint)
    • Line 241: warning: exported function IsNotAuthorized should have comment or be unexported (golint)
    • Line 245: warning: exported function IsRequestThrottled should have comment or be unexported (golint)
    • Line 249: warning: exported function IsRequestTooLarge should have comment or be unexported (golint)
    • Line 253: warning: exported function IsRequestMoved should have comment or be unexported (golint)
    • Line 257: warning: exported function IsResourceFound should have comment or be unexported (golint)
    • Line 261: warning: exported function IsResourceNotFound should have comment or be unexported (golint)
    • Line 265: warning: exported function IsUnknownError should have comment or be unexported (golint)
    • Line 269: warning: exported function IsEmptyResponse should have comment or be unexported (golint)
    • Line 273: warning: exported function IsStatusNotFoundCode should have comment or be unexported (golint)
    • Line 277: warning: exported function IsSpecificError should have comment or be unexported (golint)
    • Line 288: warning: exported function IsSpecificStatusCode should have comment or be unexported (golint)
    • triton-go/account/config.go
    • Line 21: warning: exported type ConfigClient should have comment or be unexported (golint)
    • Line 31: warning: exported type GetConfigInput should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method ConfigClient.Get should be of the form "Get ..." (golint)
    • Line 57: warning: exported type UpdateConfigInput should have comment or be unexported (golint)
    • Line 62: warning: comment on exported method ConfigClient.Update should be of the form "Update ..." (golint)
    • triton-go/services/client.go
    • Line 18: warning: exported type ServiceGroupClient should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method ServiceGroupClient.SetHeader should be of the form "SetHeader ..." (golint)
    • triton-go/compute/datacenters.go
    • Line 24: warning: exported type DataCentersClient should have comment or be unexported (golint)
    • Line 28: warning: exported type DataCenter should have comment or be unexported (golint)
    • Line 33: warning: exported type ListDataCentersInput should have comment or be unexported (golint)
    • Line 35: warning: exported method DataCentersClient.List should have comment or be unexported (golint)
    • Line 77: warning: exported type GetDataCenterInput should have comment or be unexported (golint)
    • Line 81: warning: exported method DataCentersClient.Get should have comment or be unexported (golint)
    • triton-go/compute/packages.go
    • Line 24: warning: exported type PackagesClient should have comment or be unexported (golint)
    • Line 28: warning: exported type PackageDisk should have comment or be unexported (golint)
    • Line 35: warning: exported method PackageDisk.UnmarshalJSON should have comment or be unexported (golint)
    • Line 62: warning: exported type Package should have comment or be unexported (golint)
    • Line 79: warning: exported type ListPackagesInput should have comment or be unexported (golint)
    • Line 91: warning: exported method PackagesClient.List should have comment or be unexported (golint)
    • Line 145: warning: exported type GetPackageInput should have comment or be unexported (golint)
    • Line 149: warning: exported method PackagesClient.Get should have comment or be unexported (golint)
    • triton-go/testutils/runner.go
    • Line 23: warning: exported const TestEnvVar should have comment or be unexported (golint)
    • Line 25: warning: exported type TestCase should have comment or be unexported (golint)
    • Line 30: warning: exported function AccTest should have comment or be unexported (golint)
    • triton-go/identity/client.go
    • Line 18: warning: exported type IdentityClient should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method IdentityClient.SetHeader should be of the form "SetHeader ..." (golint)
    • triton-go/identity/users.go
    • Line 23: warning: exported type UsersClient should have comment or be unexported (golint)
    • Line 27: warning: exported type User should have comment or be unexported (golint)
    • Line 46: warning: exported type ListUsersInput should have comment or be unexported (golint)
    • Line 48: warning: exported method UsersClient.List should have comment or be unexported (golint)
    • Line 71: warning: exported type GetUserInput should have comment or be unexported (golint)
    • Line 75: warning: exported method UsersClient.Get should have comment or be unexported (golint)
    • Line 98: warning: exported type DeleteUserInput should have comment or be unexported (golint)
    • Line 102: warning: exported method UsersClient.Delete should have comment or be unexported (golint)
    • Line 119: warning: exported type CreateUserInput should have comment or be unexported (golint)
    • Line 134: warning: exported method UsersClient.Create should have comment or be unexported (golint)
    • Line 158: warning: exported type UpdateUserInput should have comment or be unexported (golint)
    • Line 173: warning: exported method UsersClient.Update should have comment or be unexported (golint)
    • triton-go/compute/ping.go
    • Line 22: warning: exported type CloudAPI should have comment or be unexported (golint)
    • Line 26: warning: exported type PingOutput should have comment or be unexported (golint)
    • triton-go/identity/roles.go
    • Line 22: warning: exported type RolesClient should have comment or be unexported (golint)
    • Line 26: warning: exported type Role should have comment or be unexported (golint)
    • Line 34: warning: exported type ListRolesInput should have comment or be unexported (golint)
    • Line 36: warning: exported method RolesClient.List should have comment or be unexported (golint)
    • Line 60: warning: exported type GetRoleInput should have comment or be unexported (golint)
    • Line 64: warning: exported method RolesClient.Get should have comment or be unexported (golint)
    • Line 104: warning: exported method RolesClient.Create should have comment or be unexported (golint)
    • Line 149: warning: exported method RolesClient.Update should have comment or be unexported (golint)
    • Line 173: warning: exported type DeleteRoleInput should have comment or be unexported (golint)
    • Line 177: warning: exported method RolesClient.Delete should have comment or be unexported (golint)
    • triton-go/testutils/steps.go
    • Line 25: warning: exported type StepClient should have comment or be unexported (golint)
    • Line 32: warning: exported method StepClient.Run should have comment or be unexported (golint)
    • Line 48: warning: exported method StepClient.Cleanup should have comment or be unexported (golint)
    • Line 52: warning: exported type StepComputeClient should have comment or be unexported (golint)
    • Line 59: warning: exported method StepComputeClient.Run should have comment or be unexported (golint)
    • Line 82: warning: exported method StepComputeClient.Cleanup should have comment or be unexported (golint)
    • Line 91: warning: exported type StepNetworkClient should have comment or be unexported (golint)
    • Line 98: warning: exported method StepNetworkClient.Run should have comment or be unexported (golint)
    • Line 121: warning: exported method StepNetworkClient.Cleanup should have comment or be unexported (golint)
    • Line 134: warning: exported type StepGetImage should have comment or be unexported (golint)
    • Line 138: warning: exported method StepGetImage.Run should have comment or be unexported (golint)
    • Line 171: warning: exported method StepGetImage.Cleanup should have comment or be unexported (golint)
    • Line 175: warning: exported type StepGetExternalNetwork should have comment or be unexported (golint)
    • Line 179: warning: exported method StepGetExternalNetwork.Run should have comment or be unexported (golint)
    • Line 210: warning: exported method StepGetExternalNetwork.Cleanup should have comment or be unexported (golint)
    • Line 214: warning: exported type StepGetPackage should have comment or be unexported (golint)
    • Line 218: warning: exported method StepGetPackage.Run should have comment or be unexported (golint)
    • Line 256: warning: exported method StepGetPackage.Cleanup should have comment or be unexported (golint)
    • Line 260: warning: exported type StepAPICall should have comment or be unexported (golint)
    • Line 267: warning: exported method StepAPICall.Run should have comment or be unexported (golint)
    • Line 283: warning: exported method StepAPICall.Cleanup should have comment or be unexported (golint)
    • Line 296: warning: exported type AssertFunc should have comment or be unexported (golint)
    • Line 298: warning: exported type StepAssertFunc should have comment or be unexported (golint)
    • Line 302: warning: exported method StepAssertFunc.Run should have comment or be unexported (golint)
    • Line 317: warning: exported method StepAssertFunc.Cleanup should have comment or be unexported (golint)
    • Line 321: warning: exported type StepAssert should have comment or be unexported (golint)
    • Line 326: warning: exported method StepAssert.Run should have comment or be unexported (golint)
    • Line 355: warning: exported method StepAssert.Cleanup should have comment or be unexported (golint)
    • Line 359: warning: exported type StepAssertSet should have comment or be unexported (golint)
    • Line 364: warning: exported method StepAssertSet.Run should have comment or be unexported (golint)
    • Line 390: warning: exported method StepAssertSet.Cleanup should have comment or be unexported (golint)
    • Line 394: warning: exported type StepAssertTritonError should have comment or be unexported (golint)
    • Line 399: warning: exported method StepAssertTritonError.Run should have comment or be unexported (golint)
    • Line 420: warning: exported method StepAssertTritonError.Cleanup should have comment or be unexported (golint)
    • triton-go/cmd/agent/storage/public.go
    • Line 19: warning: exported type AgentStorageClient should have comment or be unexported (golint)
    • Line 23: warning: exported function NewStorageClient should have comment or be unexported (golint)
    • Line 33: warning: exported method AgentStorageClient.GetDirectoryListing should have comment or be unexported (golint)
    • triton-go/cmd/internal/logger/pgx.go
    • Line 16: warning: exported type PGX should have comment or be unexported (golint)
    • Line 20: warning: exported function NewPGX should have comment or be unexported (golint)
    • Line 24: warning: exported method PGX.Log should have comment or be unexported (golint)
    • triton-go/authentication/private_key_signer.go
    • Line 27: warning: exported const RSA_SHA512 should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type PrivateKeySigner should have comment or be unexported (golint)
    • Line 44: warning: exported type PrivateKeySignerInput should have comment or be unexported (golint)
    • Line 51: warning: exported function NewPrivateKeySigner should have comment or be unexported (golint)
    • Line 93: warning: exported method PrivateKeySigner.Sign should have comment or be unexported (golint)
    • Line 131: warning: exported method PrivateKeySigner.SignRaw should have comment or be unexported (golint)
    • Line 161: warning: exported type ECDSASignature should have comment or be unexported (golint)
    • Line 165: warning: exported method PrivateKeySigner.KeyFingerprint should have comment or be unexported (golint)
    • Line 169: warning: exported method PrivateKeySigner.DefaultAlgorithm should have comment or be unexported (golint)
    • triton-go/network/network.go
    • Line 21: warning: exported type Network should have comment or be unexported (golint)
    • Line 36: warning: exported type ListInput should have comment or be unexported (golint)
    • Line 38: warning: exported method NetworkClient.List should have comment or be unexported (golint)
    • Line 61: warning: exported type GetInput should have comment or be unexported (golint)
    • Line 65: warning: exported method NetworkClient.Get should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 2)


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!