domains

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, ip string, opts ...CreateOpt) (Domain, error)
	Get(context.Context, string) (Domain, error)
	Delete(context.Context, string) error
	List(context.Context) (<-chan Domain, <-chan error)

	CreateRecord(context.Context, string, ...RecordOpt) (Record, error)
	GetRecord(context.Context, string, int) (Record, error)
	UpdateRecord(context.Context, string, int, ...RecordOpt) (Record, error)
	DeleteRecord(context.Context, string, int) error
	ListRecord(ctx context.Context, name string) (<-chan Record, <-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 Domain

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

A Domain in the DigitalOcean cloud.

type Record

type Record interface {
	Struct() *godo.DomainRecord
}

A Record in the DigitalOcean cloud.

type RecordOpt

type RecordOpt func(*recordOpt)

RecordOpt is an optional argument to domains.Edit.

func UseGodoRecord

func UseGodoRecord(req *godo.DomainRecordEditRequest) RecordOpt

Jump to

Keyboard shortcuts

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