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.
type CreateOpt ¶
type CreateOpt func(*createOpt)
CreateOpt is an optional argument to domains.Create.
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
Click to show internal directories.
Click to hide internal directories.