commands

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2015 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 Account

func Account() *cobra.Command

Account creates the account commands heirarchy.

func Actions

func Actions() *cobra.Command

Actions creates the action commands heirarchy.

func Auth added in v0.6.0

func Auth() *cobra.Command

Auth creates auth commands for doit.

func Domain

func Domain() *cobra.Command

Domain creates the domain commands heirarchy.

func Droplet

func Droplet() *cobra.Command

Droplet creates the droplet command.

func DropletAction

func DropletAction() *cobra.Command

DropletAction creates the droplet-action command.

func Execute

func Execute()

Execute executes the base command.

func FloatingIP

func FloatingIP() *cobra.Command

FloatingIP creates the command heirarchy for floating ips.

func FloatingIPAction

func FloatingIPAction() *cobra.Command

FloatingIPAction creates the floating IP action commmand.

func ImageAction

func ImageAction() *cobra.Command

ImageAction creates the image action commmand.

func Images

func Images() *cobra.Command

Images creates an image command.

func LoadConfig

func LoadConfig() error

LoadConfig loads out configuration.

func NewCmdDropletActions

func NewCmdDropletActions(out io.Writer) *cobra.Command

NewCmdDropletActions creates a droplet action get command.

func Region

func Region() *cobra.Command

Region creates the region commands heirarchy.

func RunAccountGet

func RunAccountGet(ns string, config doit.Config, out io.Writer, args []string) error

RunAccountGet runs account get.

func RunAuthLogin added in v0.6.0

func RunAuthLogin(ns string, config doit.Config, out io.Writer, args []string) error

RunAuthLogin runs auth login. It communicates with doit-server to perform auth.

func RunCmdActionGet

func RunCmdActionGet(ns string, config doit.Config, out io.Writer, args []string) error

RunCmdActionGet runs action get.

func RunCmdActionList

func RunCmdActionList(ns string, config doit.Config, out io.Writer, args []string) error

RunCmdActionList run action list.

func RunDomainCreate

func RunDomainCreate(ns string, config doit.Config, out io.Writer, args []string) error

RunDomainCreate runs domain create.

func RunDomainDelete

func RunDomainDelete(ns string, config doit.Config, out io.Writer, args []string) error

RunDomainDelete deletes a domain by name.

func RunDomainGet

func RunDomainGet(ns string, config doit.Config, out io.Writer, args []string) error

RunDomainGet retrieves a domain by name.

func RunDomainList

func RunDomainList(ns string, config doit.Config, out io.Writer, args []string) error

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

func RunDropletActionEnableIPv6(ns string, config doit.Config, out io.Writer, args []string) error

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

func RunDropletActionGet(ns string, config doit.Config, out io.Writer, args []string) error

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

func RunDropletActionPowerCycle(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionPowerCycle power cycles a droplet.

func RunDropletActionPowerOff

func RunDropletActionPowerOff(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionPowerOff turns droplet power off.

func RunDropletActionPowerOn

func RunDropletActionPowerOn(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionPowerOn turns droplet power on.

func RunDropletActionReboot

func RunDropletActionReboot(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionReboot reboots a droplet.

func RunDropletActionRebuild

func RunDropletActionRebuild(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionRebuild rebuilds a droplet using an image id or slug.

func RunDropletActionRename

func RunDropletActionRename(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionRename renames a droplet.

func RunDropletActionResize

func RunDropletActionResize(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionResize resizesx a droplet giving a size slug and optionally expands the disk.

func RunDropletActionRestore

func RunDropletActionRestore(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionRestore restores a droplet using an image id.

func RunDropletActionShutdown

func RunDropletActionShutdown(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionShutdown shuts a droplet down.

func RunDropletActionSnapshot

func RunDropletActionSnapshot(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionSnapshot creates a snapshot for a droplet.

func RunDropletActionUpgrade

func RunDropletActionUpgrade(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActionUpgrade upgrades a droplet.

func RunDropletActions

func RunDropletActions(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletActions returns a list of actions for a droplet.

func RunDropletBackups

func RunDropletBackups(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletBackups returns a list of backup images for a droplet.

func RunDropletCreate

func RunDropletCreate(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletCreate creates a droplet.

func RunDropletDelete

func RunDropletDelete(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletDelete destroy a droplet by id.

func RunDropletGet

func RunDropletGet(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletGet returns a droplet.

func RunDropletKernels

func RunDropletKernels(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletKernels returns a list of available kernels for a droplet.

func RunDropletList

func RunDropletList(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletList returns a list of droplets.

func RunDropletNeighbors

func RunDropletNeighbors(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletNeighbors returns a list of droplet neighbors.

func RunDropletSnapshots

func RunDropletSnapshots(ns string, config doit.Config, out io.Writer, args []string) error

RunDropletSnapshots returns a list of available kernels for a droplet.

func RunFloatingIPActionsAssign

func RunFloatingIPActionsAssign(ns string, config doit.Config, out io.Writer, args []string) error

RunFloatingIPActionsAssign assigns a floating IP to a droplet.

func RunFloatingIPActionsGet

func RunFloatingIPActionsGet(ns string, config doit.Config, out io.Writer, args []string) error

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

func RunFloatingIPCreate(ns string, config doit.Config, out io.Writer, args []string) error

RunFloatingIPCreate runs floating IP create.

func RunFloatingIPDelete

func RunFloatingIPDelete(ns string, config doit.Config, out io.Writer, args []string) error

RunFloatingIPDelete runs floating IP delete.

func RunFloatingIPGet

func RunFloatingIPGet(ns string, config doit.Config, out io.Writer, args []string) error

RunFloatingIPGet retrieves a floating IP's details.

func RunFloatingIPList

func RunFloatingIPList(ns string, config doit.Config, out io.Writer, args []string) error

RunFloatingIPList runs floating IP create.

func RunImageActionsGet

func RunImageActionsGet(ns string, config doit.Config, out io.Writer, args []string) error

RunImageActionsGet retrieves an action for an image.

func RunImageActionsTransfer

func RunImageActionsTransfer(ns string, config doit.Config, out io.Writer, args []string) error

RunImageActionsTransfer an image.

func RunImagesDelete

func RunImagesDelete(ns string, config doit.Config, out io.Writer, args []string) error

RunImagesDelete deletes an image.

func RunImagesGet

func RunImagesGet(ns string, config doit.Config, out io.Writer, args []string) error

RunImagesGet retrieves an image by id or slug.

func RunImagesList

func RunImagesList(ns string, config doit.Config, out io.Writer, args []string) error

RunImagesList images.

func RunImagesListApplication

func RunImagesListApplication(ns string, config doit.Config, out io.Writer, args []string) error

RunImagesListApplication lists application iamges.

func RunImagesListDistribution

func RunImagesListDistribution(ns string, config doit.Config, out io.Writer, args []string) error

RunImagesListDistribution lists distributions that are available.

func RunImagesListUser

func RunImagesListUser(ns string, config doit.Config, out io.Writer, args []string) error

RunImagesListUser lists user images.

func RunImagesUpdate

func RunImagesUpdate(ns string, config doit.Config, out io.Writer, args []string) error

RunImagesUpdate updates an image.

func RunKeyCreate

func RunKeyCreate(ns string, config doit.Config, out io.Writer, args []string) error

RunKeyCreate uploads a SSH key.

func RunKeyDelete

func RunKeyDelete(ns string, config doit.Config, out io.Writer, args []string) error

RunKeyDelete deletes a key.

func RunKeyGet

func RunKeyGet(ns string, config doit.Config, out io.Writer, args []string) error

RunKeyGet retrieves a key.

func RunKeyImport

func RunKeyImport(ns string, config doit.Config, out io.Writer, args []string) error

RunKeyImport imports a key from a file

func RunKeyList

func RunKeyList(ns string, config doit.Config, out io.Writer, args []string) error

RunKeyList lists keys.

func RunKeyUpdate

func RunKeyUpdate(ns string, config doit.Config, out io.Writer, args []string) error

RunKeyUpdate updates a key.

func RunRecordCreate

func RunRecordCreate(ns string, config doit.Config, out io.Writer, args []string) error

RunRecordCreate creates a domain record.

func RunRecordDelete

func RunRecordDelete(ns string, config doit.Config, out io.Writer, args []string) error

RunRecordDelete deletes a domain record.

func RunRecordList

func RunRecordList(ns string, config doit.Config, out io.Writer, args []string) error

RunRecordList list records for a domain.

func RunRecordUpdate

func RunRecordUpdate(ns string, config doit.Config, out io.Writer, args []string) error

RunRecordUpdate updates a domain record.

func RunRegionList

func RunRegionList(ns string, config doit.Config, out io.Writer, args []string) error

RunRegionList all regions.

func RunSSH

func RunSSH(ns string, config doit.Config, out io.Writer, args []string) error

RunSSH finds a droplet to ssh to given input parameters (name or id).

func RunSizeList

func RunSizeList(ns string, config doit.Config, out io.Writer, args []string) error

RunSizeList all sizes.

func SSH

func SSH() *cobra.Command

SSH creates the ssh commands heirarchy

func SSHKeys

func SSHKeys() *cobra.Command

SSHKeys creates the ssh key commands heirarchy.

func Size

func Size() *cobra.Command

Size creates the size commands heirarchy.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL