gce

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2015 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteOptions

type DeleteOptions struct {
	Names []string
	// contains filtered or unexported fields
}

type DeprecateOptions

type DeprecateOptions struct {
	Names []string
	State string
	// contains filtered or unexported fields
}

type GCEConfig

type GCEConfig struct {
	ProjectID   string `toml:"project_id" json:"project_id"`
	AccountFile string `toml:"account_file" json:"account_file"`
}

type GceCommand

type GceCommand struct {
	*GceImages
}

GceCommand implements the images various interfaces, such as Fetcher, Deleter, Modifier, etc..

func NewCommand

func NewCommand(args []string) (*GceCommand, []string, error)

NewCommand returns a new instance of GceImages

func (*GceCommand) Delete

func (g *GceCommand) Delete(args []string) error

func (*GceCommand) Help

func (g *GceCommand) Help(command string) string

Help prints the help message for the given command

func (*GceCommand) List

func (g *GceCommand) List(args []string) error

List implements the command.Lister interface

func (*GceCommand) Modify

func (g *GceCommand) Modify(args []string) error

Modify renames the given images

type GceImages

type GceImages struct {
	// contains filtered or unexported fields
}

GceImages is responsible of managing GCE images

func New

func New(conf *GCEConfig) (*GceImages, error)

New returns a new instance of GceImages

func (*GceImages) DeleteImages

func (g *GceImages) DeleteImages(opts *DeleteOptions) error

Delete deletes the given images.

func (*GceImages) DeprecateImages

func (g *GceImages) DeprecateImages(opts *DeprecateOptions) error

Modify renames the given images

func (*GceImages) ProjectImages

func (g *GceImages) ProjectImages() (Images, error)

type Images

type Images compute.ImageList

func (Images) Print

func (i Images) Print(mode utils.OutputMode) error

Print prints the stored images to standard output.

Jump to

Keyboard shortcuts

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