keys

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, publicKey string, opts ...CreateOpt) (Key, error)
	GetByID(context.Context, int) (Key, error)
	GetByFingerprint(context.Context, string) (Key, error)
	UpdateByID(context.Context, int, ...UpdateOpt) (Key, error)
	UpdateByFingerprint(context.Context, string, ...UpdateOpt) (Key, error)
	DeleteByID(context.Context, int) error
	DeleteByFingerprint(context.Context, string) error
	List(context.Context) (<-chan Key, <-chan error)
}

A Client can interact with the DigitalOcean Domains service.

func New

func New(g *godo.Client) Client

New creates a Client.

type CreateOpt

type CreateOpt func(*createOpt)

CreateOpt is an optional argument to domains.Create.

type Key

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

Key in the DigitalOcean cloud.

type UpdateOpt

type UpdateOpt func(*updateOpt)

UpdateOpt is an optional argument to keys.Update.

func UseGodoKey

func UseGodoKey(req *godo.KeyUpdateRequest) UpdateOpt

Jump to

Keyboard shortcuts

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