Documentation ¶
Index ¶
- type Droplets
- func (f *Droplets) Actions(id int, l *godo.ListOptions) ([]godo.Action, *godo.Response, error)
- func (f *Droplets) Backups(id int, l *godo.ListOptions) ([]godo.Image, *godo.Response, error)
- func (f *Droplets) Create(r *godo.DropletCreateRequest) (*godo.Droplet, *godo.Response, error)
- func (f *Droplets) CreateMultiple(r *godo.DropletMultiCreateRequest) ([]godo.Droplet, *godo.Response, error)
- func (f *Droplets) Delete(id int) (*godo.Response, error)
- func (f *Droplets) DeleteByTag(s string) (*godo.Response, error)
- func (f *Droplets) Get(id int) (*godo.Droplet, *godo.Response, error)
- func (f *Droplets) Kernels(id int, l *godo.ListOptions) ([]godo.Kernel, *godo.Response, error)
- func (f *Droplets) List(l *godo.ListOptions) ([]godo.Droplet, *godo.Response, error)
- func (f *Droplets) ListByTag(s string, l *godo.ListOptions) ([]godo.Droplet, *godo.Response, error)
- func (f *Droplets) Neighbors(id int) ([]godo.Droplet, *godo.Response, error)
- func (f *Droplets) Snapshots(id int, l *godo.ListOptions) ([]godo.Image, *godo.Response, error)
- type Storage
- func (f *Storage) CreateVolume(r *godo.VolumeCreateRequest) (*godo.Volume, *godo.Response, error)
- func (f *Storage) DeleteVolume(s string) (*godo.Response, error)
- func (f *Storage) GetVolume(s string) (*godo.Volume, *godo.Response, error)
- func (f *Storage) ListVolumes(l *godo.ListOptions) ([]godo.Volume, *godo.Response, error)
- type StorageActions
- func (f *StorageActions) Attach(volumeID string, dropletID int) (*godo.Action, *godo.Response, error)
- func (f *StorageActions) Detach(volumeID string) (*godo.Action, *godo.Response, error)
- func (f *StorageActions) Get(volumeID string, actionID int) (*godo.Action, *godo.Response, error)
- func (f *StorageActions) List(volumeID string, opt *godo.ListOptions) ([]godo.Action, *godo.Response, error)
- func (f *StorageActions) Resize(volumeID string, sizeGigabytes int, regionSlug string) (*godo.Action, *godo.Response, error)
- type Tags
- func (f *Tags) Create(r *godo.TagCreateRequest) (*godo.Tag, *godo.Response, error)
- func (f *Tags) Delete(s string) (*godo.Response, error)
- func (f *Tags) Get(s string) (*godo.Tag, *godo.Response, error)
- func (f *Tags) List(l *godo.ListOptions) ([]godo.Tag, *godo.Response, error)
- func (f *Tags) TagResources(s string, r *godo.TagResourcesRequest) (*godo.Response, error)
- func (f *Tags) UntagResources(s string, r *godo.UntagResourcesRequest) (*godo.Response, error)
- func (f *Tags) Update(s string, r *godo.TagUpdateRequest) (*godo.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Droplets ¶
type Droplets struct { ListFn func(*godo.ListOptions) ([]godo.Droplet, *godo.Response, error) ListByTagFn func(string, *godo.ListOptions) ([]godo.Droplet, *godo.Response, error) GetFn func(int) (*godo.Droplet, *godo.Response, error) CreateFn func(*godo.DropletCreateRequest) (*godo.Droplet, *godo.Response, error) CreateMultipleFn func(*godo.DropletMultiCreateRequest) ([]godo.Droplet, *godo.Response, error) DeleteFn func(int) (*godo.Response, error) DeleteByTagFn func(string) (*godo.Response, error) KernelsFn func(int, *godo.ListOptions) ([]godo.Kernel, *godo.Response, error) SnapshotsFn func(int, *godo.ListOptions) ([]godo.Image, *godo.Response, error) BackupsFn func(int, *godo.ListOptions) ([]godo.Image, *godo.Response, error) ActionsFn func(int, *godo.ListOptions) ([]godo.Action, *godo.Response, error) NeighborsFn func(int) ([]godo.Droplet, *godo.Response, error) }
func (*Droplets) CreateMultiple ¶
type Storage ¶
type Storage struct { ListVolumesFn func(*godo.ListOptions) ([]godo.Volume, *godo.Response, error) GetVolumeFn func(string) (*godo.Volume, *godo.Response, error) CreateVolumeFn func(*godo.VolumeCreateRequest) (*godo.Volume, *godo.Response, error) DeleteVolumeFn func(string) (*godo.Response, error) }
func (*Storage) CreateVolume ¶
func (*Storage) ListVolumes ¶
type StorageActions ¶
type StorageActions struct { AttachFn func(volumeID string, dropletID int) (*godo.Action, *godo.Response, error) DetachFn func(volumeID string) (*godo.Action, *godo.Response, error) GetFn func(volumeID string, actionID int) (*godo.Action, *godo.Response, error) ListFn func(volumeID string, opt *godo.ListOptions) ([]godo.Action, *godo.Response, error) ResizeFn func(volumeID string, sizeGigabytes int, regionSlug string) (*godo.Action, *godo.Response, error) }
type Tags ¶
type Tags struct { ListFn func(*godo.ListOptions) ([]godo.Tag, *godo.Response, error) GetFn func(string) (*godo.Tag, *godo.Response, error) CreateFn func(*godo.TagCreateRequest) (*godo.Tag, *godo.Response, error) UpdateFn func(string, *godo.TagUpdateRequest) (*godo.Response, error) DeleteFn func(string) (*godo.Response, error) TagResourcesFn func(string, *godo.TagResourcesRequest) (*godo.Response, error) UntagResourcesFn func(string, *godo.UntagResourcesRequest) (*godo.Response, error) }
func (*Tags) TagResources ¶
func (*Tags) UntagResources ¶
Click to show internal directories.
Click to hide internal directories.