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.
type CreateOpt ¶
type CreateOpt func(*createOpt)
CreateOpt is an optional argument to domains.Create.
type UpdateOpt ¶
type UpdateOpt func(*updateOpt)
UpdateOpt is an optional argument to keys.Update.
func UseGodoKey ¶
func UseGodoKey(req *godo.KeyUpdateRequest) UpdateOpt
Click to show internal directories.
Click to hide internal directories.