build

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 6 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, 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

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 (_c *Builder_BuildConfig_Call) Run(run func(ctx context.Context, config v1.Model, _a2 hooks.Hooks)) *Builder_BuildConfig_Call

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, _a4 hooks.Hooks)) *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

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

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, 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

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, digest string, size int64, reader io.Reader, _a5 hooks.Hooks)) *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, relPath string, digest string, size int64, reader io.Reader, _a6 hooks.Hooks)) *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, digest string, size int64, reader io.Reader, _a5 hooks.Hooks)) *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