floatingips

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 ActionClient

type ActionClient interface {
	Assign(ctx context.Context, ip string, dropletID int) error
	Unassign(ctx context.Context, ip string) error
}

An ActionClient can interact with the DigitalOcean FloatingIPActions service.

type Client

type Client interface {
	Create(ctx context.Context, region string, opts ...CreateOpt) (FloatingIP, error)
	Get(context.Context, string) (FloatingIP, error)
	Delete(context.Context, string) error
	List(context.Context) (<-chan FloatingIP, <-chan error)
	Actions() ActionClient
}

A Client can interact with the DigitalOcean FloatingIPs 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 floatingips.Create.

func UseGodoFloatingIP

func UseGodoFloatingIP(req *godo.FloatingIPCreateRequest) CreateOpt

type FloatingIP

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

FloatingIP in the DigitalOcean cloud.

Jump to

Keyboard shortcuts

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