Documentation ¶
Index ¶
- type AccountService
- type ActionsService
- type CDNsService
- func (_m *CDNsService) Create(_a0 *godo.CDNCreateRequest) (*do.CDN, error)
- func (_m *CDNsService) Delete(_a0 string) error
- func (_m *CDNsService) FlushCache(_a0 string, _a1 *godo.CDNFlushCacheRequest) error
- func (_m *CDNsService) Get(_a0 string) (*do.CDN, error)
- func (_m *CDNsService) List() ([]do.CDN, error)
- func (_m *CDNsService) UpdateTTL(_a0 string, _a1 *godo.CDNUpdateRequest) (*do.CDN, error)
- type CertificatesService
- type DomainsService
- func (_m *DomainsService) Create(_a0 *godo.DomainCreateRequest) (*do.Domain, error)
- func (_m *DomainsService) CreateRecord(_a0 string, _a1 *godo.DomainRecordEditRequest) (*do.DomainRecord, error)
- func (_m *DomainsService) Delete(_a0 string) error
- func (_m *DomainsService) DeleteRecord(_a0 string, _a1 int) error
- func (_m *DomainsService) EditRecord(_a0 string, _a1 int, _a2 *godo.DomainRecordEditRequest) (*do.DomainRecord, error)
- func (_m *DomainsService) Get(_a0 string) (*do.Domain, error)
- func (_m *DomainsService) List() (do.Domains, error)
- func (_m *DomainsService) Record(_a0 string, _a1 int) (*do.DomainRecord, error)
- func (_m *DomainsService) Records(_a0 string) (do.DomainRecords, error)
- type DropletActionsService
- func (_m *DropletActionsService) ChangeKernel(_a0 int, _a1 int) (*do.Action, error)
- func (_m *DropletActionsService) DisableBackups(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) DisableBackupsByTag(_a0 string) (do.Actions, error)
- func (_m *DropletActionsService) EnableBackups(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) EnableBackupsByTag(_a0 string) (do.Actions, error)
- func (_m *DropletActionsService) EnableIPv6(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) EnableIPv6ByTag(_a0 string) (do.Actions, error)
- func (_m *DropletActionsService) EnablePrivateNetworking(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) EnablePrivateNetworkingByTag(_a0 string) (do.Actions, error)
- func (_m *DropletActionsService) Get(_a0 int, _a1 int) (*do.Action, error)
- func (_m *DropletActionsService) GetByURI(_a0 string) (*do.Action, error)
- func (_m *DropletActionsService) PasswordReset(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) PowerCycle(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) PowerCycleByTag(_a0 string) (do.Actions, error)
- func (_m *DropletActionsService) PowerOff(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) PowerOffByTag(_a0 string) (do.Actions, error)
- func (_m *DropletActionsService) PowerOn(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) PowerOnByTag(_a0 string) (do.Actions, error)
- func (_m *DropletActionsService) Reboot(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) RebuildByImageID(_a0 int, _a1 int) (*do.Action, error)
- func (_m *DropletActionsService) RebuildByImageSlug(_a0 int, _a1 string) (*do.Action, error)
- func (_m *DropletActionsService) Rename(_a0 int, _a1 string) (*do.Action, error)
- func (_m *DropletActionsService) Resize(_a0 int, _a1 string, _a2 bool) (*do.Action, error)
- func (_m *DropletActionsService) Restore(_a0 int, _a1 int) (*do.Action, error)
- func (_m *DropletActionsService) Shutdown(_a0 int) (*do.Action, error)
- func (_m *DropletActionsService) ShutdownByTag(_a0 string) (do.Actions, error)
- func (_m *DropletActionsService) Snapshot(_a0 int, _a1 string) (*do.Action, error)
- func (_m *DropletActionsService) SnapshotByTag(_a0 string, _a1 string) (do.Actions, error)
- type DropletsService
- func (_m *DropletsService) Actions(_a0 int) (do.Actions, error)
- func (_m *DropletsService) Backups(_a0 int) (do.Images, error)
- func (_m *DropletsService) Create(_a0 *godo.DropletCreateRequest, _a1 bool) (*do.Droplet, error)
- func (_m *DropletsService) CreateMultiple(_a0 *godo.DropletMultiCreateRequest) (do.Droplets, error)
- func (_m *DropletsService) Delete(_a0 int) error
- func (_m *DropletsService) DeleteByTag(_a0 string) error
- func (_m *DropletsService) Get(_a0 int) (*do.Droplet, error)
- func (_m *DropletsService) Kernels(_a0 int) (do.Kernels, error)
- func (_m *DropletsService) List() (do.Droplets, error)
- func (_m *DropletsService) ListByTag(_a0 string) (do.Droplets, error)
- func (_m *DropletsService) Neighbors(_a0 int) (do.Droplets, error)
- func (_m *DropletsService) Snapshots(_a0 int) (do.Images, error)
- type FirewallsService
- func (_m *FirewallsService) AddDroplets(fID string, dIDs ...int) error
- func (_m *FirewallsService) AddRules(fID string, rr *godo.FirewallRulesRequest) error
- func (_m *FirewallsService) AddTags(fID string, tags ...string) error
- func (_m *FirewallsService) Create(fr *godo.FirewallRequest) (*do.Firewall, error)
- func (_m *FirewallsService) Delete(fID string) error
- func (_m *FirewallsService) Get(fID string) (*do.Firewall, error)
- func (_m *FirewallsService) List() (do.Firewalls, error)
- func (_m *FirewallsService) ListByDroplet(dID int) (do.Firewalls, error)
- func (_m *FirewallsService) RemoveDroplets(fID string, dIDs ...int) error
- func (_m *FirewallsService) RemoveRules(fID string, rr *godo.FirewallRulesRequest) error
- func (_m *FirewallsService) RemoveTags(fID string, tags ...string) error
- func (_m *FirewallsService) Update(fID string, fr *godo.FirewallRequest) (*do.Firewall, error)
- type FloatingIPActionsService
- func (_m *FloatingIPActionsService) Assign(ip string, dropletID int) (*do.Action, error)
- func (_m *FloatingIPActionsService) Get(ip string, actionID int) (*do.Action, error)
- func (_m *FloatingIPActionsService) List(ip string, opt *godo.ListOptions) ([]do.Action, error)
- func (_m *FloatingIPActionsService) Unassign(ip string) (*do.Action, error)
- type FloatingIPsService
- type ImageActionsService
- type ImagesService
- func (_m *ImagesService) Delete(id int) error
- func (_m *ImagesService) GetByID(id int) (*do.Image, error)
- func (_m *ImagesService) GetBySlug(slug string) (*do.Image, error)
- func (_m *ImagesService) List(public bool) (do.Images, error)
- func (_m *ImagesService) ListApplication(public bool) (do.Images, error)
- func (_m *ImagesService) ListDistribution(public bool) (do.Images, error)
- func (_m *ImagesService) ListUser(public bool) (do.Images, error)
- func (_m *ImagesService) Update(id int, iur *godo.ImageUpdateRequest) (*do.Image, error)
- type KeysService
- func (_m *KeysService) Create(kcr *godo.KeyCreateRequest) (*do.SSHKey, error)
- func (_m *KeysService) Delete(id string) error
- func (_m *KeysService) Get(id string) (*do.SSHKey, error)
- func (_m *KeysService) List() (do.SSHKeys, error)
- func (_m *KeysService) Update(id string, kur *godo.KeyUpdateRequest) (*do.SSHKey, error)
- type LoadBalancersService
- func (_m *LoadBalancersService) AddDroplets(lbID string, dIDs ...int) error
- func (_m *LoadBalancersService) AddForwardingRules(lbID string, rules ...godo.ForwardingRule) error
- func (_m *LoadBalancersService) Create(lbr *godo.LoadBalancerRequest) (*do.LoadBalancer, error)
- func (_m *LoadBalancersService) Delete(lbID string) error
- func (_m *LoadBalancersService) Get(lbID string) (*do.LoadBalancer, error)
- func (_m *LoadBalancersService) List() (do.LoadBalancers, error)
- func (_m *LoadBalancersService) RemoveDroplets(lbID string, dIDs ...int) error
- func (_m *LoadBalancersService) RemoveForwardingRules(lbID string, rules ...godo.ForwardingRule) error
- func (_m *LoadBalancersService) Update(lbID string, lbr *godo.LoadBalancerRequest) (*do.LoadBalancer, error)
- type RegionsService
- type SizesService
- type SnapshotsService
- func (_m *SnapshotsService) Delete(_a0 string) error
- func (_m *SnapshotsService) Get(_a0 string) (*do.Snapshot, error)
- func (_m *SnapshotsService) List() (do.Snapshots, error)
- func (_m *SnapshotsService) ListDroplet() (do.Snapshots, error)
- func (_m *SnapshotsService) ListVolume() (do.Snapshots, error)
- type TagsService
- func (_m *TagsService) Create(_a0 *godo.TagCreateRequest) (*do.Tag, error)
- func (_m *TagsService) Delete(_a0 string) error
- func (_m *TagsService) Get(_a0 string) (*do.Tag, error)
- func (_m *TagsService) List() (do.Tags, error)
- func (_m *TagsService) TagResources(_a0 string, _a1 *godo.TagResourcesRequest) error
- func (_m *TagsService) UntagResources(_a0 string, _a1 *godo.UntagResourcesRequest) error
- type VolumeActionsService
- func (_m *VolumeActionsService) Attach(_a0 string, _a1 int) (*do.Action, error)
- func (_m *VolumeActionsService) Detach(_a0 string, _a1 int) (*do.Action, error)
- func (_m *VolumeActionsService) Get(_a0 string, _a1 int) (*do.Action, error)
- func (_m *VolumeActionsService) List(_a0 string, _a1 *godo.ListOptions) ([]do.Action, error)
- func (_m *VolumeActionsService) Resize(_a0 string, _a1 int, _a2 string) (*do.Action, error)
- type VolumesService
- func (_m *VolumesService) CreateSnapshot(_a0 *godo.SnapshotCreateRequest) (*do.Snapshot, error)
- func (_m *VolumesService) CreateVolume(_a0 *godo.VolumeCreateRequest) (*do.Volume, error)
- func (_m *VolumesService) DeleteSnapshot(_a0 string) error
- func (_m *VolumesService) DeleteVolume(_a0 string) error
- func (_m *VolumesService) Get(_a0 string) (*do.Volume, error)
- func (_m *VolumesService) GetSnapshot(_a0 string) (*do.Snapshot, error)
- func (_m *VolumesService) List() ([]do.Volume, error)
- func (_m *VolumesService) ListSnapshots(_a0 string, _a1 *godo.ListOptions) ([]do.Snapshot, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
AccountService is an autogenerated mock type for the AccountService type
type ActionsService ¶
ActionsService is an autogenerated mock type for the ActionsService type
type CDNsService ¶ added in v1.9.0
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
CertificatesService is an autogenerated mock type for the CertificatesService type
func (*CertificatesService) Create ¶ added in v1.6.0
func (_m *CertificatesService) Create(cr *godo.CertificateRequest) (*do.Certificate, error)
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 ¶
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 ¶
DropletActionsService is an autogenerated mock type for the DropletActionsService type
func (*DropletActionsService) ChangeKernel ¶
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) 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 ¶
RebuildByImageID provides a mock function with given fields: _a0, _a1
func (*DropletActionsService) RebuildByImageSlug ¶
RebuildByImageSlug provides a mock function with given fields: _a0, _a1
func (*DropletActionsService) Resize ¶
Resize provides a mock function with given fields: _a0, _a1, _a2
func (*DropletActionsService) Restore ¶
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 ¶
Snapshot provides a mock function with given fields: _a0, _a1
func (*DropletActionsService) SnapshotByTag ¶ added in v1.6.1
SnapshotByTag provides a mock function with given fields: _a0, _a1
type DropletsService ¶
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
type FirewallsService ¶ added in v1.7.0
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 ¶
FloatingIPActionsService is an autogenerated mock type for the FloatingIPActionsService type
func (*FloatingIPActionsService) Assign ¶
Assign provides a mock function with given fields: ip, dropletID
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
type FloatingIPsService ¶
FloatingIPsService is an autogenerated mock type for the FloatingIPsService type
func (*FloatingIPsService) Create ¶
func (_m *FloatingIPsService) Create(ficr *godo.FloatingIPCreateRequest) (*do.FloatingIP, error)
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 ¶
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) 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 ¶
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 ¶
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
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
func (_m *LoadBalancersService) Create(lbr *godo.LoadBalancerRequest) (*do.LoadBalancer, error)
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
func (_m *LoadBalancersService) List() (do.LoadBalancers, error)
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
func (_m *LoadBalancersService) Update(lbID string, lbr *godo.LoadBalancerRequest) (*do.LoadBalancer, error)
Update provides a mock function with given fields: lbID, lbr
type RegionsService ¶
RegionsService is an autogenerated mock type for the RegionsService type
type SizesService ¶
SizesService is an autogenerated mock type for the SizesService type
type SnapshotsService ¶ added in v1.6.0
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
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
VolumeActionsService is an autogenerated mock type for the VolumeActionsService type
func (*VolumeActionsService) Attach ¶ added in v1.3.0
Attach provides a mock function with given fields: _a0, _a1
func (*VolumeActionsService) Detach ¶ added in v1.3.0
Detach provides a mock function with given fields: _a0, _a1
func (*VolumeActionsService) Get ¶ added in v1.6.1
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
type VolumesService ¶ added in v1.3.0
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
Source Files ¶
- AccountService.go
- ActionsService.go
- CDNsService.go
- CertificatesService.go
- DomainsService.go
- DropletActionsService.go
- DropletsService.go
- FirewallsService.go
- FloatingIPActionsService.go
- FloatingIPsService.go
- ImageActionsService.go
- ImagesService.go
- KeysService.go
- LoadBalancersService.go
- RegionsService.go
- SizesService.go
- SnapshotsService.go
- TagsService.go
- VolumeActionsService.go
- VolumesService.go