Documentation
¶
Index ¶
- type CatalogService
- type CatalogService_Catalog_Call
- type CatalogService_Expecter
- type Executor
- type Executor_Expecter
- type Executor_RunStage_Call
- func (_c *Executor_RunStage_Call) Return(_a0 *plugins.StageOutcome, _a1 error) *Executor_RunStage_Call
- func (_c *Executor_RunStage_Call) Run(run func(ctx context.Context, in plugins.StageInput)) *Executor_RunStage_Call
- func (_c *Executor_RunStage_Call) RunAndReturn(run func(context.Context, plugins.StageInput) (*plugins.StageOutcome, error)) *Executor_RunStage_Call
- type Plugin
- func (_m *Plugin) EXPECT() *Plugin_Expecter
- func (_m *Plugin) Execute(ctx context.Context, in plugins.ExecInput) (*plugins.Result, error)
- func (_m *Plugin) MandatoryStages() []policy.Stage
- func (_m *Plugin) MutatesMetadata() bool
- func (_m *Plugin) MutatesRequestBody() bool
- func (_m *Plugin) MutatesResponseBody() bool
- func (_m *Plugin) Name() string
- func (_m *Plugin) SupportedModes() []policy.Mode
- func (_m *Plugin) SupportedStages() []policy.Stage
- func (_m *Plugin) ValidateConfig(settings map[string]interface{}) error
- type Plugin_Execute_Call
- func (_c *Plugin_Execute_Call) Return(_a0 *plugins.Result, _a1 error) *Plugin_Execute_Call
- func (_c *Plugin_Execute_Call) Run(run func(ctx context.Context, in plugins.ExecInput)) *Plugin_Execute_Call
- func (_c *Plugin_Execute_Call) RunAndReturn(run func(context.Context, plugins.ExecInput) (*plugins.Result, error)) *Plugin_Execute_Call
- type Plugin_Expecter
- func (_e *Plugin_Expecter) Execute(ctx interface{}, in interface{}) *Plugin_Execute_Call
- func (_e *Plugin_Expecter) MandatoryStages() *Plugin_MandatoryStages_Call
- func (_e *Plugin_Expecter) MutatesMetadata() *Plugin_MutatesMetadata_Call
- func (_e *Plugin_Expecter) MutatesRequestBody() *Plugin_MutatesRequestBody_Call
- func (_e *Plugin_Expecter) MutatesResponseBody() *Plugin_MutatesResponseBody_Call
- func (_e *Plugin_Expecter) Name() *Plugin_Name_Call
- func (_e *Plugin_Expecter) SupportedModes() *Plugin_SupportedModes_Call
- func (_e *Plugin_Expecter) SupportedStages() *Plugin_SupportedStages_Call
- func (_e *Plugin_Expecter) ValidateConfig(settings interface{}) *Plugin_ValidateConfig_Call
- type Plugin_MandatoryStages_Call
- type Plugin_MutatesMetadata_Call
- type Plugin_MutatesRequestBody_Call
- type Plugin_MutatesResponseBody_Call
- type Plugin_Name_Call
- type Plugin_SupportedModes_Call
- type Plugin_SupportedStages_Call
- type Plugin_ValidateConfig_Call
- func (_c *Plugin_ValidateConfig_Call) Return(_a0 error) *Plugin_ValidateConfig_Call
- func (_c *Plugin_ValidateConfig_Call) Run(run func(settings map[string]interface{})) *Plugin_ValidateConfig_Call
- func (_c *Plugin_ValidateConfig_Call) RunAndReturn(run func(map[string]interface{}) error) *Plugin_ValidateConfig_Call
- type Registry
- func (_m *Registry) EXPECT() *Registry_Expecter
- func (_m *Registry) Get(name string) (plugins.Plugin, bool)
- func (_m *Registry) Names() []string
- func (_m *Registry) Register(p plugins.Plugin) error
- func (_m *Registry) Validate(name string, settings map[string]interface{}) error
- func (_m *Registry) ValidateStages(name string, selected []policy.Stage) error
- type Registry_Expecter
- func (_e *Registry_Expecter) Get(name interface{}) *Registry_Get_Call
- func (_e *Registry_Expecter) Names() *Registry_Names_Call
- func (_e *Registry_Expecter) Register(p interface{}) *Registry_Register_Call
- func (_e *Registry_Expecter) Validate(name interface{}, settings interface{}) *Registry_Validate_Call
- func (_e *Registry_Expecter) ValidateStages(name interface{}, selected interface{}) *Registry_ValidateStages_Call
- type Registry_Get_Call
- type Registry_Names_Call
- type Registry_Register_Call
- type Registry_ValidateStages_Call
- func (_c *Registry_ValidateStages_Call) Return(_a0 error) *Registry_ValidateStages_Call
- func (_c *Registry_ValidateStages_Call) Run(run func(name string, selected []policy.Stage)) *Registry_ValidateStages_Call
- func (_c *Registry_ValidateStages_Call) RunAndReturn(run func(string, []policy.Stage) error) *Registry_ValidateStages_Call
- type Registry_Validate_Call
- func (_c *Registry_Validate_Call) Return(_a0 error) *Registry_Validate_Call
- func (_c *Registry_Validate_Call) Run(run func(name string, settings map[string]interface{})) *Registry_Validate_Call
- func (_c *Registry_Validate_Call) RunAndReturn(run func(string, map[string]interface{}) error) *Registry_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogService ¶
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 ¶
func (_m *CatalogService) EXPECT() *CatalogService_Expecter
type CatalogService_Catalog_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 (_c *CatalogService_Catalog_Call) Return(_a0 plugins.Catalog) *CatalogService_Catalog_Call
func (*CatalogService_Catalog_Call) Run ¶
func (_c *CatalogService_Catalog_Call) Run(run func()) *CatalogService_Catalog_Call
func (*CatalogService_Catalog_Call) RunAndReturn ¶
func (_c *CatalogService_Catalog_Call) RunAndReturn(run func() plugins.Catalog) *CatalogService_Catalog_Call
type CatalogService_Expecter ¶
type CatalogService_Expecter struct {
// contains filtered or unexported fields
}
func (*CatalogService_Expecter) Catalog ¶
func (_e *CatalogService_Expecter) Catalog() *CatalogService_Catalog_Call
Catalog is a helper method to define mock.On call
type Executor ¶
Executor is an autogenerated mock type for the Executor type
func NewExecutor ¶
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 ¶
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 (_c *Executor_RunStage_Call) Return(_a0 *plugins.StageOutcome, _a1 error) *Executor_RunStage_Call
func (*Executor_RunStage_Call) Run ¶
func (_c *Executor_RunStage_Call) Run(run func(ctx context.Context, in plugins.StageInput)) *Executor_RunStage_Call
func (*Executor_RunStage_Call) RunAndReturn ¶
func (_c *Executor_RunStage_Call) RunAndReturn(run func(context.Context, plugins.StageInput) (*plugins.StageOutcome, error)) *Executor_RunStage_Call
type Plugin ¶
Plugin is an autogenerated mock type for the Plugin type
func NewPlugin ¶
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) MandatoryStages ¶
MandatoryStages provides a mock function with no fields
func (*Plugin) MutatesMetadata ¶ added in v0.2.3
MutatesMetadata provides a mock function with no fields
func (*Plugin) MutatesRequestBody ¶ added in v0.2.3
MutatesRequestBody provides a mock function with no fields
func (*Plugin) MutatesResponseBody ¶ added in v0.2.3
MutatesResponseBody provides a mock function with no fields
func (*Plugin) SupportedModes ¶
SupportedModes provides a mock function with no fields
func (*Plugin) SupportedStages ¶
SupportedStages provides a mock function with no fields
func (*Plugin) ValidateConfig ¶
ValidateConfig provides a mock function with given fields: settings
type Plugin_Execute_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 (_c *Plugin_Execute_Call) Return(_a0 *plugins.Result, _a1 error) *Plugin_Execute_Call
func (*Plugin_Execute_Call) Run ¶
func (_c *Plugin_Execute_Call) Run(run func(ctx context.Context, in plugins.ExecInput)) *Plugin_Execute_Call
func (*Plugin_Execute_Call) RunAndReturn ¶
func (_c *Plugin_Execute_Call) RunAndReturn(run func(context.Context, plugins.ExecInput) (*plugins.Result, error)) *Plugin_Execute_Call
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 ¶
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 (_c *Plugin_MandatoryStages_Call) Return(_a0 []policy.Stage) *Plugin_MandatoryStages_Call
func (*Plugin_MandatoryStages_Call) Run ¶
func (_c *Plugin_MandatoryStages_Call) Run(run func()) *Plugin_MandatoryStages_Call
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
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 (_c *Plugin_MutatesMetadata_Call) Return(_a0 bool) *Plugin_MutatesMetadata_Call
func (*Plugin_MutatesMetadata_Call) Run ¶ added in v0.2.3
func (_c *Plugin_MutatesMetadata_Call) Run(run func()) *Plugin_MutatesMetadata_Call
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
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 (_c *Plugin_MutatesRequestBody_Call) Return(_a0 bool) *Plugin_MutatesRequestBody_Call
func (*Plugin_MutatesRequestBody_Call) Run ¶ added in v0.2.3
func (_c *Plugin_MutatesRequestBody_Call) Run(run func()) *Plugin_MutatesRequestBody_Call
func (*Plugin_MutatesRequestBody_Call) RunAndReturn ¶ added in v0.2.3
func (_c *Plugin_MutatesRequestBody_Call) RunAndReturn(run func() bool) *Plugin_MutatesRequestBody_Call
type Plugin_MutatesResponseBody_Call ¶ added in v0.2.3
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 (_c *Plugin_MutatesResponseBody_Call) Return(_a0 bool) *Plugin_MutatesResponseBody_Call
func (*Plugin_MutatesResponseBody_Call) Run ¶ added in v0.2.3
func (_c *Plugin_MutatesResponseBody_Call) Run(run func()) *Plugin_MutatesResponseBody_Call
func (*Plugin_MutatesResponseBody_Call) RunAndReturn ¶ added in v0.2.3
func (_c *Plugin_MutatesResponseBody_Call) RunAndReturn(run func() bool) *Plugin_MutatesResponseBody_Call
type Plugin_Name_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 ¶
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 (_c *Plugin_SupportedModes_Call) Return(_a0 []policy.Mode) *Plugin_SupportedModes_Call
func (*Plugin_SupportedModes_Call) Run ¶
func (_c *Plugin_SupportedModes_Call) Run(run func()) *Plugin_SupportedModes_Call
func (*Plugin_SupportedModes_Call) RunAndReturn ¶
func (_c *Plugin_SupportedModes_Call) RunAndReturn(run func() []policy.Mode) *Plugin_SupportedModes_Call
type Plugin_SupportedStages_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 (_c *Plugin_SupportedStages_Call) Return(_a0 []policy.Stage) *Plugin_SupportedStages_Call
func (*Plugin_SupportedStages_Call) Run ¶
func (_c *Plugin_SupportedStages_Call) Run(run func()) *Plugin_SupportedStages_Call
func (*Plugin_SupportedStages_Call) RunAndReturn ¶
func (_c *Plugin_SupportedStages_Call) RunAndReturn(run func() []policy.Stage) *Plugin_SupportedStages_Call
type Plugin_ValidateConfig_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 (_c *Plugin_ValidateConfig_Call) Return(_a0 error) *Plugin_ValidateConfig_Call
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 ¶
Registry is an autogenerated mock type for the Registry type
func NewRegistry ¶
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
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 ¶
func (_e *Registry_Expecter) Names() *Registry_Names_Call
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 ¶
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 ¶
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 ¶
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 (_c *Registry_Register_Call) Return(_a0 error) *Registry_Register_Call
func (*Registry_Register_Call) Run ¶
func (_c *Registry_Register_Call) Run(run func(p plugins.Plugin)) *Registry_Register_Call
func (*Registry_Register_Call) RunAndReturn ¶
func (_c *Registry_Register_Call) RunAndReturn(run func(plugins.Plugin) error) *Registry_Register_Call
type Registry_ValidateStages_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 (_c *Registry_ValidateStages_Call) Return(_a0 error) *Registry_ValidateStages_Call
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 ¶
func (_c *Registry_ValidateStages_Call) RunAndReturn(run func(string, []policy.Stage) error) *Registry_ValidateStages_Call
type Registry_Validate_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 (_c *Registry_Validate_Call) Return(_a0 error) *Registry_Validate_Call
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