Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) CreateInstance(arg0 context.Context, arg1 linodego.InstanceCreateOptions) (*linodego.Instance, error)
- func (m *MockClient) CreateLKECluster(arg0 context.Context, arg1 linodego.LKEClusterCreateOptions) (*linodego.LKECluster, error)
- func (m *MockClient) CreateObjectStorageBucket(arg0 context.Context, arg1 linodego.ObjectStorageBucketCreateOptions) (*linodego.ObjectStorageBucket, error)
- func (m *MockClient) CreateObjectStorageKey(arg0 context.Context, arg1 linodego.ObjectStorageKeyCreateOptions) (*linodego.ObjectStorageKey, error)
- func (m *MockClient) DeleteInstance(arg0 context.Context, arg1 int) error
- func (m *MockClient) DeleteLKECluster(arg0 context.Context, arg1 int) error
- func (m *MockClient) DeleteObjectStorageBucket(arg0 context.Context, arg1, arg2 string) error
- func (m *MockClient) DeleteObjectStorageKey(arg0 context.Context, arg1 int) error
- func (m *MockClient) DeleteStackscript(arg0 context.Context, arg1 int) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetInstance(arg0 context.Context, arg1 int) (*linodego.Instance, error)
- func (m *MockClient) GetLKEClusterKubeconfig(arg0 context.Context, arg1 int) (*linodego.LKEClusterKubeconfig, error)
- func (m *MockClient) GetProfile(arg0 context.Context) (*linodego.Profile, error)
- func (m *MockClient) ListInstances(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.Instance, error)
- func (m *MockClient) ListLKEClusterPools(arg0 context.Context, arg1 int, arg2 *linodego.ListOptions) ([]linodego.LKEClusterPool, error)
- func (m *MockClient) ListLKEClusters(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.LKECluster, error)
- func (m *MockClient) ListObjectStorageBuckets(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.ObjectStorageBucket, error)
- func (m *MockClient) ListStackscripts(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.Stackscript, error)
- func (m *MockClient) UpdateInstance(arg0 context.Context, arg1 int, arg2 linodego.InstanceUpdateOptions) (*linodego.Instance, error)
- func (m *MockClient) UpdateLKECluster(arg0 context.Context, arg1 int, arg2 linodego.LKEClusterUpdateOptions) (*linodego.LKECluster, error)
- func (m *MockClient) UpdateLKEClusterPool(arg0 context.Context, arg1, arg2 int, ...) (*linodego.LKEClusterPool, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) CreateInstance(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CreateLKECluster(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CreateObjectStorageBucket(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CreateObjectStorageKey(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteInstance(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteLKECluster(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteObjectStorageBucket(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteObjectStorageKey(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteStackscript(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetInstance(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetLKEClusterKubeconfig(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetProfile(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListInstances(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListLKEClusterPools(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListLKEClusters(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListObjectStorageBuckets(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ListStackscripts(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateInstance(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateLKECluster(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UpdateLKEClusterPool(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func ClientFactory ¶
func ClientFactory(ctrl *gomock.Controller) (util.ClientFactoryFunc, *MockClient)
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) CreateInstance ¶
func (m *MockClient) CreateInstance(arg0 context.Context, arg1 linodego.InstanceCreateOptions) (*linodego.Instance, error)
CreateInstance mocks base method.
func (*MockClient) CreateLKECluster ¶
func (m *MockClient) CreateLKECluster(arg0 context.Context, arg1 linodego.LKEClusterCreateOptions) (*linodego.LKECluster, error)
CreateLKECluster mocks base method.
func (*MockClient) CreateObjectStorageBucket ¶
func (m *MockClient) CreateObjectStorageBucket(arg0 context.Context, arg1 linodego.ObjectStorageBucketCreateOptions) (*linodego.ObjectStorageBucket, error)
CreateObjectStorageBucket mocks base method.
func (*MockClient) CreateObjectStorageKey ¶
func (m *MockClient) CreateObjectStorageKey(arg0 context.Context, arg1 linodego.ObjectStorageKeyCreateOptions) (*linodego.ObjectStorageKey, error)
CreateObjectStorageKey mocks base method.
func (*MockClient) DeleteInstance ¶
func (m *MockClient) DeleteInstance(arg0 context.Context, arg1 int) error
DeleteInstance mocks base method.
func (*MockClient) DeleteLKECluster ¶
func (m *MockClient) DeleteLKECluster(arg0 context.Context, arg1 int) error
DeleteLKECluster mocks base method.
func (*MockClient) DeleteObjectStorageBucket ¶
func (m *MockClient) DeleteObjectStorageBucket(arg0 context.Context, arg1, arg2 string) error
DeleteObjectStorageBucket mocks base method.
func (*MockClient) DeleteObjectStorageKey ¶
func (m *MockClient) DeleteObjectStorageKey(arg0 context.Context, arg1 int) error
DeleteObjectStorageKey mocks base method.
func (*MockClient) DeleteStackscript ¶
func (m *MockClient) DeleteStackscript(arg0 context.Context, arg1 int) error
DeleteStackscript mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetInstance ¶
GetInstance mocks base method.
func (*MockClient) GetLKEClusterKubeconfig ¶
func (m *MockClient) GetLKEClusterKubeconfig(arg0 context.Context, arg1 int) (*linodego.LKEClusterKubeconfig, error)
GetLKEClusterKubeconfig mocks base method.
func (*MockClient) GetProfile ¶
GetProfile mocks base method.
func (*MockClient) ListInstances ¶
func (m *MockClient) ListInstances(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.Instance, error)
ListInstances mocks base method.
func (*MockClient) ListLKEClusterPools ¶
func (m *MockClient) ListLKEClusterPools(arg0 context.Context, arg1 int, arg2 *linodego.ListOptions) ([]linodego.LKEClusterPool, error)
ListLKEClusterPools mocks base method.
func (*MockClient) ListLKEClusters ¶
func (m *MockClient) ListLKEClusters(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.LKECluster, error)
ListLKEClusters mocks base method.
func (*MockClient) ListObjectStorageBuckets ¶
func (m *MockClient) ListObjectStorageBuckets(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.ObjectStorageBucket, error)
ListObjectStorageBuckets mocks base method.
func (*MockClient) ListStackscripts ¶
func (m *MockClient) ListStackscripts(arg0 context.Context, arg1 *linodego.ListOptions) ([]linodego.Stackscript, error)
ListStackscripts mocks base method.
func (*MockClient) UpdateInstance ¶
func (m *MockClient) UpdateInstance(arg0 context.Context, arg1 int, arg2 linodego.InstanceUpdateOptions) (*linodego.Instance, error)
UpdateInstance mocks base method.
func (*MockClient) UpdateLKECluster ¶
func (m *MockClient) UpdateLKECluster(arg0 context.Context, arg1 int, arg2 linodego.LKEClusterUpdateOptions) (*linodego.LKECluster, error)
UpdateLKECluster mocks base method.
func (*MockClient) UpdateLKEClusterPool ¶
func (m *MockClient) UpdateLKEClusterPool(arg0 context.Context, arg1, arg2 int, arg3 linodego.LKEClusterPoolUpdateOptions) (*linodego.LKEClusterPool, error)
UpdateLKEClusterPool mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) CreateInstance ¶
func (mr *MockClientMockRecorder) CreateInstance(arg0, arg1 interface{}) *gomock.Call
CreateInstance indicates an expected call of CreateInstance.
func (*MockClientMockRecorder) CreateLKECluster ¶
func (mr *MockClientMockRecorder) CreateLKECluster(arg0, arg1 interface{}) *gomock.Call
CreateLKECluster indicates an expected call of CreateLKECluster.
func (*MockClientMockRecorder) CreateObjectStorageBucket ¶
func (mr *MockClientMockRecorder) CreateObjectStorageBucket(arg0, arg1 interface{}) *gomock.Call
CreateObjectStorageBucket indicates an expected call of CreateObjectStorageBucket.
func (*MockClientMockRecorder) CreateObjectStorageKey ¶
func (mr *MockClientMockRecorder) CreateObjectStorageKey(arg0, arg1 interface{}) *gomock.Call
CreateObjectStorageKey indicates an expected call of CreateObjectStorageKey.
func (*MockClientMockRecorder) DeleteInstance ¶
func (mr *MockClientMockRecorder) DeleteInstance(arg0, arg1 interface{}) *gomock.Call
DeleteInstance indicates an expected call of DeleteInstance.
func (*MockClientMockRecorder) DeleteLKECluster ¶
func (mr *MockClientMockRecorder) DeleteLKECluster(arg0, arg1 interface{}) *gomock.Call
DeleteLKECluster indicates an expected call of DeleteLKECluster.
func (*MockClientMockRecorder) DeleteObjectStorageBucket ¶
func (mr *MockClientMockRecorder) DeleteObjectStorageBucket(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteObjectStorageBucket indicates an expected call of DeleteObjectStorageBucket.
func (*MockClientMockRecorder) DeleteObjectStorageKey ¶
func (mr *MockClientMockRecorder) DeleteObjectStorageKey(arg0, arg1 interface{}) *gomock.Call
DeleteObjectStorageKey indicates an expected call of DeleteObjectStorageKey.
func (*MockClientMockRecorder) DeleteStackscript ¶
func (mr *MockClientMockRecorder) DeleteStackscript(arg0, arg1 interface{}) *gomock.Call
DeleteStackscript indicates an expected call of DeleteStackscript.
func (*MockClientMockRecorder) GetInstance ¶
func (mr *MockClientMockRecorder) GetInstance(arg0, arg1 interface{}) *gomock.Call
GetInstance indicates an expected call of GetInstance.
func (*MockClientMockRecorder) GetLKEClusterKubeconfig ¶
func (mr *MockClientMockRecorder) GetLKEClusterKubeconfig(arg0, arg1 interface{}) *gomock.Call
GetLKEClusterKubeconfig indicates an expected call of GetLKEClusterKubeconfig.
func (*MockClientMockRecorder) GetProfile ¶
func (mr *MockClientMockRecorder) GetProfile(arg0 interface{}) *gomock.Call
GetProfile indicates an expected call of GetProfile.
func (*MockClientMockRecorder) ListInstances ¶
func (mr *MockClientMockRecorder) ListInstances(arg0, arg1 interface{}) *gomock.Call
ListInstances indicates an expected call of ListInstances.
func (*MockClientMockRecorder) ListLKEClusterPools ¶
func (mr *MockClientMockRecorder) ListLKEClusterPools(arg0, arg1, arg2 interface{}) *gomock.Call
ListLKEClusterPools indicates an expected call of ListLKEClusterPools.
func (*MockClientMockRecorder) ListLKEClusters ¶
func (mr *MockClientMockRecorder) ListLKEClusters(arg0, arg1 interface{}) *gomock.Call
ListLKEClusters indicates an expected call of ListLKEClusters.
func (*MockClientMockRecorder) ListObjectStorageBuckets ¶
func (mr *MockClientMockRecorder) ListObjectStorageBuckets(arg0, arg1 interface{}) *gomock.Call
ListObjectStorageBuckets indicates an expected call of ListObjectStorageBuckets.
func (*MockClientMockRecorder) ListStackscripts ¶
func (mr *MockClientMockRecorder) ListStackscripts(arg0, arg1 interface{}) *gomock.Call
ListStackscripts indicates an expected call of ListStackscripts.
func (*MockClientMockRecorder) UpdateInstance ¶
func (mr *MockClientMockRecorder) UpdateInstance(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateInstance indicates an expected call of UpdateInstance.
func (*MockClientMockRecorder) UpdateLKECluster ¶
func (mr *MockClientMockRecorder) UpdateLKECluster(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateLKECluster indicates an expected call of UpdateLKECluster.
func (*MockClientMockRecorder) UpdateLKEClusterPool ¶
func (mr *MockClientMockRecorder) UpdateLKEClusterPool(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
UpdateLKEClusterPool indicates an expected call of UpdateLKEClusterPool.