digitalocean

package
v0.0.0-...-ac431fb Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2014 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

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

func (*Image) Id

func (i *Image) Id() string

func (*Image) Map

func (i *Image) Map() compute.Map

func (*Image) MarshalJSON

func (i *Image) MarshalJSON() ([]byte, error)

func (*Image) Name

func (i *Image) Name() string

func (*Image) Path

func (i *Image) Path() string

func (*Image) String

func (i *Image) String() string

type Images

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

func (*Images) Create

func (i *Images) Create(image compute.Image) (compute.Image, error)

Create a image.

func (*Images) Destroy

func (i *Images) Destroy(image compute.Image) (bool, error)

Delete a image.

func (*Images) List

func (i *Images) List() ([]compute.Image, error)

List images available on the account.

func (*Images) New

func (i *Images) New(m compute.Map) compute.Image

func (*Images) Show

func (i *Images) Show(image compute.Image) (compute.Image, error)

Show image information for a given id.

type Server

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

func (*Server) Id

func (s *Server) Id() string

func (*Server) Image

func (s *Server) Image() string

func (*Server) Ips

func (s *Server) Ips(t string) []string

func (*Server) Map

func (s *Server) Map() compute.Map

func (*Server) MarshalJSON

func (s *Server) MarshalJSON() ([]byte, error)

func (*Server) Name

func (s *Server) Name() string

func (*Server) Size

func (s *Server) Size() string

func (*Server) State

func (s *Server) State() string

func (*Server) String

func (s *Server) String() string

type Servers

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

func (*Servers) Create

func (s *Servers) Create(server compute.Server) (compute.Server, error)

Create a droplet.

func (*Servers) Destroy

func (s *Servers) Destroy(server compute.Server) (bool, error)

Delete a droplet.

func (*Servers) List

func (s *Servers) List() ([]compute.Server, error)

List droplets available on the account.

func (*Servers) New

func (s *Servers) New(m compute.Map) compute.Server

func (*Servers) Reboot

func (s *Servers) Reboot(server compute.Server) (bool, error)

Reboot a droplet.

func (*Servers) Show

func (s *Servers) Show(server compute.Server) (compute.Server, error)

Show droplet information for a given id.

func (*Servers) Start

func (s *Servers) Start(server compute.Server) (bool, error)

Start a droplet.

func (*Servers) Stop

func (s *Servers) Stop(server compute.Server) (bool, error)

Stop a droplet.

Jump to

Keyboard shortcuts

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