images

package
v0.0.0-...-cad3fbd Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetByID(context.Context, int) (Image, error)
	GetBySlug(context.Context, string) (Image, error)
	Update(context.Context, int, ...UpdateOpt) (Image, error)
	Delete(context.Context, int) error
	List(context.Context) (<-chan Image, <-chan error)
	ListApplication(context.Context) (<-chan Image, <-chan error)
	ListDistribution(context.Context) (<-chan Image, <-chan error)
	ListUser(context.Context) (<-chan Image, <-chan error)
}

A Client can interact with the DigitalOcean Images service.

func New

func New(g *godo.Client) Client

New creates a Client.

type Image

type Image interface {
	Struct() *godo.Image
}

A Image in the DigitalOcean cloud.

type UpdateOpt

type UpdateOpt func(*updateOpt)

UpdateOpt is an optional argument to images.Update.

func UseGodoImage

func UseGodoImage(req *godo.ImageUpdateRequest) UpdateOpt

Jump to

Keyboard shortcuts

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