package
1.0.0-beta1
Repository: https://github.com/bryanl/doit.git
Documentation: pkg.go.dev

# Functions

Account creates the account commands heirarchy.
Actions creates the action commands heirarchy.
AddBoolFlag adds a boolean flag to a command.
AddIntFlag adds an integr flag to a command.
AddStringFlag adds a string flag to a command.
AddStringSliceFlag adds a string slice flag to a command.
Auth creates auth commands for doit.
CmdBuilder builds a new command.
Domain creates the domain commands heirarchy.
Droplet creates the droplet command.
DropletAction creates the droplet-action command.
FloatingIP creates the command heirarchy for floating ips.
FloatingIPAction creates the floating IP action commmand.
ImageAction creates the image action commmand.
Images creates an image command.
Init initializes the root command.
LoadConfig loads out configuration.
NewCmdConfig creates an instance of a CmdConfig.
Plugin creates the plugin commands heirarchy.
Region creates the region commands heirarchy.
RunAccountGet runs account get.
RunAccountRateLimit retrieves API rate limits for the account.
RunAuthLogin runs auth login.
RunCmdActionGet runs action get.
RunCmdActionList run action list.
RunCmdActionWait waits for an action to complete or error.
RunDomainCreate runs domain create.
RunDomainDelete deletes a domain by name.
RunDomainGet retrieves a domain by name.
RunDomainList runs domain create.
RunDropletActionChangeKernel changes the kernel for a droplet.
RunDropletActionDisableBackups disables backups for a droplet.
RunDropletActionEnableIPv6 enables IPv6 for a droplet.
RunDropletActionEnablePrivateNetworking enables private networking for a droplet.
RunDropletActionGet returns a droplet action by id.
RunDropletActionPasswordReset resets the droplet root password.
RunDropletActionPowerCycle power cycles a droplet.
RunDropletActionPowerOff turns droplet power off.
RunDropletActionPowerOn turns droplet power on.
RunDropletActionReboot reboots a droplet.
RunDropletActionRebuild rebuilds a droplet using an image id or slug.
RunDropletActionRename renames a droplet.
RunDropletActionResize resizesx a droplet giving a size slug and optionally expands the disk.
RunDropletActionRestore restores a droplet using an image id.
RunDropletActions returns a list of actions for a droplet.
RunDropletActionShutdown shuts a droplet down.
RunDropletActionSnapshot creates a snapshot for a droplet.
RunDropletActionUpgrade upgrades a droplet.
RunDropletBackups returns a list of backup images for a droplet.
RunDropletCreate creates a droplet.
RunDropletDelete destroy a droplet by id.
RunDropletGet returns a droplet.
RunDropletKernels returns a list of available kernels for a droplet.
RunDropletList returns a list of droplets.
RunDropletNeighbors returns a list of droplet neighbors.
RunDropletSnapshots returns a list of available kernels for a droplet.
RunFloatingIPActionsAssign assigns a floating IP to a droplet.
RunFloatingIPActionsGet retrieves an action for a floating IP.
RunFloatingIPActionsUnassign unassigns a floating IP to a droplet.
RunFloatingIPCreate runs floating IP create.
RunFloatingIPDelete runs floating IP delete.
RunFloatingIPGet retrieves a floating IP's details.
RunFloatingIPList runs floating IP create.
RunImageActionsGet retrieves an action for an image.
RunImageActionsTransfer an image.
RunImagesDelete deletes an image.
RunImagesGet retrieves an image by id or slug.
RunImagesList images.
RunImagesListApplication lists application iamges.
RunImagesListDistribution lists distributions that are available.
RunImagesListUser lists user images.
RunImagesUpdate updates an image.
RunKeyCreate uploads a SSH key.
RunKeyDelete deletes a key.
RunKeyGet retrieves a key.
RunKeyImport imports a key from a file.
RunKeyList lists keys.
RunKeyUpdate updates a key.
RunPluginList is a command for listing available plugins.
RunPluginRun is a command for running a plugin.
RunRecordCreate creates a domain record.
RunRecordDelete deletes a domain record.
RunRecordList list records for a domain.
RunRecordUpdate updates a domain record.
RunRegionList all regions.
RunSizeList all sizes.
RunSSH finds a droplet to ssh to given input parameters (name or id).
Size creates the size commands heirarchy.
SSH creates the ssh commands heirarchy.
SSHKeys creates the ssh key commands heirarchy.
Version creates a version command.

# Variables

DoitCmd is the base command.
ErrUnknownTerminal signies an unknown terminal.
Output holds the global output format.
Token holds the global authorization token.
Trace toggles http tracing output.
Verbose toggles verbose output.
Writer is where output should be written to.

# Structs

CmdConfig is a command configuration.
Command is a wrapper around cobra.Command that adds doctl specific functionality.
UnknownSchemeError signifies an unknown HTTP scheme.

# Interfaces

Displayable is a displable entity.

# Type aliases

CmdRunner runs a command and passes in a cmdConfig.