build

package
v0.0.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	mock.Mock
}

Builder is an autogenerated mock type for the Builder type

func NewBuilder

func NewBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *Builder

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) (v1.Descriptor, error)

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

type Builder_BuildConfig_Call struct {
	*mock.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 (*Builder_BuildConfig_Call) Run

func (*Builder_BuildConfig_Call) RunAndReturn

type Builder_BuildLayer_Call

type Builder_BuildLayer_Call struct {
	*mock.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 (*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

type Builder_BuildManifest_Call

type Builder_BuildManifest_Call struct {
	*mock.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 (*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

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

type OutputStrategy struct {
	mock.Mock
}

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 (*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

type OutputStrategy_OutputConfig_Call struct {
	*mock.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 (*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

type OutputStrategy_OutputLayer_Call

type OutputStrategy_OutputLayer_Call struct {
	*mock.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 (*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

type OutputStrategy_OutputManifest_Call

type OutputStrategy_OutputManifest_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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