Documentation
¶
Index ¶
Constants ¶
View Source
const ( FlagDatacenterId = "datacenter-id" FlagSnapshotId = "snapshot-id" FlagIdShort = "i" FlagName = "name" FlagNameShort = "n" FlagTemplateId = "template-id" FlagInstances = "instances" FlagMaintenanceTime = "maintenance-time" FlagMaintenanceDay = "maintenance-day" FlagLocation = "location" FlagLocationShort = "l" FlagOffset = "offset" FlagMaxResults = "max-results" FlagMaxResultsShort = "M" FlagCidr = "cidr" FlagLanId = "lan-id" FlagCores = "cores" FlagRam = "ram" FlagAvailabilityZone = "availability-zone" FlagAvailabilityZoneShort = "z" FlagCpuFamily = "cpu-family" FlagStorageType = "storage-type" FlagStorageSize = "storage-size" FlagClusterId = "cluster-id" FlagNodepoolId = "nodepool-id" FlagNodeCount = "node-count" FlagLabels = "labels" FlagLabelsShort = "L" FlagAnnotations = "annotations" FlagAnnotationsShort = "A" FlagVersion = "version" )
flags
View Source
const ( ArgConfig = "config" ArgConfigShort = "c" ArgOutput = "output" ArgOutputShort = "o" ArgQuiet = "quiet" ArgQuietShort = "q" ArgVerbose = "verbose" ArgVerboseShort = "v" ArgDepth = "depth" ArgDepthShort = "D" ArgServerUrl = "api-url" ArgServerUrlShort = "u" ArgAll = "all" ArgAllShort = "a" ArgForce = "force" ArgForceShort = "f" ArgWaitForRequest = "wait-for-request" ArgWaitForRequestShort = "w" ArgWaitForState = "wait-for-state" ArgWaitForDelete = "wait-for-deletion" ArgWaitForStateShort = "W" ArgTimeout = "timeout" ArgTimeoutShort = "t" ArgCols = "cols" ArgUpdates = "updates" ArgToken = "token" ArgTokenShort = "t" ArgUser = "user" ArgPassword = "password" ArgPasswordShort = "p" ArgNoHeaders = "no-headers" )
legacy flags. TODO: Arg should be renamed to Flag.
View Source
const ( DefaultApiURL = "https://api.ionos.com" DefaultConfigFileName = "/config.json" DefaultOutputFormat = "text" DefaultWait = false DefaultTimeoutSeconds = int(60) DefaultParentIndex = int(1) )
Defaults
View Source
const ( MessageRequestInfo = "Request ID: %v Execution Time: %v" MessageRequestTime = "Request Execution Time: %v" MessageDeletingAll = "Status: Deleting %v with ID: %v..." MessageRemovingAll = "Status: Removing %v with ID: %v..." // TODO: cleanup constant. reduce duplication )
Some legacy messages, which might need looking into
View Source
const ( ErrDeleteAll = "error occurred removing %v with ID: %v. error: %w" ErrWaitDeleteAll = "error occurred waiting on removing %v with ID: %v. error: %w" // TODO: cleanup constant. reduce duplication )
View Source
const (
DescMaxResults = "The maximum number of elements to return"
)
Flag descriptions. Prefixed with "Desc" for easy find and replace
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.