Documentation ¶
Index ¶
- type GetParams
- type MockResource
- func (_m *MockResource) Archive(_a0 context.Context, _a1 *Source) (sdk.Archive, error)
- func (_m *MockResource) Check(_a0 context.Context, _a1 *Source, _a2 *Version) ([]Version, error)
- func (_m *MockResource) Close(_a0 context.Context) error
- func (_m *MockResource) In(_a0 context.Context, _a1 *Source, _a2 *Version, _a3 string, _a4 *GetParams) ([]sdk.Metadata, error)
- func (_m *MockResource) Initialize(_a0 context.Context, _a1 *Source) error
- func (_m *MockResource) Out(_a0 context.Context, _a1 *Source, _a2 string, _a3 *PutParams) (Version, []sdk.Metadata, error)
- type PutParams
- type Resource
- type Source
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockResource ¶
MockResource is an autogenerated mock type for the Resource type
func NewMockResource ¶
func NewMockResource(t mockConstructorTestingTNewMockResource) *MockResource
NewMockResource creates a new instance of MockResource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockResource) Close ¶
func (_m *MockResource) Close(_a0 context.Context) error
Close provides a mock function with given fields: _a0
func (*MockResource) In ¶
func (_m *MockResource) In(_a0 context.Context, _a1 *Source, _a2 *Version, _a3 string, _a4 *GetParams) ([]sdk.Metadata, error)
In provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
func (*MockResource) Initialize ¶
func (_m *MockResource) Initialize(_a0 context.Context, _a1 *Source) error
Initialize provides a mock function with given fields: _a0, _a1
type Resource ¶
type Resource interface { Check(context.Context, *Source, *Version) ([]Version, error) Close(context.Context) error In(context.Context, *Source, *Version, string, *GetParams) ([]sdk.Metadata, error) Out(context.Context, *Source, string, *PutParams) (Version, []sdk.Metadata, error) Archive(context.Context, *Source) (sdk.Archive, error) Initialize(context.Context, *Source) error }
Click to show internal directories.
Click to hide internal directories.