Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/bensooraj/griffon/mocks (interfaces: InstanceService)
Generated by this command:
mockgen -destination=InstanceService.go -package=mocks github.com/bensooraj/griffon/mocks InstanceService
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/bensooraj/griffon/mocks (interfaces: OSService)
Generated by this command:
mockgen -destination=OSService.go -package=mocks github.com/bensooraj/griffon/mocks OSService
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/bensooraj/griffon/mocks (interfaces: PlanService)
Generated by this command:
mockgen -destination=PlanService.go -package=mocks github.com/bensooraj/griffon/mocks PlanService
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/bensooraj/griffon/mocks (interfaces: RegionService)
Generated by this command:
mockgen -destination=RegionService.go -package=mocks github.com/bensooraj/griffon/mocks RegionService
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/bensooraj/griffon/mocks (interfaces: SSHKeyService)
Generated by this command:
mockgen -destination=SSHKeyService.go -package=mocks github.com/bensooraj/griffon/mocks SSHKeyService
Package mocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/bensooraj/griffon/mocks (interfaces: StartupScriptService)
Generated by this command:
mockgen -destination=StartupScriptService.go -package=mocks github.com/bensooraj/griffon/mocks StartupScriptService
Package mocks is a generated GoMock package.
Index ¶
- func NewMockVultrClient(ctrl *gomock.Controller) *govultr.Client
- type InstanceService
- type MockInstanceService
- func (m *MockInstanceService) AttachISO(arg0 context.Context, arg1, arg2 string) (*http.Response, error)
- func (m *MockInstanceService) AttachPrivateNetwork(arg0 context.Context, arg1, arg2 string) error
- func (m *MockInstanceService) AttachVPC(arg0 context.Context, arg1, arg2 string) error
- func (m *MockInstanceService) AttachVPC2(arg0 context.Context, arg1 string, arg2 *govultr.AttachVPC2Req) error
- func (m *MockInstanceService) Create(arg0 context.Context, arg1 *govultr.InstanceCreateReq) (*govultr.Instance, *http.Response, error)
- func (m *MockInstanceService) CreateIPv4(arg0 context.Context, arg1 string, arg2 *bool) (*govultr.IPv4, *http.Response, error)
- func (m *MockInstanceService) CreateReverseIPv4(arg0 context.Context, arg1 string, arg2 *govultr.ReverseIP) error
- func (m *MockInstanceService) CreateReverseIPv6(arg0 context.Context, arg1 string, arg2 *govultr.ReverseIP) error
- func (m *MockInstanceService) DefaultReverseIPv4(arg0 context.Context, arg1, arg2 string) error
- func (m *MockInstanceService) Delete(arg0 context.Context, arg1 string) error
- func (m *MockInstanceService) DeleteIPv4(arg0 context.Context, arg1, arg2 string) error
- func (m *MockInstanceService) DeleteReverseIPv6(arg0 context.Context, arg1, arg2 string) error
- func (m *MockInstanceService) DetachISO(arg0 context.Context, arg1 string) (*http.Response, error)
- func (m *MockInstanceService) DetachPrivateNetwork(arg0 context.Context, arg1, arg2 string) error
- func (m *MockInstanceService) DetachVPC(arg0 context.Context, arg1, arg2 string) error
- func (m *MockInstanceService) DetachVPC2(arg0 context.Context, arg1, arg2 string) error
- func (m *MockInstanceService) EXPECT() *MockInstanceServiceMockRecorder
- func (m *MockInstanceService) Get(arg0 context.Context, arg1 string) (*govultr.Instance, *http.Response, error)
- func (m *MockInstanceService) GetBackupSchedule(arg0 context.Context, arg1 string) (*govultr.BackupSchedule, *http.Response, error)
- func (m *MockInstanceService) GetBandwidth(arg0 context.Context, arg1 string) (*govultr.Bandwidth, *http.Response, error)
- func (m *MockInstanceService) GetNeighbors(arg0 context.Context, arg1 string) (*govultr.Neighbors, *http.Response, error)
- func (m *MockInstanceService) GetUpgrades(arg0 context.Context, arg1 string) (*govultr.Upgrades, *http.Response, error)
- func (m *MockInstanceService) GetUserData(arg0 context.Context, arg1 string) (*govultr.UserData, *http.Response, error)
- func (m *MockInstanceService) Halt(arg0 context.Context, arg1 string) error
- func (m *MockInstanceService) ISOStatus(arg0 context.Context, arg1 string) (*govultr.Iso, *http.Response, error)
- func (m *MockInstanceService) List(arg0 context.Context, arg1 *govultr.ListOptions) ([]govultr.Instance, *govultr.Meta, *http.Response, error)
- func (m *MockInstanceService) ListIPv4(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.IPv4, *govultr.Meta, *http.Response, error)
- func (m *MockInstanceService) ListIPv6(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.IPv6, *govultr.Meta, *http.Response, error)
- func (m *MockInstanceService) ListPrivateNetworks(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.PrivateNetwork, *govultr.Meta, *http.Response, error)
- func (m *MockInstanceService) ListReverseIPv6(arg0 context.Context, arg1 string) ([]govultr.ReverseIP, *http.Response, error)
- func (m *MockInstanceService) ListVPC2Info(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.VPC2Info, *govultr.Meta, *http.Response, error)
- func (m *MockInstanceService) ListVPCInfo(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.VPCInfo, *govultr.Meta, *http.Response, error)
- func (m *MockInstanceService) MassHalt(arg0 context.Context, arg1 []string) error
- func (m *MockInstanceService) MassReboot(arg0 context.Context, arg1 []string) error
- func (m *MockInstanceService) MassStart(arg0 context.Context, arg1 []string) error
- func (m *MockInstanceService) Reboot(arg0 context.Context, arg1 string) error
- func (m *MockInstanceService) Reinstall(arg0 context.Context, arg1 string, arg2 *govultr.ReinstallReq) (*govultr.Instance, *http.Response, error)
- func (m *MockInstanceService) Restore(arg0 context.Context, arg1 string, arg2 *govultr.RestoreReq) (*http.Response, error)
- func (m *MockInstanceService) SetBackupSchedule(arg0 context.Context, arg1 string, arg2 *govultr.BackupScheduleReq) (*http.Response, error)
- func (m *MockInstanceService) Start(arg0 context.Context, arg1 string) error
- func (m *MockInstanceService) Update(arg0 context.Context, arg1 string, arg2 *govultr.InstanceUpdateReq) (*govultr.Instance, *http.Response, error)
- type MockInstanceServiceMockRecorder
- func (mr *MockInstanceServiceMockRecorder) AttachISO(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) AttachPrivateNetwork(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) AttachVPC(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) AttachVPC2(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) CreateIPv4(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) CreateReverseIPv4(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) CreateReverseIPv6(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) DefaultReverseIPv4(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) DeleteIPv4(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) DeleteReverseIPv6(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) DetachISO(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) DetachPrivateNetwork(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) DetachVPC(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) DetachVPC2(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) GetBackupSchedule(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) GetBandwidth(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) GetNeighbors(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) GetUpgrades(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) GetUserData(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) Halt(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) ISOStatus(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) List(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) ListIPv4(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) ListIPv6(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) ListPrivateNetworks(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) ListReverseIPv6(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) ListVPC2Info(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) ListVPCInfo(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) MassHalt(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) MassReboot(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) MassStart(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) Reboot(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) Reinstall(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) Restore(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) SetBackupSchedule(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) Start(arg0, arg1 any) *gomock.Call
- func (mr *MockInstanceServiceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
- type MockOSService
- type MockOSServiceMockRecorder
- type MockPlanService
- func (m *MockPlanService) EXPECT() *MockPlanServiceMockRecorder
- func (m *MockPlanService) List(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.Plan, *govultr.Meta, *http.Response, error)
- func (m *MockPlanService) ListBareMetal(arg0 context.Context, arg1 *govultr.ListOptions) ([]govultr.BareMetalPlan, *govultr.Meta, *http.Response, error)
- type MockPlanServiceMockRecorder
- type MockRegionService
- func (m *MockRegionService) Availability(arg0 context.Context, arg1, arg2 string) (*govultr.PlanAvailability, *http.Response, error)
- func (m *MockRegionService) EXPECT() *MockRegionServiceMockRecorder
- func (m *MockRegionService) List(arg0 context.Context, arg1 *govultr.ListOptions) ([]govultr.Region, *govultr.Meta, *http.Response, error)
- type MockRegionServiceMockRecorder
- type MockSSHKeyService
- func (m *MockSSHKeyService) Create(arg0 context.Context, arg1 *govultr.SSHKeyReq) (*govultr.SSHKey, *http.Response, error)
- func (m *MockSSHKeyService) Delete(arg0 context.Context, arg1 string) error
- func (m *MockSSHKeyService) EXPECT() *MockSSHKeyServiceMockRecorder
- func (m *MockSSHKeyService) Get(arg0 context.Context, arg1 string) (*govultr.SSHKey, *http.Response, error)
- func (m *MockSSHKeyService) List(arg0 context.Context, arg1 *govultr.ListOptions) ([]govultr.SSHKey, *govultr.Meta, *http.Response, error)
- func (m *MockSSHKeyService) Update(arg0 context.Context, arg1 string, arg2 *govultr.SSHKeyReq) error
- type MockSSHKeyServiceMockRecorder
- func (mr *MockSSHKeyServiceMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockSSHKeyServiceMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockSSHKeyServiceMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockSSHKeyServiceMockRecorder) List(arg0, arg1 any) *gomock.Call
- func (mr *MockSSHKeyServiceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
- type MockStartupScriptService
- func (m *MockStartupScriptService) Create(arg0 context.Context, arg1 *govultr.StartupScriptReq) (*govultr.StartupScript, *http.Response, error)
- func (m *MockStartupScriptService) Delete(arg0 context.Context, arg1 string) error
- func (m *MockStartupScriptService) EXPECT() *MockStartupScriptServiceMockRecorder
- func (m *MockStartupScriptService) Get(arg0 context.Context, arg1 string) (*govultr.StartupScript, *http.Response, error)
- func (m *MockStartupScriptService) List(arg0 context.Context, arg1 *govultr.ListOptions) ([]govultr.StartupScript, *govultr.Meta, *http.Response, error)
- func (m *MockStartupScriptService) Update(arg0 context.Context, arg1 string, arg2 *govultr.StartupScriptReq) error
- type MockStartupScriptServiceMockRecorder
- func (mr *MockStartupScriptServiceMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockStartupScriptServiceMockRecorder) Delete(arg0, arg1 any) *gomock.Call
- func (mr *MockStartupScriptServiceMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *MockStartupScriptServiceMockRecorder) List(arg0, arg1 any) *gomock.Call
- func (mr *MockStartupScriptServiceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
- type OSService
- type PlanService
- type RegionService
- type SSHKeyService
- type StartupScriptService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockVultrClient ¶
func NewMockVultrClient(ctrl *gomock.Controller) *govultr.Client
Types ¶
type InstanceService ¶
type InstanceService interface { Create(ctx context.Context, instanceReq *govultr.InstanceCreateReq) (*govultr.Instance, *http.Response, error) Get(ctx context.Context, instanceID string) (*govultr.Instance, *http.Response, error) Update(ctx context.Context, instanceID string, instanceReq *govultr.InstanceUpdateReq) (*govultr.Instance, *http.Response, error) Delete(ctx context.Context, instanceID string) error List(ctx context.Context, options *govultr.ListOptions) ([]govultr.Instance, *govultr.Meta, *http.Response, error) Start(ctx context.Context, instanceID string) error Halt(ctx context.Context, instanceID string) error Reboot(ctx context.Context, instanceID string) error Reinstall(ctx context.Context, instanceID string, reinstallReq *govultr.ReinstallReq) (*govultr.Instance, *http.Response, error) MassStart(ctx context.Context, instanceList []string) error MassHalt(ctx context.Context, instanceList []string) error MassReboot(ctx context.Context, instanceList []string) error Restore(ctx context.Context, instanceID string, restoreReq *govultr.RestoreReq) (*http.Response, error) GetBandwidth(ctx context.Context, instanceID string) (*govultr.Bandwidth, *http.Response, error) GetNeighbors(ctx context.Context, instanceID string) (*govultr.Neighbors, *http.Response, error) // Deprecated: ListPrivateNetworks should no longer be used. Instead, use ListVPCInfo. ListPrivateNetworks(ctx context.Context, instanceID string, options *govultr.ListOptions) ([]govultr.PrivateNetwork, *govultr.Meta, *http.Response, error) // Deprecated: AttachPrivateNetwork should no longer be used. Instead, use AttachVPC. AttachPrivateNetwork(ctx context.Context, instanceID, networkID string) error // Deprecated: DetachPrivateNetwork should no longer be used. Instead, use DetachVPC. DetachPrivateNetwork(ctx context.Context, instanceID, networkID string) error ListVPCInfo(ctx context.Context, instanceID string, options *govultr.ListOptions) ([]govultr.VPCInfo, *govultr.Meta, *http.Response, error) AttachVPC(ctx context.Context, instanceID, vpcID string) error DetachVPC(ctx context.Context, instanceID, vpcID string) error ListVPC2Info(ctx context.Context, instanceID string, options *govultr.ListOptions) ([]govultr.VPC2Info, *govultr.Meta, *http.Response, error) AttachVPC2(ctx context.Context, instanceID string, vpc2Req *govultr.AttachVPC2Req) error DetachVPC2(ctx context.Context, instanceID, vpcID string) error ISOStatus(ctx context.Context, instanceID string) (*govultr.Iso, *http.Response, error) AttachISO(ctx context.Context, instanceID, isoID string) (*http.Response, error) DetachISO(ctx context.Context, instanceID string) (*http.Response, error) GetBackupSchedule(ctx context.Context, instanceID string) (*govultr.BackupSchedule, *http.Response, error) SetBackupSchedule(ctx context.Context, instanceID string, backup *govultr.BackupScheduleReq) (*http.Response, error) CreateIPv4(ctx context.Context, instanceID string, reboot *bool) (*govultr.IPv4, *http.Response, error) ListIPv4(ctx context.Context, instanceID string, option *govultr.ListOptions) ([]govultr.IPv4, *govultr.Meta, *http.Response, error) DeleteIPv4(ctx context.Context, instanceID, ip string) error ListIPv6(ctx context.Context, instanceID string, option *govultr.ListOptions) ([]govultr.IPv6, *govultr.Meta, *http.Response, error) CreateReverseIPv6(ctx context.Context, instanceID string, reverseReq *govultr.ReverseIP) error ListReverseIPv6(ctx context.Context, instanceID string) ([]govultr.ReverseIP, *http.Response, error) DeleteReverseIPv6(ctx context.Context, instanceID, ip string) error CreateReverseIPv4(ctx context.Context, instanceID string, reverseReq *govultr.ReverseIP) error DefaultReverseIPv4(ctx context.Context, instanceID, ip string) error GetUserData(ctx context.Context, instanceID string) (*govultr.UserData, *http.Response, error) GetUpgrades(ctx context.Context, instanceID string) (*govultr.Upgrades, *http.Response, error) }
InstanceService is the interface to interact with the instance endpoints on the Vultr API Link: https://www.vultr.com/api/#tag/instances
type MockInstanceService ¶
type MockInstanceService struct {
// contains filtered or unexported fields
}
MockInstanceService is a mock of InstanceService interface.
func NewMockInstanceService ¶
func NewMockInstanceService(ctrl *gomock.Controller) *MockInstanceService
NewMockInstanceService creates a new mock instance.
func (*MockInstanceService) AttachISO ¶
func (m *MockInstanceService) AttachISO(arg0 context.Context, arg1, arg2 string) (*http.Response, error)
AttachISO mocks base method.
func (*MockInstanceService) AttachPrivateNetwork ¶
func (m *MockInstanceService) AttachPrivateNetwork(arg0 context.Context, arg1, arg2 string) error
AttachPrivateNetwork mocks base method.
func (*MockInstanceService) AttachVPC ¶
func (m *MockInstanceService) AttachVPC(arg0 context.Context, arg1, arg2 string) error
AttachVPC mocks base method.
func (*MockInstanceService) AttachVPC2 ¶
func (m *MockInstanceService) AttachVPC2(arg0 context.Context, arg1 string, arg2 *govultr.AttachVPC2Req) error
AttachVPC2 mocks base method.
func (*MockInstanceService) Create ¶
func (m *MockInstanceService) Create(arg0 context.Context, arg1 *govultr.InstanceCreateReq) (*govultr.Instance, *http.Response, error)
Create mocks base method.
func (*MockInstanceService) CreateIPv4 ¶
func (m *MockInstanceService) CreateIPv4(arg0 context.Context, arg1 string, arg2 *bool) (*govultr.IPv4, *http.Response, error)
CreateIPv4 mocks base method.
func (*MockInstanceService) CreateReverseIPv4 ¶
func (m *MockInstanceService) CreateReverseIPv4(arg0 context.Context, arg1 string, arg2 *govultr.ReverseIP) error
CreateReverseIPv4 mocks base method.
func (*MockInstanceService) CreateReverseIPv6 ¶
func (m *MockInstanceService) CreateReverseIPv6(arg0 context.Context, arg1 string, arg2 *govultr.ReverseIP) error
CreateReverseIPv6 mocks base method.
func (*MockInstanceService) DefaultReverseIPv4 ¶
func (m *MockInstanceService) DefaultReverseIPv4(arg0 context.Context, arg1, arg2 string) error
DefaultReverseIPv4 mocks base method.
func (*MockInstanceService) Delete ¶
func (m *MockInstanceService) Delete(arg0 context.Context, arg1 string) error
Delete mocks base method.
func (*MockInstanceService) DeleteIPv4 ¶
func (m *MockInstanceService) DeleteIPv4(arg0 context.Context, arg1, arg2 string) error
DeleteIPv4 mocks base method.
func (*MockInstanceService) DeleteReverseIPv6 ¶
func (m *MockInstanceService) DeleteReverseIPv6(arg0 context.Context, arg1, arg2 string) error
DeleteReverseIPv6 mocks base method.
func (*MockInstanceService) DetachPrivateNetwork ¶
func (m *MockInstanceService) DetachPrivateNetwork(arg0 context.Context, arg1, arg2 string) error
DetachPrivateNetwork mocks base method.
func (*MockInstanceService) DetachVPC ¶
func (m *MockInstanceService) DetachVPC(arg0 context.Context, arg1, arg2 string) error
DetachVPC mocks base method.
func (*MockInstanceService) DetachVPC2 ¶
func (m *MockInstanceService) DetachVPC2(arg0 context.Context, arg1, arg2 string) error
DetachVPC2 mocks base method.
func (*MockInstanceService) EXPECT ¶
func (m *MockInstanceService) EXPECT() *MockInstanceServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstanceService) Get ¶
func (m *MockInstanceService) Get(arg0 context.Context, arg1 string) (*govultr.Instance, *http.Response, error)
Get mocks base method.
func (*MockInstanceService) GetBackupSchedule ¶
func (m *MockInstanceService) GetBackupSchedule(arg0 context.Context, arg1 string) (*govultr.BackupSchedule, *http.Response, error)
GetBackupSchedule mocks base method.
func (*MockInstanceService) GetBandwidth ¶
func (m *MockInstanceService) GetBandwidth(arg0 context.Context, arg1 string) (*govultr.Bandwidth, *http.Response, error)
GetBandwidth mocks base method.
func (*MockInstanceService) GetNeighbors ¶
func (m *MockInstanceService) GetNeighbors(arg0 context.Context, arg1 string) (*govultr.Neighbors, *http.Response, error)
GetNeighbors mocks base method.
func (*MockInstanceService) GetUpgrades ¶
func (m *MockInstanceService) GetUpgrades(arg0 context.Context, arg1 string) (*govultr.Upgrades, *http.Response, error)
GetUpgrades mocks base method.
func (*MockInstanceService) GetUserData ¶
func (m *MockInstanceService) GetUserData(arg0 context.Context, arg1 string) (*govultr.UserData, *http.Response, error)
GetUserData mocks base method.
func (*MockInstanceService) Halt ¶
func (m *MockInstanceService) Halt(arg0 context.Context, arg1 string) error
Halt mocks base method.
func (*MockInstanceService) ISOStatus ¶
func (m *MockInstanceService) ISOStatus(arg0 context.Context, arg1 string) (*govultr.Iso, *http.Response, error)
ISOStatus mocks base method.
func (*MockInstanceService) List ¶
func (m *MockInstanceService) List(arg0 context.Context, arg1 *govultr.ListOptions) ([]govultr.Instance, *govultr.Meta, *http.Response, error)
List mocks base method.
func (*MockInstanceService) ListIPv4 ¶
func (m *MockInstanceService) ListIPv4(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.IPv4, *govultr.Meta, *http.Response, error)
ListIPv4 mocks base method.
func (*MockInstanceService) ListIPv6 ¶
func (m *MockInstanceService) ListIPv6(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.IPv6, *govultr.Meta, *http.Response, error)
ListIPv6 mocks base method.
func (*MockInstanceService) ListPrivateNetworks ¶
func (m *MockInstanceService) ListPrivateNetworks(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.PrivateNetwork, *govultr.Meta, *http.Response, error)
ListPrivateNetworks mocks base method.
func (*MockInstanceService) ListReverseIPv6 ¶
func (m *MockInstanceService) ListReverseIPv6(arg0 context.Context, arg1 string) ([]govultr.ReverseIP, *http.Response, error)
ListReverseIPv6 mocks base method.
func (*MockInstanceService) ListVPC2Info ¶
func (m *MockInstanceService) ListVPC2Info(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.VPC2Info, *govultr.Meta, *http.Response, error)
ListVPC2Info mocks base method.
func (*MockInstanceService) ListVPCInfo ¶
func (m *MockInstanceService) ListVPCInfo(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.VPCInfo, *govultr.Meta, *http.Response, error)
ListVPCInfo mocks base method.
func (*MockInstanceService) MassHalt ¶
func (m *MockInstanceService) MassHalt(arg0 context.Context, arg1 []string) error
MassHalt mocks base method.
func (*MockInstanceService) MassReboot ¶
func (m *MockInstanceService) MassReboot(arg0 context.Context, arg1 []string) error
MassReboot mocks base method.
func (*MockInstanceService) MassStart ¶
func (m *MockInstanceService) MassStart(arg0 context.Context, arg1 []string) error
MassStart mocks base method.
func (*MockInstanceService) Reboot ¶
func (m *MockInstanceService) Reboot(arg0 context.Context, arg1 string) error
Reboot mocks base method.
func (*MockInstanceService) Reinstall ¶
func (m *MockInstanceService) Reinstall(arg0 context.Context, arg1 string, arg2 *govultr.ReinstallReq) (*govultr.Instance, *http.Response, error)
Reinstall mocks base method.
func (*MockInstanceService) Restore ¶
func (m *MockInstanceService) Restore(arg0 context.Context, arg1 string, arg2 *govultr.RestoreReq) (*http.Response, error)
Restore mocks base method.
func (*MockInstanceService) SetBackupSchedule ¶
func (m *MockInstanceService) SetBackupSchedule(arg0 context.Context, arg1 string, arg2 *govultr.BackupScheduleReq) (*http.Response, error)
SetBackupSchedule mocks base method.
type MockInstanceServiceMockRecorder ¶
type MockInstanceServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceServiceMockRecorder is the mock recorder for MockInstanceService.
func (*MockInstanceServiceMockRecorder) AttachISO ¶
func (mr *MockInstanceServiceMockRecorder) AttachISO(arg0, arg1, arg2 any) *gomock.Call
AttachISO indicates an expected call of AttachISO.
func (*MockInstanceServiceMockRecorder) AttachPrivateNetwork ¶
func (mr *MockInstanceServiceMockRecorder) AttachPrivateNetwork(arg0, arg1, arg2 any) *gomock.Call
AttachPrivateNetwork indicates an expected call of AttachPrivateNetwork.
func (*MockInstanceServiceMockRecorder) AttachVPC ¶
func (mr *MockInstanceServiceMockRecorder) AttachVPC(arg0, arg1, arg2 any) *gomock.Call
AttachVPC indicates an expected call of AttachVPC.
func (*MockInstanceServiceMockRecorder) AttachVPC2 ¶
func (mr *MockInstanceServiceMockRecorder) AttachVPC2(arg0, arg1, arg2 any) *gomock.Call
AttachVPC2 indicates an expected call of AttachVPC2.
func (*MockInstanceServiceMockRecorder) Create ¶
func (mr *MockInstanceServiceMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockInstanceServiceMockRecorder) CreateIPv4 ¶
func (mr *MockInstanceServiceMockRecorder) CreateIPv4(arg0, arg1, arg2 any) *gomock.Call
CreateIPv4 indicates an expected call of CreateIPv4.
func (*MockInstanceServiceMockRecorder) CreateReverseIPv4 ¶
func (mr *MockInstanceServiceMockRecorder) CreateReverseIPv4(arg0, arg1, arg2 any) *gomock.Call
CreateReverseIPv4 indicates an expected call of CreateReverseIPv4.
func (*MockInstanceServiceMockRecorder) CreateReverseIPv6 ¶
func (mr *MockInstanceServiceMockRecorder) CreateReverseIPv6(arg0, arg1, arg2 any) *gomock.Call
CreateReverseIPv6 indicates an expected call of CreateReverseIPv6.
func (*MockInstanceServiceMockRecorder) DefaultReverseIPv4 ¶
func (mr *MockInstanceServiceMockRecorder) DefaultReverseIPv4(arg0, arg1, arg2 any) *gomock.Call
DefaultReverseIPv4 indicates an expected call of DefaultReverseIPv4.
func (*MockInstanceServiceMockRecorder) Delete ¶
func (mr *MockInstanceServiceMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockInstanceServiceMockRecorder) DeleteIPv4 ¶
func (mr *MockInstanceServiceMockRecorder) DeleteIPv4(arg0, arg1, arg2 any) *gomock.Call
DeleteIPv4 indicates an expected call of DeleteIPv4.
func (*MockInstanceServiceMockRecorder) DeleteReverseIPv6 ¶
func (mr *MockInstanceServiceMockRecorder) DeleteReverseIPv6(arg0, arg1, arg2 any) *gomock.Call
DeleteReverseIPv6 indicates an expected call of DeleteReverseIPv6.
func (*MockInstanceServiceMockRecorder) DetachISO ¶
func (mr *MockInstanceServiceMockRecorder) DetachISO(arg0, arg1 any) *gomock.Call
DetachISO indicates an expected call of DetachISO.
func (*MockInstanceServiceMockRecorder) DetachPrivateNetwork ¶
func (mr *MockInstanceServiceMockRecorder) DetachPrivateNetwork(arg0, arg1, arg2 any) *gomock.Call
DetachPrivateNetwork indicates an expected call of DetachPrivateNetwork.
func (*MockInstanceServiceMockRecorder) DetachVPC ¶
func (mr *MockInstanceServiceMockRecorder) DetachVPC(arg0, arg1, arg2 any) *gomock.Call
DetachVPC indicates an expected call of DetachVPC.
func (*MockInstanceServiceMockRecorder) DetachVPC2 ¶
func (mr *MockInstanceServiceMockRecorder) DetachVPC2(arg0, arg1, arg2 any) *gomock.Call
DetachVPC2 indicates an expected call of DetachVPC2.
func (*MockInstanceServiceMockRecorder) Get ¶
func (mr *MockInstanceServiceMockRecorder) Get(arg0, arg1 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockInstanceServiceMockRecorder) GetBackupSchedule ¶
func (mr *MockInstanceServiceMockRecorder) GetBackupSchedule(arg0, arg1 any) *gomock.Call
GetBackupSchedule indicates an expected call of GetBackupSchedule.
func (*MockInstanceServiceMockRecorder) GetBandwidth ¶
func (mr *MockInstanceServiceMockRecorder) GetBandwidth(arg0, arg1 any) *gomock.Call
GetBandwidth indicates an expected call of GetBandwidth.
func (*MockInstanceServiceMockRecorder) GetNeighbors ¶
func (mr *MockInstanceServiceMockRecorder) GetNeighbors(arg0, arg1 any) *gomock.Call
GetNeighbors indicates an expected call of GetNeighbors.
func (*MockInstanceServiceMockRecorder) GetUpgrades ¶
func (mr *MockInstanceServiceMockRecorder) GetUpgrades(arg0, arg1 any) *gomock.Call
GetUpgrades indicates an expected call of GetUpgrades.
func (*MockInstanceServiceMockRecorder) GetUserData ¶
func (mr *MockInstanceServiceMockRecorder) GetUserData(arg0, arg1 any) *gomock.Call
GetUserData indicates an expected call of GetUserData.
func (*MockInstanceServiceMockRecorder) Halt ¶
func (mr *MockInstanceServiceMockRecorder) Halt(arg0, arg1 any) *gomock.Call
Halt indicates an expected call of Halt.
func (*MockInstanceServiceMockRecorder) ISOStatus ¶
func (mr *MockInstanceServiceMockRecorder) ISOStatus(arg0, arg1 any) *gomock.Call
ISOStatus indicates an expected call of ISOStatus.
func (*MockInstanceServiceMockRecorder) List ¶
func (mr *MockInstanceServiceMockRecorder) List(arg0, arg1 any) *gomock.Call
List indicates an expected call of List.
func (*MockInstanceServiceMockRecorder) ListIPv4 ¶
func (mr *MockInstanceServiceMockRecorder) ListIPv4(arg0, arg1, arg2 any) *gomock.Call
ListIPv4 indicates an expected call of ListIPv4.
func (*MockInstanceServiceMockRecorder) ListIPv6 ¶
func (mr *MockInstanceServiceMockRecorder) ListIPv6(arg0, arg1, arg2 any) *gomock.Call
ListIPv6 indicates an expected call of ListIPv6.
func (*MockInstanceServiceMockRecorder) ListPrivateNetworks ¶
func (mr *MockInstanceServiceMockRecorder) ListPrivateNetworks(arg0, arg1, arg2 any) *gomock.Call
ListPrivateNetworks indicates an expected call of ListPrivateNetworks.
func (*MockInstanceServiceMockRecorder) ListReverseIPv6 ¶
func (mr *MockInstanceServiceMockRecorder) ListReverseIPv6(arg0, arg1 any) *gomock.Call
ListReverseIPv6 indicates an expected call of ListReverseIPv6.
func (*MockInstanceServiceMockRecorder) ListVPC2Info ¶
func (mr *MockInstanceServiceMockRecorder) ListVPC2Info(arg0, arg1, arg2 any) *gomock.Call
ListVPC2Info indicates an expected call of ListVPC2Info.
func (*MockInstanceServiceMockRecorder) ListVPCInfo ¶
func (mr *MockInstanceServiceMockRecorder) ListVPCInfo(arg0, arg1, arg2 any) *gomock.Call
ListVPCInfo indicates an expected call of ListVPCInfo.
func (*MockInstanceServiceMockRecorder) MassHalt ¶
func (mr *MockInstanceServiceMockRecorder) MassHalt(arg0, arg1 any) *gomock.Call
MassHalt indicates an expected call of MassHalt.
func (*MockInstanceServiceMockRecorder) MassReboot ¶
func (mr *MockInstanceServiceMockRecorder) MassReboot(arg0, arg1 any) *gomock.Call
MassReboot indicates an expected call of MassReboot.
func (*MockInstanceServiceMockRecorder) MassStart ¶
func (mr *MockInstanceServiceMockRecorder) MassStart(arg0, arg1 any) *gomock.Call
MassStart indicates an expected call of MassStart.
func (*MockInstanceServiceMockRecorder) Reboot ¶
func (mr *MockInstanceServiceMockRecorder) Reboot(arg0, arg1 any) *gomock.Call
Reboot indicates an expected call of Reboot.
func (*MockInstanceServiceMockRecorder) Reinstall ¶
func (mr *MockInstanceServiceMockRecorder) Reinstall(arg0, arg1, arg2 any) *gomock.Call
Reinstall indicates an expected call of Reinstall.
func (*MockInstanceServiceMockRecorder) Restore ¶
func (mr *MockInstanceServiceMockRecorder) Restore(arg0, arg1, arg2 any) *gomock.Call
Restore indicates an expected call of Restore.
func (*MockInstanceServiceMockRecorder) SetBackupSchedule ¶
func (mr *MockInstanceServiceMockRecorder) SetBackupSchedule(arg0, arg1, arg2 any) *gomock.Call
SetBackupSchedule indicates an expected call of SetBackupSchedule.
type MockOSService ¶
type MockOSService struct {
// contains filtered or unexported fields
}
MockOSService is a mock of OSService interface.
func NewMockOSService ¶
func NewMockOSService(ctrl *gomock.Controller) *MockOSService
NewMockOSService creates a new mock instance.
func (*MockOSService) EXPECT ¶
func (m *MockOSService) EXPECT() *MockOSServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOSServiceMockRecorder ¶
type MockOSServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockOSServiceMockRecorder is the mock recorder for MockOSService.
type MockPlanService ¶
type MockPlanService struct {
// contains filtered or unexported fields
}
MockPlanService is a mock of PlanService interface.
func NewMockPlanService ¶
func NewMockPlanService(ctrl *gomock.Controller) *MockPlanService
NewMockPlanService creates a new mock instance.
func (*MockPlanService) EXPECT ¶
func (m *MockPlanService) EXPECT() *MockPlanServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPlanService) List ¶
func (m *MockPlanService) List(arg0 context.Context, arg1 string, arg2 *govultr.ListOptions) ([]govultr.Plan, *govultr.Meta, *http.Response, error)
List mocks base method.
func (*MockPlanService) ListBareMetal ¶
func (m *MockPlanService) ListBareMetal(arg0 context.Context, arg1 *govultr.ListOptions) ([]govultr.BareMetalPlan, *govultr.Meta, *http.Response, error)
ListBareMetal mocks base method.
type MockPlanServiceMockRecorder ¶
type MockPlanServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockPlanServiceMockRecorder is the mock recorder for MockPlanService.
func (*MockPlanServiceMockRecorder) List ¶
func (mr *MockPlanServiceMockRecorder) List(arg0, arg1, arg2 any) *gomock.Call
List indicates an expected call of List.
func (*MockPlanServiceMockRecorder) ListBareMetal ¶
func (mr *MockPlanServiceMockRecorder) ListBareMetal(arg0, arg1 any) *gomock.Call
ListBareMetal indicates an expected call of ListBareMetal.
type MockRegionService ¶
type MockRegionService struct {
// contains filtered or unexported fields
}
MockRegionService is a mock of RegionService interface.
func NewMockRegionService ¶
func NewMockRegionService(ctrl *gomock.Controller) *MockRegionService
NewMockRegionService creates a new mock instance.
func (*MockRegionService) Availability ¶
func (m *MockRegionService) Availability(arg0 context.Context, arg1, arg2 string) (*govultr.PlanAvailability, *http.Response, error)
Availability mocks base method.
func (*MockRegionService) EXPECT ¶
func (m *MockRegionService) EXPECT() *MockRegionServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRegionServiceMockRecorder ¶
type MockRegionServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockRegionServiceMockRecorder is the mock recorder for MockRegionService.
func (*MockRegionServiceMockRecorder) Availability ¶
func (mr *MockRegionServiceMockRecorder) Availability(arg0, arg1, arg2 any) *gomock.Call
Availability indicates an expected call of Availability.
type MockSSHKeyService ¶
type MockSSHKeyService struct {
// contains filtered or unexported fields
}
MockSSHKeyService is a mock of SSHKeyService interface.
func NewMockSSHKeyService ¶
func NewMockSSHKeyService(ctrl *gomock.Controller) *MockSSHKeyService
NewMockSSHKeyService creates a new mock instance.
func (*MockSSHKeyService) Create ¶
func (m *MockSSHKeyService) Create(arg0 context.Context, arg1 *govultr.SSHKeyReq) (*govultr.SSHKey, *http.Response, error)
Create mocks base method.
func (*MockSSHKeyService) Delete ¶
func (m *MockSSHKeyService) Delete(arg0 context.Context, arg1 string) error
Delete mocks base method.
func (*MockSSHKeyService) EXPECT ¶
func (m *MockSSHKeyService) EXPECT() *MockSSHKeyServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSSHKeyService) Get ¶
func (m *MockSSHKeyService) Get(arg0 context.Context, arg1 string) (*govultr.SSHKey, *http.Response, error)
Get mocks base method.
type MockSSHKeyServiceMockRecorder ¶
type MockSSHKeyServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSSHKeyServiceMockRecorder is the mock recorder for MockSSHKeyService.
func (*MockSSHKeyServiceMockRecorder) Create ¶
func (mr *MockSSHKeyServiceMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockSSHKeyServiceMockRecorder) Delete ¶
func (mr *MockSSHKeyServiceMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSSHKeyServiceMockRecorder) Get ¶
func (mr *MockSSHKeyServiceMockRecorder) Get(arg0, arg1 any) *gomock.Call
Get indicates an expected call of Get.
type MockStartupScriptService ¶
type MockStartupScriptService struct {
// contains filtered or unexported fields
}
MockStartupScriptService is a mock of StartupScriptService interface.
func NewMockStartupScriptService ¶
func NewMockStartupScriptService(ctrl *gomock.Controller) *MockStartupScriptService
NewMockStartupScriptService creates a new mock instance.
func (*MockStartupScriptService) Create ¶
func (m *MockStartupScriptService) Create(arg0 context.Context, arg1 *govultr.StartupScriptReq) (*govultr.StartupScript, *http.Response, error)
Create mocks base method.
func (*MockStartupScriptService) Delete ¶
func (m *MockStartupScriptService) Delete(arg0 context.Context, arg1 string) error
Delete mocks base method.
func (*MockStartupScriptService) EXPECT ¶
func (m *MockStartupScriptService) EXPECT() *MockStartupScriptServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStartupScriptService) Get ¶
func (m *MockStartupScriptService) Get(arg0 context.Context, arg1 string) (*govultr.StartupScript, *http.Response, error)
Get mocks base method.
func (*MockStartupScriptService) List ¶
func (m *MockStartupScriptService) List(arg0 context.Context, arg1 *govultr.ListOptions) ([]govultr.StartupScript, *govultr.Meta, *http.Response, error)
List mocks base method.
func (*MockStartupScriptService) Update ¶
func (m *MockStartupScriptService) Update(arg0 context.Context, arg1 string, arg2 *govultr.StartupScriptReq) error
Update mocks base method.
type MockStartupScriptServiceMockRecorder ¶
type MockStartupScriptServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockStartupScriptServiceMockRecorder is the mock recorder for MockStartupScriptService.
func (*MockStartupScriptServiceMockRecorder) Create ¶
func (mr *MockStartupScriptServiceMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockStartupScriptServiceMockRecorder) Delete ¶
func (mr *MockStartupScriptServiceMockRecorder) Delete(arg0, arg1 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStartupScriptServiceMockRecorder) Get ¶
func (mr *MockStartupScriptServiceMockRecorder) Get(arg0, arg1 any) *gomock.Call
Get indicates an expected call of Get.
type OSService ¶
type OSService interface {
List(ctx context.Context, options *govultr.ListOptions) ([]govultr.OS, *govultr.Meta, *http.Response, error)
}
OSService is the interface to interact with the operating system endpoint on the Vultr API Link : https://www.vultr.com/api/#tag/os
type PlanService ¶
type PlanService interface { List(ctx context.Context, planType string, options *govultr.ListOptions) ([]govultr.Plan, *govultr.Meta, *http.Response, error) ListBareMetal(ctx context.Context, options *govultr.ListOptions) ([]govultr.BareMetalPlan, *govultr.Meta, *http.Response, error) }
PlanService is the interface to interact with the Plans endpoints on the Vultr API Link : https://www.vultr.com/api/#tag/plans
type RegionService ¶
type RegionService interface { Availability(ctx context.Context, regionID string, planType string) (*govultr.PlanAvailability, *http.Response, error) List(ctx context.Context, options *govultr.ListOptions) ([]govultr.Region, *govultr.Meta, *http.Response, error) }
RegionService is the interface to interact with Region endpoints on the Vultr API Link : https://www.vultr.com/api/#tag/region
type SSHKeyService ¶
type SSHKeyService interface { Create(ctx context.Context, sshKeyReq *govultr.SSHKeyReq) (*govultr.SSHKey, *http.Response, error) Get(ctx context.Context, sshKeyID string) (*govultr.SSHKey, *http.Response, error) Update(ctx context.Context, sshKeyID string, sshKeyReq *govultr.SSHKeyReq) error Delete(ctx context.Context, sshKeyID string) error List(ctx context.Context, options *govultr.ListOptions) ([]govultr.SSHKey, *govultr.Meta, *http.Response, error) }
SSHKeyService is the interface to interact with the SSH Key endpoints on the Vultr API Link : https://www.vultr.com/api/#tag/ssh
type StartupScriptService ¶
type StartupScriptService interface { Create(ctx context.Context, req *govultr.StartupScriptReq) (*govultr.StartupScript, *http.Response, error) Get(ctx context.Context, scriptID string) (*govultr.StartupScript, *http.Response, error) Update(ctx context.Context, scriptID string, scriptReq *govultr.StartupScriptReq) error Delete(ctx context.Context, scriptID string) error List(ctx context.Context, options *govultr.ListOptions) ([]govultr.StartupScript, *govultr.Meta, *http.Response, error) }
StartupScriptService is the interface to interact with the startup script endpoints on the Vultr API Link : https://www.vultr.com/api/#tag/startup