mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 6 Imported by: 0

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

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

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) DetachISO

func (m *MockInstanceService) DetachISO(arg0 context.Context, arg1 string) (*http.Response, error)

DetachISO 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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInstanceService) Get

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

List mocks base method.

func (*MockInstanceService) ListIPv4

ListIPv4 mocks base method.

func (*MockInstanceService) ListIPv6

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

ListVPC2Info mocks base method.

func (*MockInstanceService) ListVPCInfo

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

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.

func (*MockInstanceService) Start

func (m *MockInstanceService) Start(arg0 context.Context, arg1 string) error

Start mocks base method.

func (*MockInstanceService) Update

Update 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.

func (*MockInstanceServiceMockRecorder) Start

func (mr *MockInstanceServiceMockRecorder) Start(arg0, arg1 any) *gomock.Call

Start indicates an expected call of Start.

func (*MockInstanceServiceMockRecorder) Update

func (mr *MockInstanceServiceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call

Update indicates an expected call of Update.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOSService) List

List mocks base method.

type MockOSServiceMockRecorder

type MockOSServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockOSServiceMockRecorder is the mock recorder for MockOSService.

func (*MockOSServiceMockRecorder) List

func (mr *MockOSServiceMockRecorder) List(arg0, arg1 any) *gomock.Call

List indicates an expected call of List.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPlanService) List

List mocks base method.

func (*MockPlanService) ListBareMetal

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRegionService) List

List mocks base method.

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.

func (*MockRegionServiceMockRecorder) List

func (mr *MockRegionServiceMockRecorder) List(arg0, arg1 any) *gomock.Call

List indicates an expected call of List.

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

Create mocks base method.

func (*MockSSHKeyService) Delete

func (m *MockSSHKeyService) Delete(arg0 context.Context, arg1 string) error

Delete mocks base method.

func (*MockSSHKeyService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSSHKeyService) Get

Get mocks base method.

func (*MockSSHKeyService) List

List mocks base method.

func (*MockSSHKeyService) Update

func (m *MockSSHKeyService) Update(arg0 context.Context, arg1 string, arg2 *govultr.SSHKeyReq) error

Update 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.

func (*MockSSHKeyServiceMockRecorder) List

func (mr *MockSSHKeyServiceMockRecorder) List(arg0, arg1 any) *gomock.Call

List indicates an expected call of List.

func (*MockSSHKeyServiceMockRecorder) Update

func (mr *MockSSHKeyServiceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call

Update indicates an expected call of Update.

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

Create mocks base method.

func (*MockStartupScriptService) Delete

func (m *MockStartupScriptService) Delete(arg0 context.Context, arg1 string) error

Delete mocks base method.

func (*MockStartupScriptService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStartupScriptService) Get

Get mocks base method.

func (*MockStartupScriptService) List

List mocks base method.

func (*MockStartupScriptService) Update

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.

func (*MockStartupScriptServiceMockRecorder) List

func (mr *MockStartupScriptServiceMockRecorder) List(arg0, arg1 any) *gomock.Call

List indicates an expected call of List.

func (*MockStartupScriptServiceMockRecorder) Update

func (mr *MockStartupScriptServiceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call

Update indicates an expected call of Update.

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

Jump to

Keyboard shortcuts

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