mocks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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
}

AccountService is an autogenerated mock type for the AccountService type

func (*AccountService) Get

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

Get provides a mock function with given fields:

func (*AccountService) RateLimit

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

RateLimit provides a mock function with given fields:

type ActionsService

type ActionsService struct {
	mock.Mock
}

ActionsService is an autogenerated mock type for the ActionsService type

func (*ActionsService) Get

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

Get provides a mock function with given fields: _a0

func (*ActionsService) List

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

List provides a mock function with given fields:

type DomainsService

type DomainsService struct {
	mock.Mock
}

DomainsService is an autogenerated mock type for the DomainsService type

func (*DomainsService) Create

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

Create provides a mock function with given fields: _a0

func (*DomainsService) CreateRecord

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

CreateRecord provides a mock function with given fields: _a0, _a1

func (*DomainsService) Delete

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

Delete provides a mock function with given fields: _a0

func (*DomainsService) DeleteRecord

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

DeleteRecord provides a mock function with given fields: _a0, _a1

func (*DomainsService) EditRecord

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

EditRecord provides a mock function with given fields: _a0, _a1, _a2

func (*DomainsService) Get

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

Get provides a mock function with given fields: _a0

func (*DomainsService) List

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

List provides a mock function with given fields:

func (*DomainsService) Record

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

Record provides a mock function with given fields: _a0, _a1

func (*DomainsService) Records

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

Records provides a mock function with given fields: _a0

type DropletActionsService

type DropletActionsService struct {
	mock.Mock
}

DropletActionsService is an autogenerated mock type for the DropletActionsService type

func (*DropletActionsService) ChangeKernel

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

ChangeKernel provides a mock function with given fields: _a0, _a1

func (*DropletActionsService) DisableBackups

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

DisableBackups provides a mock function with given fields: _a0

func (*DropletActionsService) EnableBackups

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

EnableBackups provides a mock function with given fields: _a0

func (*DropletActionsService) EnableIPv6

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

EnableIPv6 provides a mock function with given fields: _a0

func (*DropletActionsService) EnablePrivateNetworking

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

EnablePrivateNetworking provides a mock function with given fields: _a0

func (*DropletActionsService) Get

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

Get provides a mock function with given fields: _a0, _a1

func (*DropletActionsService) GetByURI

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

GetByURI provides a mock function with given fields: _a0

func (*DropletActionsService) PasswordReset

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

PasswordReset provides a mock function with given fields: _a0

func (*DropletActionsService) PowerCycle

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

PowerCycle provides a mock function with given fields: _a0

func (*DropletActionsService) PowerOff

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

PowerOff provides a mock function with given fields: _a0

func (*DropletActionsService) PowerOn

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

PowerOn provides a mock function with given fields: _a0

func (*DropletActionsService) Reboot

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

Reboot provides a mock function with given fields: _a0

func (*DropletActionsService) RebuildByImageID

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

RebuildByImageID provides a mock function with given fields: _a0, _a1

func (*DropletActionsService) RebuildByImageSlug

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

RebuildByImageSlug provides a mock function with given fields: _a0, _a1

func (*DropletActionsService) Rename

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

Rename provides a mock function with given fields: _a0, _a1

func (*DropletActionsService) Resize

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

Resize provides a mock function with given fields: _a0, _a1, _a2

func (*DropletActionsService) Restore

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

Restore provides a mock function with given fields: _a0, _a1

func (*DropletActionsService) Shutdown

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

Shutdown provides a mock function with given fields: _a0

func (*DropletActionsService) Snapshot

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

Snapshot provides a mock function with given fields: _a0, _a1

func (*DropletActionsService) Upgrade

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

Upgrade provides a mock function with given fields: _a0

type DropletsService

type DropletsService struct {
	mock.Mock
}

DropletsService is an autogenerated mock type for the DropletsService type

func (*DropletsService) Actions

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

Actions provides a mock function with given fields: _a0

func (*DropletsService) Backups

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

Backups provides a mock function with given fields: _a0

func (*DropletsService) Create

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

Create provides a mock function with given fields: _a0, _a1

func (*DropletsService) CreateMultiple

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

CreateMultiple provides a mock function with given fields: _a0

func (*DropletsService) Delete

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

Delete provides a mock function with given fields: _a0

func (*DropletsService) DeleteByTag added in v1.1.0

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

DeleteByTag provides a mock function with given fields: _a0

func (*DropletsService) Get

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

Get provides a mock function with given fields: _a0

func (*DropletsService) Kernels

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

Kernels provides a mock function with given fields: _a0

func (*DropletsService) List

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

List provides a mock function with given fields:

func (*DropletsService) ListByTag added in v1.1.0

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

ListByTag provides a mock function with given fields: _a0

func (*DropletsService) Neighbors

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

Neighbors provides a mock function with given fields: _a0

func (*DropletsService) Snapshots

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

Snapshots provides a mock function with given fields: _a0

type FloatingIPActionsService

type FloatingIPActionsService struct {
	mock.Mock
}

FloatingIPActionsService is an autogenerated mock type for the FloatingIPActionsService type

func (*FloatingIPActionsService) Assign

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

Assign provides a mock function with given fields: ip, dropletID

func (*FloatingIPActionsService) Get

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

Get provides a mock function with given fields: ip, actionID

func (*FloatingIPActionsService) List

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

List provides a mock function with given fields: ip, opt

func (*FloatingIPActionsService) Unassign

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

Unassign provides a mock function with given fields: ip

type FloatingIPsService

type FloatingIPsService struct {
	mock.Mock
}

FloatingIPsService is an autogenerated mock type for the FloatingIPsService type

func (*FloatingIPsService) Create

Create provides a mock function with given fields: ficr

func (*FloatingIPsService) Delete

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

Delete provides a mock function with given fields: ip

func (*FloatingIPsService) Get

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

Get provides a mock function with given fields: ip

func (*FloatingIPsService) List

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

List provides a mock function with given fields:

type ImageActionsService

type ImageActionsService struct {
	mock.Mock
}

ImageActionsService is an autogenerated mock type for the ImageActionsService type

func (*ImageActionsService) Get

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

Get provides a mock function with given fields: _a0, _a1

func (*ImageActionsService) Transfer

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

Transfer provides a mock function with given fields: _a0, _a1

type ImagesService

type ImagesService struct {
	mock.Mock
}

ImagesService is an autogenerated mock type for the ImagesService type

func (*ImagesService) Delete

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

Delete provides a mock function with given fields: id

func (*ImagesService) GetByID

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

GetByID provides a mock function with given fields: id

func (*ImagesService) GetBySlug

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

GetBySlug provides a mock function with given fields: slug

func (*ImagesService) List

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

List provides a mock function with given fields: public

func (*ImagesService) ListApplication

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

ListApplication provides a mock function with given fields: public

func (*ImagesService) ListDistribution

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

ListDistribution provides a mock function with given fields: public

func (*ImagesService) ListUser

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

ListUser provides a mock function with given fields: public

func (*ImagesService) Update

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

Update provides a mock function with given fields: id, iur

type KeysService

type KeysService struct {
	mock.Mock
}

KeysService is an autogenerated mock type for the KeysService type

func (*KeysService) Create

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

Create provides a mock function with given fields: kcr

func (*KeysService) Delete

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

Delete provides a mock function with given fields: id

func (*KeysService) Get

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

Get provides a mock function with given fields: id

func (*KeysService) List

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

List provides a mock function with given fields:

func (*KeysService) Update

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

Update provides a mock function with given fields: id, kur

type RegionsService

type RegionsService struct {
	mock.Mock
}

RegionsService is an autogenerated mock type for the RegionsService type

func (*RegionsService) List

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

List provides a mock function with given fields:

type SizesService

type SizesService struct {
	mock.Mock
}

SizesService is an autogenerated mock type for the SizesService type

func (*SizesService) List

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

List provides a mock function with given fields:

type TagsService added in v1.1.0

type TagsService struct {
	mock.Mock
}

TagsService is an autogenerated mock type for the TagsService type

func (*TagsService) Create added in v1.1.0

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

Create provides a mock function with given fields: _a0

func (*TagsService) Delete added in v1.1.0

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

Delete provides a mock function with given fields: _a0

func (*TagsService) Get added in v1.1.0

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

Get provides a mock function with given fields: _a0

func (*TagsService) List added in v1.1.0

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

List provides a mock function with given fields:

func (*TagsService) TagResources added in v1.1.0

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

TagResources provides a mock function with given fields: _a0, _a1

func (*TagsService) UntagResources added in v1.1.0

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

UntagResources provides a mock function with given fields: _a0, _a1

func (*TagsService) Update added in v1.1.0

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

Update provides a mock function with given fields: _a0, _a1

type VolumeActionsService added in v1.3.0

type VolumeActionsService struct {
	mock.Mock
}

VolumeActionsService is an autogenerated mock type for the VolumeActionsService type

func (*VolumeActionsService) Attach added in v1.3.0

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

Attach provides a mock function with given fields: _a0, _a1

func (*VolumeActionsService) Detach added in v1.3.0

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

Detach provides a mock function with given fields: _a0

type VolumesService added in v1.3.0

type VolumesService struct {
	mock.Mock
}

VolumesService is an autogenerated mock type for the VolumesService type

func (*VolumesService) CreateVolume added in v1.3.0

func (_m *VolumesService) CreateVolume(_a0 *godo.VolumeCreateRequest) (*do.Volume, error)

CreateVolume provides a mock function with given fields: _a0

func (*VolumesService) DeleteVolume added in v1.3.0

func (_m *VolumesService) DeleteVolume(_a0 string) error

DeleteVolume provides a mock function with given fields: _a0

func (*VolumesService) Get added in v1.3.0

func (_m *VolumesService) Get(_a0 string) (*do.Volume, error)

Get provides a mock function with given fields: _a0

func (*VolumesService) List added in v1.3.0

func (_m *VolumesService) List() ([]do.Volume, error)

List provides a mock function with given fields:

Jump to

Keyboard shortcuts

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