Documentation ¶
Index ¶
- Variables
- func Account() *cobra.Command
- func Actions() *cobra.Command
- func Auth() *cobra.Command
- func Domain() *cobra.Command
- func Droplet() *cobra.Command
- func DropletAction() *cobra.Command
- func Execute()
- func FloatingIP() *cobra.Command
- func FloatingIPAction() *cobra.Command
- func ImageAction() *cobra.Command
- func Images() *cobra.Command
- func LoadConfig() error
- func NewCmdDropletActions(out io.Writer) *cobra.Command
- func Region() *cobra.Command
- func RunAccountGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunAuthLogin(ns string, config doit.Config, out io.Writer, args []string) error
- func RunCmdActionGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunCmdActionList(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDomainCreate(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDomainDelete(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDomainGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDomainList(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionChangeKernel(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionDisableBackups(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionEnableIPv6(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionEnablePrivateNetworking(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionPasswordReset(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionPowerCycle(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionPowerOff(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionPowerOn(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionReboot(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionRebuild(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionRename(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionResize(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionRestore(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionShutdown(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionSnapshot(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActionUpgrade(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletActions(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletBackups(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletCreate(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletDelete(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletKernels(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletList(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletNeighbors(ns string, config doit.Config, out io.Writer, args []string) error
- func RunDropletSnapshots(ns string, config doit.Config, out io.Writer, args []string) error
- func RunFloatingIPActionsAssign(ns string, config doit.Config, out io.Writer, args []string) error
- func RunFloatingIPActionsGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunFloatingIPActionsUnassign(ns string, config doit.Config, out io.Writer, args []string) error
- func RunFloatingIPCreate(ns string, config doit.Config, out io.Writer, args []string) error
- func RunFloatingIPDelete(ns string, config doit.Config, out io.Writer, args []string) error
- func RunFloatingIPGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunFloatingIPList(ns string, config doit.Config, out io.Writer, args []string) error
- func RunImageActionsGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunImageActionsTransfer(ns string, config doit.Config, out io.Writer, args []string) error
- func RunImagesDelete(ns string, config doit.Config, out io.Writer, args []string) error
- func RunImagesGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunImagesList(ns string, config doit.Config, out io.Writer, args []string) error
- func RunImagesListApplication(ns string, config doit.Config, out io.Writer, args []string) error
- func RunImagesListDistribution(ns string, config doit.Config, out io.Writer, args []string) error
- func RunImagesListUser(ns string, config doit.Config, out io.Writer, args []string) error
- func RunImagesUpdate(ns string, config doit.Config, out io.Writer, args []string) error
- func RunKeyCreate(ns string, config doit.Config, out io.Writer, args []string) error
- func RunKeyDelete(ns string, config doit.Config, out io.Writer, args []string) error
- func RunKeyGet(ns string, config doit.Config, out io.Writer, args []string) error
- func RunKeyImport(ns string, config doit.Config, out io.Writer, args []string) error
- func RunKeyList(ns string, config doit.Config, out io.Writer, args []string) error
- func RunKeyUpdate(ns string, config doit.Config, out io.Writer, args []string) error
- func RunRecordCreate(ns string, config doit.Config, out io.Writer, args []string) error
- func RunRecordDelete(ns string, config doit.Config, out io.Writer, args []string) error
- func RunRecordList(ns string, config doit.Config, out io.Writer, args []string) error
- func RunRecordUpdate(ns string, config doit.Config, out io.Writer, args []string) error
- func RunRegionList(ns string, config doit.Config, out io.Writer, args []string) error
- func RunSSH(ns string, config doit.Config, out io.Writer, args []string) error
- func RunSizeList(ns string, config doit.Config, out io.Writer, args []string) error
- func SSH() *cobra.Command
- func SSHKeys() *cobra.Command
- func Size() *cobra.Command
- type UnknownSchemeError
Constants ¶
This section is empty.
Variables ¶
var ( // DoitCmd is the base command. DoitCmd = &cobra.Command{ Use: "doit", } // Token holds the global authorization token. Token string // Output holds the global output format. Output string )
Functions ¶
func DropletAction ¶
DropletAction creates the droplet-action command.
func FloatingIP ¶
FloatingIP creates the command heirarchy for floating ips.
func FloatingIPAction ¶
FloatingIPAction creates the floating IP action commmand.
func NewCmdDropletActions ¶
NewCmdDropletActions creates a droplet action get command.
func RunAccountGet ¶
RunAccountGet runs account get.
func RunAuthLogin ¶ added in v0.6.0
RunAuthLogin runs auth login. It communicates with doit-server to perform auth.
func RunCmdActionGet ¶
RunCmdActionGet runs action get.
func RunCmdActionList ¶
RunCmdActionList run action list.
func RunDomainCreate ¶
RunDomainCreate runs domain create.
func RunDomainDelete ¶
RunDomainDelete deletes a domain by name.
func RunDomainGet ¶
RunDomainGet retrieves a domain by name.
func RunDomainList ¶
RunDomainList runs domain create.
func RunDropletActionChangeKernel ¶
func RunDropletActionChangeKernel(ns string, config doit.Config, out io.Writer, args []string) error
RunDropletActionChangeKernel changes the kernel for a droplet.
func RunDropletActionDisableBackups ¶
func RunDropletActionDisableBackups(ns string, config doit.Config, out io.Writer, args []string) error
RunDropletActionDisableBackups disables backups for a droplet.
func RunDropletActionEnableIPv6 ¶
RunDropletActionEnableIPv6 enables IPv6 for a droplet.
func RunDropletActionEnablePrivateNetworking ¶
func RunDropletActionEnablePrivateNetworking(ns string, config doit.Config, out io.Writer, args []string) error
RunDropletActionEnablePrivateNetworking enables private networking for a droplet.
func RunDropletActionGet ¶
RunDropletActionGet returns a droplet action by id.
func RunDropletActionPasswordReset ¶
func RunDropletActionPasswordReset(ns string, config doit.Config, out io.Writer, args []string) error
RunDropletActionPasswordReset resets the droplet root password.
func RunDropletActionPowerCycle ¶
RunDropletActionPowerCycle power cycles a droplet.
func RunDropletActionPowerOff ¶
RunDropletActionPowerOff turns droplet power off.
func RunDropletActionPowerOn ¶
RunDropletActionPowerOn turns droplet power on.
func RunDropletActionReboot ¶
RunDropletActionReboot reboots a droplet.
func RunDropletActionRebuild ¶
RunDropletActionRebuild rebuilds a droplet using an image id or slug.
func RunDropletActionRename ¶
RunDropletActionRename renames a droplet.
func RunDropletActionResize ¶
RunDropletActionResize resizesx a droplet giving a size slug and optionally expands the disk.
func RunDropletActionRestore ¶
RunDropletActionRestore restores a droplet using an image id.
func RunDropletActionShutdown ¶
RunDropletActionShutdown shuts a droplet down.
func RunDropletActionSnapshot ¶
RunDropletActionSnapshot creates a snapshot for a droplet.
func RunDropletActionUpgrade ¶
RunDropletActionUpgrade upgrades a droplet.
func RunDropletActions ¶
RunDropletActions returns a list of actions for a droplet.
func RunDropletBackups ¶
RunDropletBackups returns a list of backup images for a droplet.
func RunDropletCreate ¶
RunDropletCreate creates a droplet.
func RunDropletDelete ¶
RunDropletDelete destroy a droplet by id.
func RunDropletGet ¶
RunDropletGet returns a droplet.
func RunDropletKernels ¶
RunDropletKernels returns a list of available kernels for a droplet.
func RunDropletList ¶
RunDropletList returns a list of droplets.
func RunDropletNeighbors ¶
RunDropletNeighbors returns a list of droplet neighbors.
func RunDropletSnapshots ¶
RunDropletSnapshots returns a list of available kernels for a droplet.
func RunFloatingIPActionsAssign ¶
RunFloatingIPActionsAssign assigns a floating IP to a droplet.
func RunFloatingIPActionsGet ¶
RunFloatingIPActionsGet retrieves an action for a floating IP.
func RunFloatingIPActionsUnassign ¶
func RunFloatingIPActionsUnassign(ns string, config doit.Config, out io.Writer, args []string) error
RunFloatingIPActionsUnassign unassigns a floating IP to a droplet.
func RunFloatingIPCreate ¶
RunFloatingIPCreate runs floating IP create.
func RunFloatingIPDelete ¶
RunFloatingIPDelete runs floating IP delete.
func RunFloatingIPGet ¶
RunFloatingIPGet retrieves a floating IP's details.
func RunFloatingIPList ¶
RunFloatingIPList runs floating IP create.
func RunImageActionsGet ¶
RunImageActionsGet retrieves an action for an image.
func RunImageActionsTransfer ¶
RunImageActionsTransfer an image.
func RunImagesDelete ¶
RunImagesDelete deletes an image.
func RunImagesGet ¶
RunImagesGet retrieves an image by id or slug.
func RunImagesList ¶
RunImagesList images.
func RunImagesListApplication ¶
RunImagesListApplication lists application iamges.
func RunImagesListDistribution ¶
RunImagesListDistribution lists distributions that are available.
func RunImagesListUser ¶
RunImagesListUser lists user images.
func RunImagesUpdate ¶
RunImagesUpdate updates an image.
func RunKeyCreate ¶
RunKeyCreate uploads a SSH key.
func RunKeyDelete ¶
RunKeyDelete deletes a key.
func RunKeyImport ¶
RunKeyImport imports a key from a file
func RunKeyList ¶
RunKeyList lists keys.
func RunKeyUpdate ¶
RunKeyUpdate updates a key.
func RunRecordCreate ¶
RunRecordCreate creates a domain record.
func RunRecordDelete ¶
RunRecordDelete deletes a domain record.
func RunRecordList ¶
RunRecordList list records for a domain.
func RunRecordUpdate ¶
RunRecordUpdate updates a domain record.
func RunRegionList ¶
RunRegionList all regions.
func RunSizeList ¶
RunSizeList all sizes.
Types ¶
type UnknownSchemeError ¶ added in v0.6.0
type UnknownSchemeError struct {
Scheme string
}
UnknownSchemeError signifies an unknown HTTP scheme.
func (*UnknownSchemeError) Error ¶ added in v0.6.0
func (use *UnknownSchemeError) Error() string