mocks

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 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 CatalogService

type CatalogService struct {
	mock.Mock
}

CatalogService is an autogenerated mock type for the CatalogService type

func NewCatalogService

func NewCatalogService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CatalogService

NewCatalogService creates a new instance of CatalogService. 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 (*CatalogService) Catalog

func (_m *CatalogService) Catalog() plugins.Catalog

Catalog provides a mock function with no fields

func (*CatalogService) EXPECT

type CatalogService_Catalog_Call

type CatalogService_Catalog_Call struct {
	*mock.Call
}

CatalogService_Catalog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Catalog'

func (*CatalogService_Catalog_Call) Return

func (*CatalogService_Catalog_Call) Run

func (*CatalogService_Catalog_Call) RunAndReturn

type CatalogService_Expecter

type CatalogService_Expecter struct {
	// contains filtered or unexported fields
}

func (*CatalogService_Expecter) Catalog

Catalog is a helper method to define mock.On call

type Executor

type Executor struct {
	mock.Mock
}

Executor is an autogenerated mock type for the Executor type

func NewExecutor

func NewExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Executor

NewExecutor creates a new instance of Executor. 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 (*Executor) EXPECT

func (_m *Executor) EXPECT() *Executor_Expecter

func (*Executor) RunStage

func (_m *Executor) RunStage(ctx context.Context, in plugins.StageInput) (*plugins.StageOutcome, error)

RunStage provides a mock function with given fields: ctx, in

type Executor_Expecter

type Executor_Expecter struct {
	// contains filtered or unexported fields
}

func (*Executor_Expecter) RunStage

func (_e *Executor_Expecter) RunStage(ctx interface{}, in interface{}) *Executor_RunStage_Call

RunStage is a helper method to define mock.On call

  • ctx context.Context
  • in plugins.StageInput

type Executor_RunStage_Call

type Executor_RunStage_Call struct {
	*mock.Call
}

Executor_RunStage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunStage'

func (*Executor_RunStage_Call) Return

func (*Executor_RunStage_Call) Run

func (*Executor_RunStage_Call) RunAndReturn

type Plugin

type Plugin struct {
	mock.Mock
}

Plugin is an autogenerated mock type for the Plugin type

func NewPlugin

func NewPlugin(t interface {
	mock.TestingT
	Cleanup(func())
}) *Plugin

NewPlugin creates a new instance of Plugin. 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 (*Plugin) EXPECT

func (_m *Plugin) EXPECT() *Plugin_Expecter

func (*Plugin) Execute

func (_m *Plugin) Execute(ctx context.Context, in plugins.ExecInput) (*plugins.Result, error)

Execute provides a mock function with given fields: ctx, in

func (*Plugin) MandatoryStages

func (_m *Plugin) MandatoryStages() []policy.Stage

MandatoryStages provides a mock function with no fields

func (*Plugin) MutatesMetadata added in v0.2.3

func (_m *Plugin) MutatesMetadata() bool

MutatesMetadata provides a mock function with no fields

func (*Plugin) MutatesRequestBody added in v0.2.3

func (_m *Plugin) MutatesRequestBody() bool

MutatesRequestBody provides a mock function with no fields

func (*Plugin) MutatesResponseBody added in v0.2.3

func (_m *Plugin) MutatesResponseBody() bool

MutatesResponseBody provides a mock function with no fields

func (*Plugin) Name

func (_m *Plugin) Name() string

Name provides a mock function with no fields

func (*Plugin) SupportedModes

func (_m *Plugin) SupportedModes() []policy.Mode

SupportedModes provides a mock function with no fields

func (*Plugin) SupportedStages

func (_m *Plugin) SupportedStages() []policy.Stage

SupportedStages provides a mock function with no fields

func (*Plugin) ValidateConfig

func (_m *Plugin) ValidateConfig(settings map[string]interface{}) error

ValidateConfig provides a mock function with given fields: settings

type Plugin_Execute_Call

type Plugin_Execute_Call struct {
	*mock.Call
}

Plugin_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*Plugin_Execute_Call) Return

func (*Plugin_Execute_Call) Run

func (*Plugin_Execute_Call) RunAndReturn

type Plugin_Expecter

type Plugin_Expecter struct {
	// contains filtered or unexported fields
}

func (*Plugin_Expecter) Execute

func (_e *Plugin_Expecter) Execute(ctx interface{}, in interface{}) *Plugin_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • in plugins.ExecInput

func (*Plugin_Expecter) MandatoryStages

func (_e *Plugin_Expecter) MandatoryStages() *Plugin_MandatoryStages_Call

MandatoryStages is a helper method to define mock.On call

func (*Plugin_Expecter) MutatesMetadata added in v0.2.3

func (_e *Plugin_Expecter) MutatesMetadata() *Plugin_MutatesMetadata_Call

MutatesMetadata is a helper method to define mock.On call

func (*Plugin_Expecter) MutatesRequestBody added in v0.2.3

func (_e *Plugin_Expecter) MutatesRequestBody() *Plugin_MutatesRequestBody_Call

MutatesRequestBody is a helper method to define mock.On call

func (*Plugin_Expecter) MutatesResponseBody added in v0.2.3

func (_e *Plugin_Expecter) MutatesResponseBody() *Plugin_MutatesResponseBody_Call

MutatesResponseBody is a helper method to define mock.On call

func (*Plugin_Expecter) Name

func (_e *Plugin_Expecter) Name() *Plugin_Name_Call

Name is a helper method to define mock.On call

func (*Plugin_Expecter) SupportedModes

func (_e *Plugin_Expecter) SupportedModes() *Plugin_SupportedModes_Call

SupportedModes is a helper method to define mock.On call

func (*Plugin_Expecter) SupportedStages

func (_e *Plugin_Expecter) SupportedStages() *Plugin_SupportedStages_Call

SupportedStages is a helper method to define mock.On call

func (*Plugin_Expecter) ValidateConfig

func (_e *Plugin_Expecter) ValidateConfig(settings interface{}) *Plugin_ValidateConfig_Call

ValidateConfig is a helper method to define mock.On call

  • settings map[string]interface{}

type Plugin_MandatoryStages_Call

type Plugin_MandatoryStages_Call struct {
	*mock.Call
}

Plugin_MandatoryStages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MandatoryStages'

func (*Plugin_MandatoryStages_Call) Return

func (*Plugin_MandatoryStages_Call) Run

func (*Plugin_MandatoryStages_Call) RunAndReturn

func (_c *Plugin_MandatoryStages_Call) RunAndReturn(run func() []policy.Stage) *Plugin_MandatoryStages_Call

type Plugin_MutatesMetadata_Call added in v0.2.3

type Plugin_MutatesMetadata_Call struct {
	*mock.Call
}

Plugin_MutatesMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MutatesMetadata'

func (*Plugin_MutatesMetadata_Call) Return added in v0.2.3

func (*Plugin_MutatesMetadata_Call) Run added in v0.2.3

func (*Plugin_MutatesMetadata_Call) RunAndReturn added in v0.2.3

func (_c *Plugin_MutatesMetadata_Call) RunAndReturn(run func() bool) *Plugin_MutatesMetadata_Call

type Plugin_MutatesRequestBody_Call added in v0.2.3

type Plugin_MutatesRequestBody_Call struct {
	*mock.Call
}

Plugin_MutatesRequestBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MutatesRequestBody'

func (*Plugin_MutatesRequestBody_Call) Return added in v0.2.3

func (*Plugin_MutatesRequestBody_Call) Run added in v0.2.3

func (*Plugin_MutatesRequestBody_Call) RunAndReturn added in v0.2.3

type Plugin_MutatesResponseBody_Call added in v0.2.3

type Plugin_MutatesResponseBody_Call struct {
	*mock.Call
}

Plugin_MutatesResponseBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MutatesResponseBody'

func (*Plugin_MutatesResponseBody_Call) Return added in v0.2.3

func (*Plugin_MutatesResponseBody_Call) Run added in v0.2.3

func (*Plugin_MutatesResponseBody_Call) RunAndReturn added in v0.2.3

type Plugin_Name_Call

type Plugin_Name_Call struct {
	*mock.Call
}

Plugin_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*Plugin_Name_Call) Return

func (_c *Plugin_Name_Call) Return(_a0 string) *Plugin_Name_Call

func (*Plugin_Name_Call) Run

func (_c *Plugin_Name_Call) Run(run func()) *Plugin_Name_Call

func (*Plugin_Name_Call) RunAndReturn

func (_c *Plugin_Name_Call) RunAndReturn(run func() string) *Plugin_Name_Call

type Plugin_SupportedModes_Call

type Plugin_SupportedModes_Call struct {
	*mock.Call
}

Plugin_SupportedModes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SupportedModes'

func (*Plugin_SupportedModes_Call) Return

func (*Plugin_SupportedModes_Call) Run

func (*Plugin_SupportedModes_Call) RunAndReturn

func (_c *Plugin_SupportedModes_Call) RunAndReturn(run func() []policy.Mode) *Plugin_SupportedModes_Call

type Plugin_SupportedStages_Call

type Plugin_SupportedStages_Call struct {
	*mock.Call
}

Plugin_SupportedStages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SupportedStages'

func (*Plugin_SupportedStages_Call) Return

func (*Plugin_SupportedStages_Call) Run

func (*Plugin_SupportedStages_Call) RunAndReturn

func (_c *Plugin_SupportedStages_Call) RunAndReturn(run func() []policy.Stage) *Plugin_SupportedStages_Call

type Plugin_ValidateConfig_Call

type Plugin_ValidateConfig_Call struct {
	*mock.Call
}

Plugin_ValidateConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateConfig'

func (*Plugin_ValidateConfig_Call) Return

func (*Plugin_ValidateConfig_Call) Run

func (_c *Plugin_ValidateConfig_Call) Run(run func(settings map[string]interface{})) *Plugin_ValidateConfig_Call

func (*Plugin_ValidateConfig_Call) RunAndReturn

func (_c *Plugin_ValidateConfig_Call) RunAndReturn(run func(map[string]interface{}) error) *Plugin_ValidateConfig_Call

type Registry

type Registry struct {
	mock.Mock
}

Registry is an autogenerated mock type for the Registry type

func NewRegistry

func NewRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *Registry

NewRegistry creates a new instance of Registry. 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 (*Registry) EXPECT

func (_m *Registry) EXPECT() *Registry_Expecter

func (*Registry) Get

func (_m *Registry) Get(name string) (plugins.Plugin, bool)

Get provides a mock function with given fields: name

func (*Registry) Names

func (_m *Registry) Names() []string

Names provides a mock function with no fields

func (*Registry) Register

func (_m *Registry) Register(p plugins.Plugin) error

Register provides a mock function with given fields: p

func (*Registry) Validate

func (_m *Registry) Validate(name string, settings map[string]interface{}) error

Validate provides a mock function with given fields: name, settings

func (*Registry) ValidateStages

func (_m *Registry) ValidateStages(name string, selected []policy.Stage) error

ValidateStages provides a mock function with given fields: name, selected

type Registry_Expecter

type Registry_Expecter struct {
	// contains filtered or unexported fields
}

func (*Registry_Expecter) Get

func (_e *Registry_Expecter) Get(name interface{}) *Registry_Get_Call

Get is a helper method to define mock.On call

  • name string

func (*Registry_Expecter) Names

Names is a helper method to define mock.On call

func (*Registry_Expecter) Register

func (_e *Registry_Expecter) Register(p interface{}) *Registry_Register_Call

Register is a helper method to define mock.On call

  • p plugins.Plugin

func (*Registry_Expecter) Validate

func (_e *Registry_Expecter) Validate(name interface{}, settings interface{}) *Registry_Validate_Call

Validate is a helper method to define mock.On call

  • name string
  • settings map[string]interface{}

func (*Registry_Expecter) ValidateStages

func (_e *Registry_Expecter) ValidateStages(name interface{}, selected interface{}) *Registry_ValidateStages_Call

ValidateStages is a helper method to define mock.On call

  • name string
  • selected []policy.Stage

type Registry_Get_Call

type Registry_Get_Call struct {
	*mock.Call
}

Registry_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Registry_Get_Call) Return

func (_c *Registry_Get_Call) Return(_a0 plugins.Plugin, _a1 bool) *Registry_Get_Call

func (*Registry_Get_Call) Run

func (_c *Registry_Get_Call) Run(run func(name string)) *Registry_Get_Call

func (*Registry_Get_Call) RunAndReturn

func (_c *Registry_Get_Call) RunAndReturn(run func(string) (plugins.Plugin, bool)) *Registry_Get_Call

type Registry_Names_Call

type Registry_Names_Call struct {
	*mock.Call
}

Registry_Names_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Names'

func (*Registry_Names_Call) Return

func (_c *Registry_Names_Call) Return(_a0 []string) *Registry_Names_Call

func (*Registry_Names_Call) Run

func (_c *Registry_Names_Call) Run(run func()) *Registry_Names_Call

func (*Registry_Names_Call) RunAndReturn

func (_c *Registry_Names_Call) RunAndReturn(run func() []string) *Registry_Names_Call

type Registry_Register_Call

type Registry_Register_Call struct {
	*mock.Call
}

Registry_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'

func (*Registry_Register_Call) Return

func (*Registry_Register_Call) Run

func (*Registry_Register_Call) RunAndReturn

func (_c *Registry_Register_Call) RunAndReturn(run func(plugins.Plugin) error) *Registry_Register_Call

type Registry_ValidateStages_Call

type Registry_ValidateStages_Call struct {
	*mock.Call
}

Registry_ValidateStages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateStages'

func (*Registry_ValidateStages_Call) Return

func (*Registry_ValidateStages_Call) Run

func (_c *Registry_ValidateStages_Call) Run(run func(name string, selected []policy.Stage)) *Registry_ValidateStages_Call

func (*Registry_ValidateStages_Call) RunAndReturn

type Registry_Validate_Call

type Registry_Validate_Call struct {
	*mock.Call
}

Registry_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'

func (*Registry_Validate_Call) Return

func (*Registry_Validate_Call) Run

func (_c *Registry_Validate_Call) Run(run func(name string, settings map[string]interface{})) *Registry_Validate_Call

func (*Registry_Validate_Call) RunAndReturn

func (_c *Registry_Validate_Call) RunAndReturn(run func(string, map[string]interface{}) error) *Registry_Validate_Call

Jump to

Keyboard shortcuts

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