command

package
v0.0.0-...-8e74efa Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNetworksV4IPAddress

func GetNetworksV4IPAddress(networks *godo.Networks) string

Types

type AccountCommand

type AccountCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*AccountCommand) Help

func (c *AccountCommand) Help() string

func (*AccountCommand) Run

func (c *AccountCommand) Run(args []string) int

func (*AccountCommand) Synopsis

func (c *AccountCommand) Synopsis() string

type AuthorizeCommand

type AuthorizeCommand struct {
	Ui     cli.Ui
	Config *config.Config
	Client *godo.Client
}

func (*AuthorizeCommand) Help

func (c *AuthorizeCommand) Help() string

func (*AuthorizeCommand) Run

func (c *AuthorizeCommand) Run(args []string) int

func (*AuthorizeCommand) Synopsis

func (c *AuthorizeCommand) Synopsis() string

type ConfigCommand

type ConfigCommand struct {
	Ui     cli.Ui
	Config *config.Config
	Client *godo.Client
}

func (*ConfigCommand) Get

func (c *ConfigCommand) Get(args []string) int

func (*ConfigCommand) Help

func (c *ConfigCommand) Help() string

func (*ConfigCommand) Run

func (c *ConfigCommand) Run(args []string) int

func (*ConfigCommand) Set

func (c *ConfigCommand) Set(args []string) int

func (*ConfigCommand) Synopsis

func (c *ConfigCommand) Synopsis() string

type CreateCommand

type CreateCommand struct {
	Ui     cli.Ui
	Client *godo.Client
	Config *config.Config
}

func (*CreateCommand) GetDropletCreateImage

func (c *CreateCommand) GetDropletCreateImage(text string) godo.DropletCreateImage

func (*CreateCommand) Help

func (c *CreateCommand) Help() string

func (*CreateCommand) Run

func (c *CreateCommand) Run(args []string) int

func (*CreateCommand) Synopsis

func (c *CreateCommand) Synopsis() string

type CreateFlags

type CreateFlags struct {
	Name              string
	Image             string
	Size              string
	Region            string
	Key               string
	Backups           bool
	IPv6              bool
	PrivateNetworking bool
}

type DestroyCommand

type DestroyCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*DestroyCommand) DestroyById

func (c *DestroyCommand) DestroyById(id int) error

func (*DestroyCommand) DestroyByName

func (c *DestroyCommand) DestroyByName(name string) (int, error)

func (*DestroyCommand) Help

func (c *DestroyCommand) Help() string

func (*DestroyCommand) Run

func (c *DestroyCommand) Run(args []string) int

func (*DestroyCommand) Synopsis

func (c *DestroyCommand) Synopsis() string

type DropletsCommand

type DropletsCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*DropletsCommand) Help

func (c *DropletsCommand) Help() string

func (*DropletsCommand) Run

func (c *DropletsCommand) Run(args []string) int

func (*DropletsCommand) Synopsis

func (c *DropletsCommand) Synopsis() string

type DropletsFlags

type DropletsFlags struct {
	Quiet bool
}

type GodoUtil

type GodoUtil struct {
	Client *godo.Client
}

func (*GodoUtil) GetDropletActions

func (u *GodoUtil) GetDropletActions(targetID int) ([]godo.Action, error)

func (*GodoUtil) GetDropletByID

func (u *GodoUtil) GetDropletByID(targetID int) (*godo.Droplet, error)

func (*GodoUtil) GetDropletByName

func (u *GodoUtil) GetDropletByName(targetName string) (*godo.Droplet, error)

func (*GodoUtil) GetDroplets

func (u *GodoUtil) GetDroplets() ([]godo.Droplet, error)

type ImagesCommand

type ImagesCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*ImagesCommand) Delete

func (c *ImagesCommand) Delete(args []string) int

func (*ImagesCommand) Help

func (c *ImagesCommand) Help() string

func (*ImagesCommand) Info

func (c *ImagesCommand) Info(args []string) int

func (*ImagesCommand) List

func (c *ImagesCommand) List(args []string) int

func (*ImagesCommand) Run

func (c *ImagesCommand) Run(args []string) int

func (*ImagesCommand) Synopsis

func (c *ImagesCommand) Synopsis() string

func (*ImagesCommand) Update

func (c *ImagesCommand) Update(args []string) int

type InfoCommand

type InfoCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*InfoCommand) DropletById

func (c *InfoCommand) DropletById(id int) (*godo.Droplet, error)

func (*InfoCommand) DropletByName

func (c *InfoCommand) DropletByName(name string) (*godo.Droplet, error)

func (*InfoCommand) Help

func (c *InfoCommand) Help() string

func (*InfoCommand) Run

func (c *InfoCommand) Run(args []string) int

func (*InfoCommand) Synopsis

func (c *InfoCommand) Synopsis() string

type KeysCommand

type KeysCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*KeysCommand) Create

func (c *KeysCommand) Create(args []string) int

func (*KeysCommand) Delete

func (c *KeysCommand) Delete(args []string) int

func (*KeysCommand) Help

func (c *KeysCommand) Help() string

func (*KeysCommand) List

func (c *KeysCommand) List(args []string) int

func (*KeysCommand) Run

func (c *KeysCommand) Run(args []string) int

func (*KeysCommand) Show

func (c *KeysCommand) Show(args []string) int

func (*KeysCommand) Synopsis

func (c *KeysCommand) Synopsis() string

type PowerCommand

type PowerCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*PowerCommand) Help

func (c *PowerCommand) Help() string

func (*PowerCommand) PowerCycleById

func (c *PowerCommand) PowerCycleById(id int) error

func (*PowerCommand) PowerOffById

func (c *PowerCommand) PowerOffById(id int) error

func (*PowerCommand) PowerOnById

func (c *PowerCommand) PowerOnById(id int) error

func (*PowerCommand) Run

func (c *PowerCommand) Run(args []string) int

func (*PowerCommand) Synopsis

func (c *PowerCommand) Synopsis() string

type RegionsCommand

type RegionsCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*RegionsCommand) Help

func (c *RegionsCommand) Help() string

func (*RegionsCommand) Run

func (c *RegionsCommand) Run(args []string) int

func (*RegionsCommand) Synopsis

func (c *RegionsCommand) Synopsis() string

type SSHCommand

type SSHCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*SSHCommand) GetDropletByID

func (c *SSHCommand) GetDropletByID(id int) (*godo.Droplet, error)

func (*SSHCommand) GetDropletByName

func (c *SSHCommand) GetDropletByName(name string) (*godo.Droplet, error)

func (*SSHCommand) Help

func (c *SSHCommand) Help() string

func (*SSHCommand) Run

func (c *SSHCommand) Run(args []string) int

func (*SSHCommand) Synopsis

func (c *SSHCommand) Synopsis() string

type ShutdownCommand

type ShutdownCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*ShutdownCommand) Help

func (c *ShutdownCommand) Help() string

func (*ShutdownCommand) Run

func (c *ShutdownCommand) Run(args []string) int

func (*ShutdownCommand) ShutdownById

func (c *ShutdownCommand) ShutdownById(id int) error

func (*ShutdownCommand) Synopsis

func (c *ShutdownCommand) Synopsis() string

type SizesCommand

type SizesCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*SizesCommand) Help

func (c *SizesCommand) Help() string

func (*SizesCommand) Run

func (c *SizesCommand) Run(args []string) int

func (*SizesCommand) Synopsis

func (c *SizesCommand) Synopsis() string

type SnapshotCommand

type SnapshotCommand struct {
	Ui     cli.Ui
	Client *godo.Client
}

func (*SnapshotCommand) Help

func (c *SnapshotCommand) Help() string

func (*SnapshotCommand) Run

func (c *SnapshotCommand) Run(args []string) int

func (*SnapshotCommand) SnapshotById

func (c *SnapshotCommand) SnapshotById(id int, snapshot string) error

func (*SnapshotCommand) Synopsis

func (c *SnapshotCommand) Synopsis() string

type VersionCommand

type VersionCommand struct {
	Ui             cli.Ui
	AppName        string
	Version        string
	LibraryVersion string
}

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Run

func (c *VersionCommand) Run(args []string) int

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Jump to

Keyboard shortcuts

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