Documentation
¶
Index ¶
- type Builder
- func (_m *Builder) BuildConfig(ctx context.Context) (v1.Descriptor, error)
- func (_m *Builder) BuildLayer(ctx context.Context, mediaType string, workDir string, path string) (v1.Descriptor, error)
- func (_m *Builder) BuildManifest(ctx context.Context, layers []v1.Descriptor, config v1.Descriptor, ...) (v1.Descriptor, error)
- func (_m *Builder) EXPECT() *Builder_Expecter
- type Builder_BuildConfig_Call
- func (_c *Builder_BuildConfig_Call) Return(_a0 v1.Descriptor, _a1 error) *Builder_BuildConfig_Call
- func (_c *Builder_BuildConfig_Call) Run(run func(ctx context.Context)) *Builder_BuildConfig_Call
- func (_c *Builder_BuildConfig_Call) RunAndReturn(run func(context.Context) (v1.Descriptor, error)) *Builder_BuildConfig_Call
- type Builder_BuildLayer_Call
- func (_c *Builder_BuildLayer_Call) Return(_a0 v1.Descriptor, _a1 error) *Builder_BuildLayer_Call
- func (_c *Builder_BuildLayer_Call) Run(run func(ctx context.Context, mediaType string, workDir string, path string)) *Builder_BuildLayer_Call
- func (_c *Builder_BuildLayer_Call) RunAndReturn(run func(context.Context, string, string, string) (v1.Descriptor, error)) *Builder_BuildLayer_Call
- type Builder_BuildManifest_Call
- type Builder_Expecter
- func (_e *Builder_Expecter) BuildConfig(ctx 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, configJSON []byte) (v1.Descriptor, error)
- func (_m *OutputStrategy) OutputLayer(ctx context.Context, mediaType string, workDir string, relPath string, ...) (v1.Descriptor, error)
- func (_m *OutputStrategy) OutputManifest(ctx context.Context, mediaType string, manifestJSON []byte) (v1.Descriptor, error)
- type OutputStrategy_Expecter
- func (_e *OutputStrategy_Expecter) OutputConfig(ctx interface{}, mediaType interface{}, configJSON interface{}) *OutputStrategy_OutputConfig_Call
- func (_e *OutputStrategy_Expecter) OutputLayer(ctx interface{}, mediaType interface{}, workDir interface{}, ...) *OutputStrategy_OutputLayer_Call
- func (_e *OutputStrategy_Expecter) OutputManifest(ctx interface{}, mediaType interface{}, manifestJSON interface{}) *OutputStrategy_OutputManifest_Call
- type OutputStrategy_OutputConfig_Call
- func (_c *OutputStrategy_OutputConfig_Call) Return(_a0 v1.Descriptor, _a1 error) *OutputStrategy_OutputConfig_Call
- func (_c *OutputStrategy_OutputConfig_Call) Run(run func(ctx context.Context, mediaType string, configJSON []byte)) *OutputStrategy_OutputConfig_Call
- func (_c *OutputStrategy_OutputConfig_Call) RunAndReturn(run func(context.Context, string, []byte) (v1.Descriptor, error)) *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(run func(ctx context.Context, mediaType string, manifestJSON []byte)) *OutputStrategy_OutputManifest_Call
- func (_c *OutputStrategy_OutputManifest_Call) RunAndReturn(run func(context.Context, string, []byte) (v1.Descriptor, error)) *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 ¶
BuildConfig provides a mock function with given fields: ctx
func (*Builder) BuildLayer ¶
func (_m *Builder) BuildLayer(ctx context.Context, mediaType string, workDir string, path string) (v1.Descriptor, error)
BuildLayer provides a mock function with given fields: ctx, mediaType, workDir, path
func (*Builder) BuildManifest ¶
func (_m *Builder) BuildManifest(ctx context.Context, layers []v1.Descriptor, config v1.Descriptor, annotations map[string]string) (v1.Descriptor, error)
BuildManifest provides a mock function with given fields: ctx, layers, config, annotations
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 v1.Descriptor, _a1 error) *Builder_BuildConfig_Call
func (*Builder_BuildConfig_Call) Run ¶
func (_c *Builder_BuildConfig_Call) Run(run func(ctx context.Context)) *Builder_BuildConfig_Call
func (*Builder_BuildConfig_Call) RunAndReturn ¶
func (_c *Builder_BuildConfig_Call) RunAndReturn(run func(context.Context) (v1.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 v1.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)) *Builder_BuildLayer_Call
func (*Builder_BuildLayer_Call) RunAndReturn ¶
func (_c *Builder_BuildLayer_Call) RunAndReturn(run func(context.Context, string, string, string) (v1.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 v1.Descriptor, _a1 error) *Builder_BuildManifest_Call
func (*Builder_BuildManifest_Call) Run ¶
func (_c *Builder_BuildManifest_Call) Run(run func(ctx context.Context, layers []v1.Descriptor, config v1.Descriptor, annotations map[string]string)) *Builder_BuildManifest_Call
func (*Builder_BuildManifest_Call) RunAndReturn ¶
func (_c *Builder_BuildManifest_Call) RunAndReturn(run func(context.Context, []v1.Descriptor, v1.Descriptor, map[string]string) (v1.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{}) *Builder_BuildConfig_Call
BuildConfig is a helper method to define mock.On call
- ctx context.Context
func (*Builder_Expecter) BuildLayer ¶
func (_e *Builder_Expecter) BuildLayer(ctx interface{}, mediaType interface{}, workDir interface{}, path interface{}) *Builder_BuildLayer_Call
BuildLayer is a helper method to define mock.On call
- ctx context.Context
- mediaType string
- workDir string
- path string
func (*Builder_Expecter) BuildManifest ¶
func (_e *Builder_Expecter) BuildManifest(ctx interface{}, layers interface{}, config interface{}, annotations interface{}) *Builder_BuildManifest_Call
BuildManifest is a helper method to define mock.On call
- ctx context.Context
- layers []v1.Descriptor
- config v1.Descriptor
- annotations map[string]string
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, configJSON []byte) (v1.Descriptor, error)
OutputConfig provides a mock function with given fields: ctx, mediaType, configJSON
func (*OutputStrategy) OutputLayer ¶
func (_m *OutputStrategy) OutputLayer(ctx context.Context, mediaType string, workDir string, relPath string, reader io.Reader) (v1.Descriptor, error)
OutputLayer provides a mock function with given fields: ctx, mediaType, workDir, relPath, reader
func (*OutputStrategy) OutputManifest ¶
func (_m *OutputStrategy) OutputManifest(ctx context.Context, mediaType string, manifestJSON []byte) (v1.Descriptor, error)
OutputManifest provides a mock function with given fields: ctx, mediaType, manifestJSON
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{}, configJSON interface{}) *OutputStrategy_OutputConfig_Call
OutputConfig is a helper method to define mock.On call
- ctx context.Context
- mediaType string
- configJSON []byte
func (*OutputStrategy_Expecter) OutputLayer ¶
func (_e *OutputStrategy_Expecter) OutputLayer(ctx interface{}, mediaType interface{}, workDir interface{}, relPath interface{}, reader interface{}) *OutputStrategy_OutputLayer_Call
OutputLayer is a helper method to define mock.On call
- ctx context.Context
- mediaType string
- workDir string
- relPath string
- reader io.Reader
func (*OutputStrategy_Expecter) OutputManifest ¶
func (_e *OutputStrategy_Expecter) OutputManifest(ctx interface{}, mediaType interface{}, manifestJSON interface{}) *OutputStrategy_OutputManifest_Call
OutputManifest is a helper method to define mock.On call
- ctx context.Context
- mediaType string
- manifestJSON []byte
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) Run ¶
func (_c *OutputStrategy_OutputConfig_Call) Run(run func(ctx context.Context, mediaType string, configJSON []byte)) *OutputStrategy_OutputConfig_Call
func (*OutputStrategy_OutputConfig_Call) RunAndReturn ¶
func (_c *OutputStrategy_OutputConfig_Call) RunAndReturn(run func(context.Context, string, []byte) (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) Run ¶
func (_c *OutputStrategy_OutputLayer_Call) Run(run func(ctx context.Context, mediaType string, workDir string, relPath string, reader io.Reader)) *OutputStrategy_OutputLayer_Call
func (*OutputStrategy_OutputLayer_Call) RunAndReturn ¶
func (_c *OutputStrategy_OutputLayer_Call) RunAndReturn(run func(context.Context, string, string, string, io.Reader) (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) Run ¶
func (_c *OutputStrategy_OutputManifest_Call) Run(run func(ctx context.Context, mediaType string, manifestJSON []byte)) *OutputStrategy_OutputManifest_Call
func (*OutputStrategy_OutputManifest_Call) RunAndReturn ¶
func (_c *OutputStrategy_OutputManifest_Call) RunAndReturn(run func(context.Context, string, []byte) (v1.Descriptor, error)) *OutputStrategy_OutputManifest_Call