mocks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountService

type AccountService struct {
	mock.Mock
}

func (*AccountService) Get

func (_m *AccountService) Get() (*do.Account, error)

func (*AccountService) RateLimit

func (_m *AccountService) RateLimit() (*do.RateLimit, error)

type ActionsService

type ActionsService struct {
	mock.Mock
}

func (*ActionsService) Get

func (_m *ActionsService) Get(_a0 int) (*do.Action, error)

func (*ActionsService) List

func (_m *ActionsService) List() (do.Actions, error)

type DomainsService

type DomainsService struct {
	mock.Mock
}

func (*DomainsService) Create

func (_m *DomainsService) Create(_a0 *godo.DomainCreateRequest) (*do.Domain, error)

func (*DomainsService) CreateRecord

func (_m *DomainsService) CreateRecord(_a0 string, _a1 *godo.DomainRecordEditRequest) (*do.DomainRecord, error)

func (*DomainsService) Delete

func (_m *DomainsService) Delete(_a0 string) error

func (*DomainsService) DeleteRecord

func (_m *DomainsService) DeleteRecord(_a0 string, _a1 int) error

func (*DomainsService) EditRecord

func (_m *DomainsService) EditRecord(_a0 string, _a1 int, _a2 *godo.DomainRecordEditRequest) (*do.DomainRecord, error)

func (*DomainsService) Get

func (_m *DomainsService) Get(_a0 string) (*do.Domain, error)

func (*DomainsService) List

func (_m *DomainsService) List() (do.Domains, error)

func (*DomainsService) Record

func (_m *DomainsService) Record(_a0 string, _a1 int) (*do.DomainRecord, error)

func (*DomainsService) Records

func (_m *DomainsService) Records(_a0 string) (do.DomainRecords, error)

type DriveActionsService added in v1.1.0

type DriveActionsService struct {
	mock.Mock
}

func (*DriveActionsService) Attach added in v1.1.0

func (_m *DriveActionsService) Attach(_a0 string, _a1 int) (*do.Action, error)

func (*DriveActionsService) Detach added in v1.1.0

func (_m *DriveActionsService) Detach(_a0 string) (*do.Action, error)

type DrivesService added in v1.1.0

type DrivesService struct {
	mock.Mock
}

func (*DrivesService) CreateDrive added in v1.1.0

func (_m *DrivesService) CreateDrive(_a0 *godo.DriveCreateRequest) (*do.Drive, error)

func (*DrivesService) DeleteDrive added in v1.1.0

func (_m *DrivesService) DeleteDrive(_a0 string) error

func (*DrivesService) Get added in v1.1.0

func (_m *DrivesService) Get(_a0 string) (*do.Drive, error)

func (*DrivesService) List added in v1.1.0

func (_m *DrivesService) List() ([]do.Drive, error)

type DropletActionsService

type DropletActionsService struct {
	mock.Mock
}

func (*DropletActionsService) ChangeKernel

func (_m *DropletActionsService) ChangeKernel(_a0 int, _a1 int) (*do.Action, error)

func (*DropletActionsService) DisableBackups

func (_m *DropletActionsService) DisableBackups(_a0 int) (*do.Action, error)

func (*DropletActionsService) EnableBackups

func (_m *DropletActionsService) EnableBackups(_a0 int) (*do.Action, error)

func (*DropletActionsService) EnableIPv6

func (_m *DropletActionsService) EnableIPv6(_a0 int) (*do.Action, error)

func (*DropletActionsService) EnablePrivateNetworking

func (_m *DropletActionsService) EnablePrivateNetworking(_a0 int) (*do.Action, error)

func (*DropletActionsService) Get

func (_m *DropletActionsService) Get(_a0 int, _a1 int) (*do.Action, error)

func (*DropletActionsService) GetByURI

func (_m *DropletActionsService) GetByURI(_a0 string) (*do.Action, error)

func (*DropletActionsService) PasswordReset

func (_m *DropletActionsService) PasswordReset(_a0 int) (*do.Action, error)

func (*DropletActionsService) PowerCycle

func (_m *DropletActionsService) PowerCycle(_a0 int) (*do.Action, error)

func (*DropletActionsService) PowerOff

func (_m *DropletActionsService) PowerOff(_a0 int) (*do.Action, error)

func (*DropletActionsService) PowerOn

func (_m *DropletActionsService) PowerOn(_a0 int) (*do.Action, error)

func (*DropletActionsService) Reboot

func (_m *DropletActionsService) Reboot(_a0 int) (*do.Action, error)

func (*DropletActionsService) RebuildByImageID

func (_m *DropletActionsService) RebuildByImageID(_a0 int, _a1 int) (*do.Action, error)

func (*DropletActionsService) RebuildByImageSlug

func (_m *DropletActionsService) RebuildByImageSlug(_a0 int, _a1 string) (*do.Action, error)

func (*DropletActionsService) Rename

func (_m *DropletActionsService) Rename(_a0 int, _a1 string) (*do.Action, error)

func (*DropletActionsService) Resize

func (_m *DropletActionsService) Resize(_a0 int, _a1 string, _a2 bool) (*do.Action, error)

func (*DropletActionsService) Restore

func (_m *DropletActionsService) Restore(_a0 int, _a1 int) (*do.Action, error)

func (*DropletActionsService) Shutdown

func (_m *DropletActionsService) Shutdown(_a0 int) (*do.Action, error)

func (*DropletActionsService) Snapshot

func (_m *DropletActionsService) Snapshot(_a0 int, _a1 string) (*do.Action, error)

func (*DropletActionsService) Upgrade

func (_m *DropletActionsService) Upgrade(_a0 int) (*do.Action, error)

type DropletsService

type DropletsService struct {
	mock.Mock
}

func (*DropletsService) Actions

func (_m *DropletsService) Actions(_a0 int) (do.Actions, error)

func (*DropletsService) Backups

func (_m *DropletsService) Backups(_a0 int) (do.Images, error)

func (*DropletsService) Create

func (_m *DropletsService) Create(_a0 *godo.DropletCreateRequest, _a1 bool) (*do.Droplet, error)

func (*DropletsService) CreateMultiple

func (_m *DropletsService) CreateMultiple(_a0 *godo.DropletMultiCreateRequest) (do.Droplets, error)

func (*DropletsService) Delete

func (_m *DropletsService) Delete(_a0 int) error

func (*DropletsService) DeleteByTag added in v1.1.0

func (_m *DropletsService) DeleteByTag(_a0 string) error

func (*DropletsService) Get

func (_m *DropletsService) Get(_a0 int) (*do.Droplet, error)

func (*DropletsService) Kernels

func (_m *DropletsService) Kernels(_a0 int) (do.Kernels, error)

func (*DropletsService) List

func (_m *DropletsService) List() (do.Droplets, error)

func (*DropletsService) ListByTag added in v1.1.0

func (_m *DropletsService) ListByTag(_a0 string) (do.Droplets, error)

func (*DropletsService) Neighbors

func (_m *DropletsService) Neighbors(_a0 int) (do.Droplets, error)

func (*DropletsService) Snapshots

func (_m *DropletsService) Snapshots(_a0 int) (do.Images, error)

type FloatingIPActionsService

type FloatingIPActionsService struct {
	mock.Mock
}

func (*FloatingIPActionsService) Assign

func (_m *FloatingIPActionsService) Assign(ip string, dropletID int) (*do.Action, error)

func (*FloatingIPActionsService) Get

func (_m *FloatingIPActionsService) Get(ip string, actionID int) (*do.Action, error)

func (*FloatingIPActionsService) List

func (_m *FloatingIPActionsService) List(ip string, opt *godo.ListOptions) ([]do.Action, error)

func (*FloatingIPActionsService) Unassign

func (_m *FloatingIPActionsService) Unassign(ip string) (*do.Action, error)

type FloatingIPsService

type FloatingIPsService struct {
	mock.Mock
}

func (*FloatingIPsService) Create

func (*FloatingIPsService) Delete

func (_m *FloatingIPsService) Delete(ip string) error

func (*FloatingIPsService) Get

func (_m *FloatingIPsService) Get(ip string) (*do.FloatingIP, error)

func (*FloatingIPsService) List

func (_m *FloatingIPsService) List() (do.FloatingIPs, error)

type ImageActionsService

type ImageActionsService struct {
	mock.Mock
}

func (*ImageActionsService) Get

func (_m *ImageActionsService) Get(_a0 int, _a1 int) (*do.Action, error)

func (*ImageActionsService) Transfer

func (_m *ImageActionsService) Transfer(_a0 int, _a1 *godo.ActionRequest) (*do.Action, error)

type ImagesService

type ImagesService struct {
	mock.Mock
}

func (*ImagesService) Delete

func (_m *ImagesService) Delete(id int) error

func (*ImagesService) GetByID

func (_m *ImagesService) GetByID(id int) (*do.Image, error)

func (*ImagesService) GetBySlug

func (_m *ImagesService) GetBySlug(slug string) (*do.Image, error)

func (*ImagesService) List

func (_m *ImagesService) List(public bool) (do.Images, error)

func (*ImagesService) ListApplication

func (_m *ImagesService) ListApplication(public bool) (do.Images, error)

func (*ImagesService) ListDistribution

func (_m *ImagesService) ListDistribution(public bool) (do.Images, error)

func (*ImagesService) ListUser

func (_m *ImagesService) ListUser(public bool) (do.Images, error)

func (*ImagesService) Update

func (_m *ImagesService) Update(id int, iur *godo.ImageUpdateRequest) (*do.Image, error)

type KeysService

type KeysService struct {
	mock.Mock
}

func (*KeysService) Create

func (_m *KeysService) Create(kcr *godo.KeyCreateRequest) (*do.SSHKey, error)

func (*KeysService) Delete

func (_m *KeysService) Delete(id string) error

func (*KeysService) Get

func (_m *KeysService) Get(id string) (*do.SSHKey, error)

func (*KeysService) List

func (_m *KeysService) List() (do.SSHKeys, error)

func (*KeysService) Update

func (_m *KeysService) Update(id string, kur *godo.KeyUpdateRequest) (*do.SSHKey, error)

type RegionsService

type RegionsService struct {
	mock.Mock
}

func (*RegionsService) List

func (_m *RegionsService) List() (do.Regions, error)

type SizesService

type SizesService struct {
	mock.Mock
}

func (*SizesService) List

func (_m *SizesService) List() (do.Sizes, error)

type TagsService added in v1.1.0

type TagsService struct {
	mock.Mock
}

func (*TagsService) Create added in v1.1.0

func (_m *TagsService) Create(_a0 *godo.TagCreateRequest) (*do.Tag, error)

func (*TagsService) Delete added in v1.1.0

func (_m *TagsService) Delete(_a0 string) error

func (*TagsService) Get added in v1.1.0

func (_m *TagsService) Get(_a0 string) (*do.Tag, error)

func (*TagsService) List added in v1.1.0

func (_m *TagsService) List() (do.Tags, error)

func (*TagsService) TagResources added in v1.1.0

func (_m *TagsService) TagResources(_a0 string, _a1 *godo.TagResourcesRequest) error

func (*TagsService) UntagResources added in v1.1.0

func (_m *TagsService) UntagResources(_a0 string, _a1 *godo.UntagResourcesRequest) error

func (*TagsService) Update added in v1.1.0

func (_m *TagsService) Update(_a0 string, _a1 *godo.TagUpdateRequest) error

Jump to

Keyboard shortcuts

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