mocks

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 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 CDNsService added in v1.9.0

type CDNsService struct {
	mock.Mock
}

CDNsService is an autogenerated mock type for the CDNsService type

func (*CDNsService) Create added in v1.9.0

func (_m *CDNsService) Create(_a0 *godo.CDNCreateRequest) (*do.CDN, error)

Create provides a mock function with given fields: _a0

func (*CDNsService) Delete added in v1.9.0

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

Delete provides a mock function with given fields: _a0

func (*CDNsService) FlushCache added in v1.9.0

func (_m *CDNsService) FlushCache(_a0 string, _a1 *godo.CDNFlushCacheRequest) error

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

func (*CDNsService) Get added in v1.9.0

func (_m *CDNsService) Get(_a0 string) (*do.CDN, error)

Get provides a mock function with given fields: _a0

func (*CDNsService) List added in v1.9.0

func (_m *CDNsService) List() ([]do.CDN, error)

List provides a mock function with given fields:

func (*CDNsService) UpdateTTL added in v1.9.0

func (_m *CDNsService) UpdateTTL(_a0 string, _a1 *godo.CDNUpdateRequest) (*do.CDN, error)

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

type CertificatesService added in v1.6.0

type CertificatesService struct {
	mock.Mock
}

CertificatesService is an autogenerated mock type for the CertificatesService type

func (*CertificatesService) Create added in v1.6.0

Create provides a mock function with given fields: cr

func (*CertificatesService) Delete added in v1.6.0

func (_m *CertificatesService) Delete(cID string) error

Delete provides a mock function with given fields: cID

func (*CertificatesService) Get added in v1.6.0

func (_m *CertificatesService) Get(cID string) (*do.Certificate, error)

Get provides a mock function with given fields: cID

func (*CertificatesService) List added in v1.6.0

func (_m *CertificatesService) List() (do.Certificates, 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) DisableBackupsByTag added in v1.6.1

func (_m *DropletActionsService) DisableBackupsByTag(_a0 string) (do.Actions, error)

DisableBackupsByTag 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) EnableBackupsByTag added in v1.6.1

func (_m *DropletActionsService) EnableBackupsByTag(_a0 string) (do.Actions, error)

EnableBackupsByTag 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) EnableIPv6ByTag added in v1.6.1

func (_m *DropletActionsService) EnableIPv6ByTag(_a0 string) (do.Actions, error)

EnableIPv6ByTag 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) EnablePrivateNetworkingByTag added in v1.6.1

func (_m *DropletActionsService) EnablePrivateNetworkingByTag(_a0 string) (do.Actions, error)

EnablePrivateNetworkingByTag 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) PowerCycleByTag added in v1.6.1

func (_m *DropletActionsService) PowerCycleByTag(_a0 string) (do.Actions, error)

PowerCycleByTag 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) PowerOffByTag added in v1.6.1

func (_m *DropletActionsService) PowerOffByTag(_a0 string) (do.Actions, error)

PowerOffByTag 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) PowerOnByTag added in v1.6.1

func (_m *DropletActionsService) PowerOnByTag(_a0 string) (do.Actions, error)

PowerOnByTag 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) ShutdownByTag added in v1.6.1

func (_m *DropletActionsService) ShutdownByTag(_a0 string) (do.Actions, error)

ShutdownByTag 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) SnapshotByTag added in v1.6.1

func (_m *DropletActionsService) SnapshotByTag(_a0 string, _a1 string) (do.Actions, error)

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

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 FirewallsService added in v1.7.0

type FirewallsService struct {
	mock.Mock
}

FirewallsService is an autogenerated mock type for the FirewallsService type

func (*FirewallsService) AddDroplets added in v1.7.0

func (_m *FirewallsService) AddDroplets(fID string, dIDs ...int) error

AddDroplets provides a mock function with given fields: fID, dIDs

func (*FirewallsService) AddRules added in v1.7.0

func (_m *FirewallsService) AddRules(fID string, rr *godo.FirewallRulesRequest) error

AddRules provides a mock function with given fields: fID, rr

func (*FirewallsService) AddTags added in v1.7.0

func (_m *FirewallsService) AddTags(fID string, tags ...string) error

AddTags provides a mock function with given fields: fID, tags

func (*FirewallsService) Create added in v1.7.0

func (_m *FirewallsService) Create(fr *godo.FirewallRequest) (*do.Firewall, error)

Create provides a mock function with given fields: fr

func (*FirewallsService) Delete added in v1.7.0

func (_m *FirewallsService) Delete(fID string) error

Delete provides a mock function with given fields: fID

func (*FirewallsService) Get added in v1.7.0

func (_m *FirewallsService) Get(fID string) (*do.Firewall, error)

Get provides a mock function with given fields: fID

func (*FirewallsService) List added in v1.7.0

func (_m *FirewallsService) List() (do.Firewalls, error)

List provides a mock function with given fields:

func (*FirewallsService) ListByDroplet added in v1.7.0

func (_m *FirewallsService) ListByDroplet(dID int) (do.Firewalls, error)

ListByDroplet provides a mock function with given fields: dID

func (*FirewallsService) RemoveDroplets added in v1.7.0

func (_m *FirewallsService) RemoveDroplets(fID string, dIDs ...int) error

RemoveDroplets provides a mock function with given fields: fID, dIDs

func (*FirewallsService) RemoveRules added in v1.7.0

func (_m *FirewallsService) RemoveRules(fID string, rr *godo.FirewallRulesRequest) error

RemoveRules provides a mock function with given fields: fID, rr

func (*FirewallsService) RemoveTags added in v1.7.0

func (_m *FirewallsService) RemoveTags(fID string, tags ...string) error

RemoveTags provides a mock function with given fields: fID, tags

func (*FirewallsService) Update added in v1.7.0

func (_m *FirewallsService) Update(fID string, fr *godo.FirewallRequest) (*do.Firewall, error)

Update provides a mock function with given fields: fID, fr

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) Convert added in v1.6.1

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

Convert provides a mock function with given fields: _a0

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 LoadBalancersService added in v1.6.0

type LoadBalancersService struct {
	mock.Mock
}

LoadBalancersService is an autogenerated mock type for the LoadBalancersService type

func (*LoadBalancersService) AddDroplets added in v1.6.0

func (_m *LoadBalancersService) AddDroplets(lbID string, dIDs ...int) error

AddDroplets provides a mock function with given fields: lbID, dIDs

func (*LoadBalancersService) AddForwardingRules added in v1.6.0

func (_m *LoadBalancersService) AddForwardingRules(lbID string, rules ...godo.ForwardingRule) error

AddForwardingRules provides a mock function with given fields: lbID, rules

func (*LoadBalancersService) Create added in v1.6.0

Create provides a mock function with given fields: lbr

func (*LoadBalancersService) Delete added in v1.6.0

func (_m *LoadBalancersService) Delete(lbID string) error

Delete provides a mock function with given fields: lbID

func (*LoadBalancersService) Get added in v1.6.0

func (_m *LoadBalancersService) Get(lbID string) (*do.LoadBalancer, error)

Get provides a mock function with given fields: lbID

func (*LoadBalancersService) List added in v1.6.0

List provides a mock function with given fields:

func (*LoadBalancersService) RemoveDroplets added in v1.6.0

func (_m *LoadBalancersService) RemoveDroplets(lbID string, dIDs ...int) error

RemoveDroplets provides a mock function with given fields: lbID, dIDs

func (*LoadBalancersService) RemoveForwardingRules added in v1.6.0

func (_m *LoadBalancersService) RemoveForwardingRules(lbID string, rules ...godo.ForwardingRule) error

RemoveForwardingRules provides a mock function with given fields: lbID, rules

func (*LoadBalancersService) Update added in v1.6.0

Update provides a mock function with given fields: lbID, lbr

type ProjectsService added in v1.11.0

type ProjectsService struct {
	mock.Mock
}

ProjectsService is an autogenerated mock type for the ProjectsService type

func (*ProjectsService) AssignResources added in v1.11.0

func (_m *ProjectsService) AssignResources(projectUUID string, resources []string) (do.ProjectResources, error)

AssignResources provides a mock function with given fields: projectUUID, resources

func (*ProjectsService) Create added in v1.11.0

Create provides a mock function with given fields: _a0

func (*ProjectsService) Delete added in v1.11.0

func (_m *ProjectsService) Delete(projectUUID string) error

Delete provides a mock function with given fields: projectUUID

func (*ProjectsService) Get added in v1.11.0

func (_m *ProjectsService) Get(projectUUID string) (*do.Project, error)

Get provides a mock function with given fields: projectUUID

func (*ProjectsService) GetDefault added in v1.11.0

func (_m *ProjectsService) GetDefault() (*do.Project, error)

GetDefault provides a mock function with given fields:

func (*ProjectsService) List added in v1.11.0

func (_m *ProjectsService) List() (do.Projects, error)

List provides a mock function with given fields:

func (*ProjectsService) ListResources added in v1.11.0

func (_m *ProjectsService) ListResources(projectUUID string) (do.ProjectResources, error)

ListResources provides a mock function with given fields: projectUUID

func (*ProjectsService) Update added in v1.11.0

func (_m *ProjectsService) Update(projectUUID string, req *godo.UpdateProjectRequest) (*do.Project, error)

Update provides a mock function with given fields: projectUUID, req

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 SnapshotsService added in v1.6.0

type SnapshotsService struct {
	mock.Mock
}

SnapshotsService is an autogenerated mock type for the SnapshotsService type

func (*SnapshotsService) Delete added in v1.6.0

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

Delete provides a mock function with given fields: _a0

func (*SnapshotsService) Get added in v1.6.0

func (_m *SnapshotsService) Get(_a0 string) (*do.Snapshot, error)

Get provides a mock function with given fields: _a0

func (*SnapshotsService) List added in v1.6.0

func (_m *SnapshotsService) List() (do.Snapshots, error)

List provides a mock function with given fields:

func (*SnapshotsService) ListDroplet added in v1.6.0

func (_m *SnapshotsService) ListDroplet() (do.Snapshots, error)

ListDroplet provides a mock function with given fields:

func (*SnapshotsService) ListVolume added in v1.6.0

func (_m *SnapshotsService) ListVolume() (do.Snapshots, error)

ListVolume 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

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, _a1 int) (*do.Action, error)

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

func (*VolumeActionsService) Get added in v1.6.1

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

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

func (*VolumeActionsService) List added in v1.6.1

func (_m *VolumeActionsService) List(_a0 string, _a1 *godo.ListOptions) ([]do.Action, error)

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

func (*VolumeActionsService) Resize added in v1.6.0

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

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

type VolumesService added in v1.3.0

type VolumesService struct {
	mock.Mock
}

VolumesService is an autogenerated mock type for the VolumesService type

func (*VolumesService) CreateSnapshot added in v1.6.0

func (_m *VolumesService) CreateSnapshot(_a0 *godo.SnapshotCreateRequest) (*do.Snapshot, error)

CreateSnapshot provides a mock function with given fields: _a0

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) DeleteSnapshot added in v1.6.1

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

DeleteSnapshot 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) GetSnapshot added in v1.6.1

func (_m *VolumesService) GetSnapshot(_a0 string) (*do.Snapshot, error)

GetSnapshot 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:

func (*VolumesService) ListSnapshots added in v1.6.1

func (_m *VolumesService) ListSnapshots(_a0 string, _a1 *godo.ListOptions) ([]do.Snapshot, error)

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

Jump to

Keyboard shortcuts

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