mocks

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockResources

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

MockResources is a mock of Resources interface.

func NewMockResources

func NewMockResources(ctrl *gomock.Controller) *MockResources

NewMockResources creates a new mock instance.

func (*MockResources) AddPendingResource

func (m *MockResources) AddPendingResource(arg0, arg1 string, arg2 resource0.Resource) (string, error)

AddPendingResource mocks base method.

func (*MockResources) EXPECT

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

func (*MockResources) GetPendingResource

func (m *MockResources) GetPendingResource(arg0, arg1, arg2 string) (resource.Resource, error)

GetPendingResource mocks base method.

func (*MockResources) GetResource

func (m *MockResources) GetResource(arg0, arg1 string) (resource.Resource, error)

GetResource mocks base method.

func (*MockResources) ListPendingResources

func (m *MockResources) ListPendingResources(arg0 string) (resource.ApplicationResources, error)

ListPendingResources mocks base method.

func (*MockResources) ListResources

func (m *MockResources) ListResources(arg0 string) (resource.ApplicationResources, error)

ListResources mocks base method.

func (*MockResources) OpenResource

func (m *MockResources) OpenResource(arg0, arg1 string) (resource.Resource, io.ReadCloser, error)

OpenResource mocks base method.

func (*MockResources) OpenResourceForUniter

func (m *MockResources) OpenResourceForUniter(arg0, arg1 string) (resource.Resource, io.ReadCloser, error)

OpenResourceForUniter mocks base method.

func (*MockResources) RemovePendingAppResources

func (m *MockResources) RemovePendingAppResources(arg0 string, arg1 map[string]string) error

RemovePendingAppResources mocks base method.

func (*MockResources) SetCharmStoreResources

func (m *MockResources) SetCharmStoreResources(arg0 string, arg1 []resource0.Resource, arg2 time.Time) error

SetCharmStoreResources mocks base method.

func (*MockResources) SetResource

SetResource mocks base method.

func (*MockResources) SetUnitResource

func (m *MockResources) SetUnitResource(arg0, arg1 string, arg2 resource0.Resource) (resource.Resource, error)

SetUnitResource mocks base method.

func (*MockResources) UpdatePendingResource

func (m *MockResources) UpdatePendingResource(arg0, arg1, arg2 string, arg3 resource0.Resource, arg4 io.Reader) (resource.Resource, error)

UpdatePendingResource mocks base method.

type MockResourcesAddPendingResourceCall

type MockResourcesAddPendingResourceCall struct {
	*gomock.Call
}

MockResourcesAddPendingResourceCall wrap *gomock.Call

func (*MockResourcesAddPendingResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesAddPendingResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesAddPendingResourceCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesGetPendingResourceCall

type MockResourcesGetPendingResourceCall struct {
	*gomock.Call
}

MockResourcesGetPendingResourceCall wrap *gomock.Call

func (*MockResourcesGetPendingResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesGetPendingResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesGetPendingResourceCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesGetResourceCall

type MockResourcesGetResourceCall struct {
	*gomock.Call
}

MockResourcesGetResourceCall wrap *gomock.Call

func (*MockResourcesGetResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesGetResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesGetResourceCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesListPendingResourcesCall

type MockResourcesListPendingResourcesCall struct {
	*gomock.Call
}

MockResourcesListPendingResourcesCall wrap *gomock.Call

func (*MockResourcesListPendingResourcesCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesListPendingResourcesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesListPendingResourcesCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesListResourcesCall

type MockResourcesListResourcesCall struct {
	*gomock.Call
}

MockResourcesListResourcesCall wrap *gomock.Call

func (*MockResourcesListResourcesCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesListResourcesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesListResourcesCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesMockRecorder

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

MockResourcesMockRecorder is the mock recorder for MockResources.

func (*MockResourcesMockRecorder) AddPendingResource

func (mr *MockResourcesMockRecorder) AddPendingResource(arg0, arg1, arg2 any) *MockResourcesAddPendingResourceCall

AddPendingResource indicates an expected call of AddPendingResource.

func (*MockResourcesMockRecorder) GetPendingResource

func (mr *MockResourcesMockRecorder) GetPendingResource(arg0, arg1, arg2 any) *MockResourcesGetPendingResourceCall

GetPendingResource indicates an expected call of GetPendingResource.

func (*MockResourcesMockRecorder) GetResource

func (mr *MockResourcesMockRecorder) GetResource(arg0, arg1 any) *MockResourcesGetResourceCall

GetResource indicates an expected call of GetResource.

func (*MockResourcesMockRecorder) ListPendingResources

ListPendingResources indicates an expected call of ListPendingResources.

func (*MockResourcesMockRecorder) ListResources

ListResources indicates an expected call of ListResources.

func (*MockResourcesMockRecorder) OpenResource

func (mr *MockResourcesMockRecorder) OpenResource(arg0, arg1 any) *MockResourcesOpenResourceCall

OpenResource indicates an expected call of OpenResource.

func (*MockResourcesMockRecorder) OpenResourceForUniter

func (mr *MockResourcesMockRecorder) OpenResourceForUniter(arg0, arg1 any) *MockResourcesOpenResourceForUniterCall

OpenResourceForUniter indicates an expected call of OpenResourceForUniter.

func (*MockResourcesMockRecorder) RemovePendingAppResources

func (mr *MockResourcesMockRecorder) RemovePendingAppResources(arg0, arg1 any) *MockResourcesRemovePendingAppResourcesCall

RemovePendingAppResources indicates an expected call of RemovePendingAppResources.

func (*MockResourcesMockRecorder) SetCharmStoreResources

func (mr *MockResourcesMockRecorder) SetCharmStoreResources(arg0, arg1, arg2 any) *MockResourcesSetCharmStoreResourcesCall

SetCharmStoreResources indicates an expected call of SetCharmStoreResources.

func (*MockResourcesMockRecorder) SetResource

func (mr *MockResourcesMockRecorder) SetResource(arg0, arg1, arg2, arg3, arg4 any) *MockResourcesSetResourceCall

SetResource indicates an expected call of SetResource.

func (*MockResourcesMockRecorder) SetUnitResource

func (mr *MockResourcesMockRecorder) SetUnitResource(arg0, arg1, arg2 any) *MockResourcesSetUnitResourceCall

SetUnitResource indicates an expected call of SetUnitResource.

func (*MockResourcesMockRecorder) UpdatePendingResource

func (mr *MockResourcesMockRecorder) UpdatePendingResource(arg0, arg1, arg2, arg3, arg4 any) *MockResourcesUpdatePendingResourceCall

UpdatePendingResource indicates an expected call of UpdatePendingResource.

type MockResourcesOpenResourceCall

type MockResourcesOpenResourceCall struct {
	*gomock.Call
}

MockResourcesOpenResourceCall wrap *gomock.Call

func (*MockResourcesOpenResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesOpenResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesOpenResourceCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesOpenResourceForUniterCall

type MockResourcesOpenResourceForUniterCall struct {
	*gomock.Call
}

MockResourcesOpenResourceForUniterCall wrap *gomock.Call

func (*MockResourcesOpenResourceForUniterCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesOpenResourceForUniterCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesOpenResourceForUniterCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesRemovePendingAppResourcesCall

type MockResourcesRemovePendingAppResourcesCall struct {
	*gomock.Call
}

MockResourcesRemovePendingAppResourcesCall wrap *gomock.Call

func (*MockResourcesRemovePendingAppResourcesCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesRemovePendingAppResourcesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesRemovePendingAppResourcesCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesSetCharmStoreResourcesCall

type MockResourcesSetCharmStoreResourcesCall struct {
	*gomock.Call
}

MockResourcesSetCharmStoreResourcesCall wrap *gomock.Call

func (*MockResourcesSetCharmStoreResourcesCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesSetCharmStoreResourcesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesSetCharmStoreResourcesCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesSetResourceCall

type MockResourcesSetResourceCall struct {
	*gomock.Call
}

MockResourcesSetResourceCall wrap *gomock.Call

func (*MockResourcesSetResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesSetResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesSetResourceCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesSetUnitResourceCall

type MockResourcesSetUnitResourceCall struct {
	*gomock.Call
}

MockResourcesSetUnitResourceCall wrap *gomock.Call

func (*MockResourcesSetUnitResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesSetUnitResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesSetUnitResourceCall) Return

Return rewrite *gomock.Call.Return

type MockResourcesUpdatePendingResourceCall

type MockResourcesUpdatePendingResourceCall struct {
	*gomock.Call
}

MockResourcesUpdatePendingResourceCall wrap *gomock.Call

func (*MockResourcesUpdatePendingResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourcesUpdatePendingResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourcesUpdatePendingResourceCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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