Documentation
¶
Index ¶
- type Builder
- func (_m *Builder) BuildConfig(ctx context.Context, config v1.Model, _a2 hooks.Hooks) (specs_gov1.Descriptor, error)
- func (_m *Builder) BuildLayer(ctx context.Context, mediaType string, workDir string, path string, ...) (specs_gov1.Descriptor, error)
- func (_m *Builder) BuildManifest(ctx context.Context, layers []specs_gov1.Descriptor, ...) (specs_gov1.Descriptor, error)
- func (_m *Builder) EXPECT() *Builder_Expecter
- type Builder_BuildConfig_Call
- func (_c *Builder_BuildConfig_Call) Return(_a0 specs_gov1.Descriptor, _a1 error) *Builder_BuildConfig_Call
- func (_c *Builder_BuildConfig_Call) Run(run func(ctx context.Context, config v1.Model, _a2 hooks.Hooks)) *Builder_BuildConfig_Call
- func (_c *Builder_BuildConfig_Call) RunAndReturn(...) *Builder_BuildConfig_Call
- type Builder_BuildLayer_Call
- type Builder_BuildManifest_Call
- func (_c *Builder_BuildManifest_Call) Return(_a0 specs_gov1.Descriptor, _a1 error) *Builder_BuildManifest_Call
- func (_c *Builder_BuildManifest_Call) Run(run func(ctx context.Context, layers []specs_gov1.Descriptor, ...)) *Builder_BuildManifest_Call
- func (_c *Builder_BuildManifest_Call) RunAndReturn(...) *Builder_BuildManifest_Call
- type Builder_Expecter
- func (_e *Builder_Expecter) BuildConfig(ctx interface{}, config interface{}, _a2 interface{}) *Builder_BuildConfig_Call
- func (_e *Builder_Expecter) BuildLayer(ctx interface{}, mediaType interface{}, workDir interface{}, path interface{}, ...) *Builder_BuildLayer_Call
- func (_e *Builder_Expecter) BuildManifest(ctx interface{}, layers interface{}, config interface{}, ...) *Builder_BuildManifest_Call
- type OutputStrategy
- func (_m *OutputStrategy) EXPECT() *OutputStrategy_Expecter
- func (_m *OutputStrategy) OutputConfig(ctx context.Context, mediaType string, digest string, size int64, ...) (v1.Descriptor, error)
- func (_m *OutputStrategy) OutputLayer(ctx context.Context, mediaType string, relPath string, digest string, ...) (v1.Descriptor, error)
- func (_m *OutputStrategy) OutputManifest(ctx context.Context, mediaType string, digest string, size int64, ...) (v1.Descriptor, error)
- type OutputStrategy_Expecter
- func (_e *OutputStrategy_Expecter) OutputConfig(ctx interface{}, mediaType interface{}, digest interface{}, size interface{}, ...) *OutputStrategy_OutputConfig_Call
- func (_e *OutputStrategy_Expecter) OutputLayer(ctx interface{}, mediaType interface{}, relPath interface{}, ...) *OutputStrategy_OutputLayer_Call
- func (_e *OutputStrategy_Expecter) OutputManifest(ctx interface{}, mediaType interface{}, digest interface{}, size interface{}, ...) *OutputStrategy_OutputManifest_Call
- type OutputStrategy_OutputConfig_Call
- type OutputStrategy_OutputLayer_Call
- type OutputStrategy_OutputManifest_Call
- func (_c *OutputStrategy_OutputManifest_Call) Return(_a0 v1.Descriptor, _a1 error) *OutputStrategy_OutputManifest_Call
- func (_c *OutputStrategy_OutputManifest_Call) Run(...) *OutputStrategy_OutputManifest_Call
- func (_c *OutputStrategy_OutputManifest_Call) RunAndReturn(...) *OutputStrategy_OutputManifest_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
Builder is an autogenerated mock type for the Builder type
func NewBuilder ¶
NewBuilder creates a new instance of Builder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Builder) BuildConfig ¶
func (_m *Builder) BuildConfig(ctx context.Context, config v1.Model, _a2 hooks.Hooks) (specs_gov1.Descriptor, error)
BuildConfig provides a mock function with given fields: ctx, config, _a2
func (*Builder) BuildLayer ¶
func (_m *Builder) BuildLayer(ctx context.Context, mediaType string, workDir string, path string, _a4 hooks.Hooks) (specs_gov1.Descriptor, error)
BuildLayer provides a mock function with given fields: ctx, mediaType, workDir, path, _a4
func (*Builder) BuildManifest ¶
func (_m *Builder) BuildManifest(ctx context.Context, layers []specs_gov1.Descriptor, config specs_gov1.Descriptor, annotations map[string]string, _a4 hooks.Hooks) (specs_gov1.Descriptor, error)
BuildManifest provides a mock function with given fields: ctx, layers, config, annotations, _a4
func (*Builder) EXPECT ¶
func (_m *Builder) EXPECT() *Builder_Expecter
type Builder_BuildConfig_Call ¶
Builder_BuildConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildConfig'
func (*Builder_BuildConfig_Call) Return ¶
func (_c *Builder_BuildConfig_Call) Return(_a0 specs_gov1.Descriptor, _a1 error) *Builder_BuildConfig_Call
func (*Builder_BuildConfig_Call) Run ¶
func (_c *Builder_BuildConfig_Call) Run(run func(ctx context.Context, config v1.Model, _a2 hooks.Hooks)) *Builder_BuildConfig_Call
func (*Builder_BuildConfig_Call) RunAndReturn ¶
func (_c *Builder_BuildConfig_Call) RunAndReturn(run func(context.Context, v1.Model, hooks.Hooks) (specs_gov1.Descriptor, error)) *Builder_BuildConfig_Call
type Builder_BuildLayer_Call ¶
Builder_BuildLayer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildLayer'
func (*Builder_BuildLayer_Call) Return ¶
func (_c *Builder_BuildLayer_Call) Return(_a0 specs_gov1.Descriptor, _a1 error) *Builder_BuildLayer_Call
func (*Builder_BuildLayer_Call) Run ¶
func (_c *Builder_BuildLayer_Call) Run(run func(ctx context.Context, mediaType string, workDir string, path string, _a4 hooks.Hooks)) *Builder_BuildLayer_Call
func (*Builder_BuildLayer_Call) RunAndReturn ¶
func (_c *Builder_BuildLayer_Call) RunAndReturn(run func(context.Context, string, string, string, hooks.Hooks) (specs_gov1.Descriptor, error)) *Builder_BuildLayer_Call
type Builder_BuildManifest_Call ¶
Builder_BuildManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildManifest'
func (*Builder_BuildManifest_Call) Return ¶
func (_c *Builder_BuildManifest_Call) Return(_a0 specs_gov1.Descriptor, _a1 error) *Builder_BuildManifest_Call
func (*Builder_BuildManifest_Call) Run ¶
func (_c *Builder_BuildManifest_Call) Run(run func(ctx context.Context, layers []specs_gov1.Descriptor, config specs_gov1.Descriptor, annotations map[string]string, _a4 hooks.Hooks)) *Builder_BuildManifest_Call
func (*Builder_BuildManifest_Call) RunAndReturn ¶
func (_c *Builder_BuildManifest_Call) RunAndReturn(run func(context.Context, []specs_gov1.Descriptor, specs_gov1.Descriptor, map[string]string, hooks.Hooks) (specs_gov1.Descriptor, error)) *Builder_BuildManifest_Call
type Builder_Expecter ¶
type Builder_Expecter struct {
// contains filtered or unexported fields
}
func (*Builder_Expecter) BuildConfig ¶
func (_e *Builder_Expecter) BuildConfig(ctx interface{}, config interface{}, _a2 interface{}) *Builder_BuildConfig_Call
BuildConfig is a helper method to define mock.On call
- ctx context.Context
- config v1.Model
- _a2 hooks.Hooks
func (*Builder_Expecter) BuildLayer ¶
func (_e *Builder_Expecter) BuildLayer(ctx interface{}, mediaType interface{}, workDir interface{}, path interface{}, _a4 interface{}) *Builder_BuildLayer_Call
BuildLayer is a helper method to define mock.On call
- ctx context.Context
- mediaType string
- workDir string
- path string
- _a4 hooks.Hooks
func (*Builder_Expecter) BuildManifest ¶
func (_e *Builder_Expecter) BuildManifest(ctx interface{}, layers interface{}, config interface{}, annotations interface{}, _a4 interface{}) *Builder_BuildManifest_Call
BuildManifest is a helper method to define mock.On call
- ctx context.Context
- layers []specs_gov1.Descriptor
- config specs_gov1.Descriptor
- annotations map[string]string
- _a4 hooks.Hooks
type OutputStrategy ¶
OutputStrategy is an autogenerated mock type for the OutputStrategy type
func NewOutputStrategy ¶
func NewOutputStrategy(t interface { mock.TestingT Cleanup(func()) }) *OutputStrategy
NewOutputStrategy creates a new instance of OutputStrategy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OutputStrategy) EXPECT ¶
func (_m *OutputStrategy) EXPECT() *OutputStrategy_Expecter
func (*OutputStrategy) OutputConfig ¶
func (_m *OutputStrategy) OutputConfig(ctx context.Context, mediaType string, digest string, size int64, reader io.Reader, _a5 hooks.Hooks) (v1.Descriptor, error)
OutputConfig provides a mock function with given fields: ctx, mediaType, digest, size, reader, _a5
func (*OutputStrategy) OutputLayer ¶
func (_m *OutputStrategy) OutputLayer(ctx context.Context, mediaType string, relPath string, digest string, size int64, reader io.Reader, _a6 hooks.Hooks) (v1.Descriptor, error)
OutputLayer provides a mock function with given fields: ctx, mediaType, relPath, digest, size, reader, _a6
func (*OutputStrategy) OutputManifest ¶
func (_m *OutputStrategy) OutputManifest(ctx context.Context, mediaType string, digest string, size int64, reader io.Reader, _a5 hooks.Hooks) (v1.Descriptor, error)
OutputManifest provides a mock function with given fields: ctx, mediaType, digest, size, reader, _a5
type OutputStrategy_Expecter ¶
type OutputStrategy_Expecter struct {
// contains filtered or unexported fields
}
func (*OutputStrategy_Expecter) OutputConfig ¶
func (_e *OutputStrategy_Expecter) OutputConfig(ctx interface{}, mediaType interface{}, digest interface{}, size interface{}, reader interface{}, _a5 interface{}) *OutputStrategy_OutputConfig_Call
OutputConfig is a helper method to define mock.On call
- ctx context.Context
- mediaType string
- digest string
- size int64
- reader io.Reader
- _a5 hooks.Hooks
func (*OutputStrategy_Expecter) OutputLayer ¶
func (_e *OutputStrategy_Expecter) OutputLayer(ctx interface{}, mediaType interface{}, relPath interface{}, digest interface{}, size interface{}, reader interface{}, _a6 interface{}) *OutputStrategy_OutputLayer_Call
OutputLayer is a helper method to define mock.On call
- ctx context.Context
- mediaType string
- relPath string
- digest string
- size int64
- reader io.Reader
- _a6 hooks.Hooks
func (*OutputStrategy_Expecter) OutputManifest ¶
func (_e *OutputStrategy_Expecter) OutputManifest(ctx interface{}, mediaType interface{}, digest interface{}, size interface{}, reader interface{}, _a5 interface{}) *OutputStrategy_OutputManifest_Call
OutputManifest is a helper method to define mock.On call
- ctx context.Context
- mediaType string
- digest string
- size int64
- reader io.Reader
- _a5 hooks.Hooks
type OutputStrategy_OutputConfig_Call ¶
OutputStrategy_OutputConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OutputConfig'
func (*OutputStrategy_OutputConfig_Call) Return ¶
func (_c *OutputStrategy_OutputConfig_Call) Return(_a0 v1.Descriptor, _a1 error) *OutputStrategy_OutputConfig_Call
func (*OutputStrategy_OutputConfig_Call) RunAndReturn ¶
func (_c *OutputStrategy_OutputConfig_Call) RunAndReturn(run func(context.Context, string, string, int64, io.Reader, hooks.Hooks) (v1.Descriptor, error)) *OutputStrategy_OutputConfig_Call
type OutputStrategy_OutputLayer_Call ¶
OutputStrategy_OutputLayer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OutputLayer'
func (*OutputStrategy_OutputLayer_Call) Return ¶
func (_c *OutputStrategy_OutputLayer_Call) Return(_a0 v1.Descriptor, _a1 error) *OutputStrategy_OutputLayer_Call
func (*OutputStrategy_OutputLayer_Call) RunAndReturn ¶
func (_c *OutputStrategy_OutputLayer_Call) RunAndReturn(run func(context.Context, string, string, string, int64, io.Reader, hooks.Hooks) (v1.Descriptor, error)) *OutputStrategy_OutputLayer_Call
type OutputStrategy_OutputManifest_Call ¶
OutputStrategy_OutputManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OutputManifest'
func (*OutputStrategy_OutputManifest_Call) Return ¶
func (_c *OutputStrategy_OutputManifest_Call) Return(_a0 v1.Descriptor, _a1 error) *OutputStrategy_OutputManifest_Call
func (*OutputStrategy_OutputManifest_Call) RunAndReturn ¶
func (_c *OutputStrategy_OutputManifest_Call) RunAndReturn(run func(context.Context, string, string, int64, io.Reader, hooks.Hooks) (v1.Descriptor, error)) *OutputStrategy_OutputManifest_Call