tags

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 {
	Create(ctx context.Context, name string, opt ...CreateOpt) (Tag, error)
	Get(ctx context.Context, name string) (Tag, error)
	Delete(ctx context.Context, name string) error
	List(ctx context.Context) (<-chan Tag, <-chan error)
	TagResources(ctx context.Context, name string, res []godo.Resource) error
	UntagResources(ctx context.Context, name string, res []godo.Resource) error
}

A Client can interact with the DigitalOcean Tags service

func New

func New(g *godo.Client) Client

type CreateOpt

type CreateOpt func(*createOpt)

func UseGodoCreate

func UseGodoCreate(req *godo.TagCreateRequest) CreateOpt

type Resource

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

type Tag

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

Jump to

Keyboard shortcuts

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