fake_digitalocean_provider

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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) Actions

func (f *Droplets) Actions(id int, l *godo.ListOptions) ([]godo.Action, *godo.Response, error)

func (*Droplets) Backups

func (f *Droplets) Backups(id int, l *godo.ListOptions) ([]godo.Image, *godo.Response, error)

func (*Droplets) Create

func (*Droplets) CreateMultiple

func (f *Droplets) CreateMultiple(r *godo.DropletMultiCreateRequest) ([]godo.Droplet, *godo.Response, error)

func (*Droplets) Delete

func (f *Droplets) Delete(id int) (*godo.Response, error)

func (*Droplets) DeleteByTag

func (f *Droplets) DeleteByTag(s string) (*godo.Response, error)

func (*Droplets) Get

func (f *Droplets) Get(id int) (*godo.Droplet, *godo.Response, error)

func (*Droplets) Kernels

func (f *Droplets) Kernels(id int, l *godo.ListOptions) ([]godo.Kernel, *godo.Response, error)

func (*Droplets) List

func (f *Droplets) List(l *godo.ListOptions) ([]godo.Droplet, *godo.Response, error)

func (*Droplets) ListByTag

func (f *Droplets) ListByTag(s string, l *godo.ListOptions) ([]godo.Droplet, *godo.Response, error)

func (*Droplets) Neighbors

func (f *Droplets) Neighbors(id int) ([]godo.Droplet, *godo.Response, error)

func (*Droplets) Snapshots

func (f *Droplets) Snapshots(id int, l *godo.ListOptions) ([]godo.Image, *godo.Response, error)

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 (f *Storage) CreateVolume(r *godo.VolumeCreateRequest) (*godo.Volume, *godo.Response, error)

func (*Storage) DeleteVolume

func (f *Storage) DeleteVolume(s string) (*godo.Response, error)

func (*Storage) GetVolume

func (f *Storage) GetVolume(s string) (*godo.Volume, *godo.Response, error)

func (*Storage) ListVolumes

func (f *Storage) ListVolumes(l *godo.ListOptions) ([]godo.Volume, *godo.Response, error)

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)
}

func (*StorageActions) Attach

func (f *StorageActions) Attach(volumeID string, dropletID int) (*godo.Action, *godo.Response, error)

func (*StorageActions) Detach

func (f *StorageActions) Detach(volumeID string) (*godo.Action, *godo.Response, error)

func (*StorageActions) Get

func (f *StorageActions) Get(volumeID string, actionID int) (*godo.Action, *godo.Response, error)

func (*StorageActions) List

func (f *StorageActions) List(volumeID string, opt *godo.ListOptions) ([]godo.Action, *godo.Response, error)

func (*StorageActions) Resize

func (f *StorageActions) Resize(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) Create

func (f *Tags) Create(r *godo.TagCreateRequest) (*godo.Tag, *godo.Response, error)

func (*Tags) Delete

func (f *Tags) Delete(s string) (*godo.Response, error)

func (*Tags) Get

func (f *Tags) Get(s string) (*godo.Tag, *godo.Response, error)

func (*Tags) List

func (f *Tags) List(l *godo.ListOptions) ([]godo.Tag, *godo.Response, error)

func (*Tags) TagResources

func (f *Tags) TagResources(s string, r *godo.TagResourcesRequest) (*godo.Response, error)

func (*Tags) UntagResources

func (f *Tags) UntagResources(s string, r *godo.UntagResourcesRequest) (*godo.Response, error)

func (*Tags) Update

func (f *Tags) Update(s string, r *godo.TagUpdateRequest) (*godo.Response, error)

Jump to

Keyboard shortcuts

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