Versions in this module Expand all Collapse all v0 v0.17.0 Apr 30, 2024 v0.16.0 Nov 9, 2023 Changes in this version + type API struct + func New(opts *Options) (*API, error) + func (a *API) AddKey(ctx context.Context, name, key string) (int, error) + func (a *API) CreateCustomImage(ctx context.Context, name string, url string) (*godo.Image, error) + func (a *API) CreateDroplet(ctx context.Context, name string, sshKeyID int, userdata string) (*godo.Droplet, error) + func (a *API) DeleteDroplet(ctx context.Context, dropletID int) error + func (a *API) DeleteImage(ctx context.Context, imageID int) error + func (a *API) DeleteKey(ctx context.Context, keyID int) error + func (a *API) GC(ctx context.Context, gracePeriod time.Duration) error + func (a *API) GetDroplet(ctx context.Context, dropletID int) (*godo.Droplet, error) + func (a *API) GetUserImage(ctx context.Context, imageName string, inRegion bool) (*godo.Image, error) + func (a *API) ListKeys(ctx context.Context) ([]godo.Key, error) + func (a *API) PreflightCheck(ctx context.Context) error + func (a *API) SnapshotDroplet(ctx context.Context, dropletID int, name string) error + type Options struct + AccessToken string + ConfigPath string + DisableIPv6 bool + Image string + Profile string + Region string + Size string