Documentation ¶
Index ¶
- type MockTargetProvider
- func (m *MockTargetProvider) Apply(ctx context.Context, deployment model.DeploymentSpec, ...) (map[string]model.ComponentResultSpec, error)
- func (m *MockTargetProvider) Get(ctx context.Context, deployment model.DeploymentSpec, ...) ([]model.ComponentSpec, error)
- func (m *MockTargetProvider) GetValidationRule(ctx context.Context) model.ValidationRule
- func (m *MockTargetProvider) Init(config providers.IProviderConfig) error
- func (i *MockTargetProvider) InitWithMap(properties map[string]string) error
- func (s *MockTargetProvider) SetContext(ctx *contexts.ManagerContext)
- type MockTargetProviderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTargetProvider ¶
type MockTargetProvider struct { Config MockTargetProviderConfig Context *contexts.ManagerContext }
func (*MockTargetProvider) Apply ¶
func (m *MockTargetProvider) Apply(ctx context.Context, deployment model.DeploymentSpec, step model.DeploymentStep, isDryRun bool) (map[string]model.ComponentResultSpec, error)
func (*MockTargetProvider) Get ¶
func (m *MockTargetProvider) Get(ctx context.Context, deployment model.DeploymentSpec, references []model.ComponentStep) ([]model.ComponentSpec, error)
func (*MockTargetProvider) GetValidationRule ¶
func (m *MockTargetProvider) GetValidationRule(ctx context.Context) model.ValidationRule
func (*MockTargetProvider) Init ¶
func (m *MockTargetProvider) Init(config providers.IProviderConfig) error
func (*MockTargetProvider) InitWithMap ¶
func (i *MockTargetProvider) InitWithMap(properties map[string]string) error
func (*MockTargetProvider) SetContext ¶
func (s *MockTargetProvider) SetContext(ctx *contexts.ManagerContext)
type MockTargetProviderConfig ¶
type MockTargetProviderConfig struct {
ID string `json:"id"`
}
func MockTargetProviderConfigFromMap ¶
func MockTargetProviderConfigFromMap(properties map[string]string) (MockTargetProviderConfig, error)
Click to show internal directories.
Click to hide internal directories.