Documentation ¶
Overview ¶
Package deployment is a generated GoMock package.
Index ¶
- type DeploymentProcessor
- type MockDeploymentProcessor
- func (m *MockDeploymentProcessor) Delete(arg0 context.Context, arg1 resources.ID, arg2 []v10.OutputResource) error
- func (m *MockDeploymentProcessor) Deploy(arg0 context.Context, arg1 resources.ID, arg2 renderers.RendererOutput) (v10.DeploymentOutput, error)
- func (m *MockDeploymentProcessor) EXPECT() *MockDeploymentProcessorMockRecorder
- func (m *MockDeploymentProcessor) FetchSecrets(arg0 context.Context, arg1 ResourceData) (map[string]any, error)
- func (m *MockDeploymentProcessor) Render(arg0 context.Context, arg1 resources.ID, arg2 v1.DataModelInterface) (renderers.RendererOutput, error)
- type MockDeploymentProcessorDeleteCall
- func (c *MockDeploymentProcessorDeleteCall) Do(f func(context.Context, resources.ID, []v10.OutputResource) error) *MockDeploymentProcessorDeleteCall
- func (c *MockDeploymentProcessorDeleteCall) DoAndReturn(f func(context.Context, resources.ID, []v10.OutputResource) error) *MockDeploymentProcessorDeleteCall
- func (c *MockDeploymentProcessorDeleteCall) Return(arg0 error) *MockDeploymentProcessorDeleteCall
- type MockDeploymentProcessorDeployCall
- func (c *MockDeploymentProcessorDeployCall) Do(...) *MockDeploymentProcessorDeployCall
- func (c *MockDeploymentProcessorDeployCall) DoAndReturn(...) *MockDeploymentProcessorDeployCall
- func (c *MockDeploymentProcessorDeployCall) Return(arg0 v10.DeploymentOutput, arg1 error) *MockDeploymentProcessorDeployCall
- type MockDeploymentProcessorFetchSecretsCall
- func (c *MockDeploymentProcessorFetchSecretsCall) Do(f func(context.Context, ResourceData) (map[string]any, error)) *MockDeploymentProcessorFetchSecretsCall
- func (c *MockDeploymentProcessorFetchSecretsCall) DoAndReturn(f func(context.Context, ResourceData) (map[string]any, error)) *MockDeploymentProcessorFetchSecretsCall
- func (c *MockDeploymentProcessorFetchSecretsCall) Return(arg0 map[string]any, arg1 error) *MockDeploymentProcessorFetchSecretsCall
- type MockDeploymentProcessorMockRecorder
- func (mr *MockDeploymentProcessorMockRecorder) Delete(arg0, arg1, arg2 any) *MockDeploymentProcessorDeleteCall
- func (mr *MockDeploymentProcessorMockRecorder) Deploy(arg0, arg1, arg2 any) *MockDeploymentProcessorDeployCall
- func (mr *MockDeploymentProcessorMockRecorder) FetchSecrets(arg0, arg1 any) *MockDeploymentProcessorFetchSecretsCall
- func (mr *MockDeploymentProcessorMockRecorder) Render(arg0, arg1, arg2 any) *MockDeploymentProcessorRenderCall
- type MockDeploymentProcessorRenderCall
- func (c *MockDeploymentProcessorRenderCall) Do(...) *MockDeploymentProcessorRenderCall
- func (c *MockDeploymentProcessorRenderCall) DoAndReturn(...) *MockDeploymentProcessorRenderCall
- func (c *MockDeploymentProcessorRenderCall) Return(arg0 renderers.RendererOutput, arg1 error) *MockDeploymentProcessorRenderCall
- type ResourceData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentProcessor ¶
type DeploymentProcessor interface { Render(ctx context.Context, id resources.ID, resource v1.DataModelInterface) (renderers.RendererOutput, error) Deploy(ctx context.Context, id resources.ID, rendererOutput renderers.RendererOutput) (rpv1.DeploymentOutput, error) Delete(ctx context.Context, id resources.ID, outputResources []rpv1.OutputResource) error FetchSecrets(ctx context.Context, resourceData ResourceData) (map[string]any, error) }
func NewDeploymentProcessor ¶
func NewDeploymentProcessor(appmodel model.ApplicationModel, sp dataprovider.DataStorageProvider, k8sClient controller_runtime.Client, k8sClientSet kubernetes.Interface) DeploymentProcessor
NewDeploymentProcessor creates a new instance of the DeploymentProcessor struct with the given parameters.
type MockDeploymentProcessor ¶
type MockDeploymentProcessor struct {
// contains filtered or unexported fields
}
MockDeploymentProcessor is a mock of DeploymentProcessor interface.
func NewMockDeploymentProcessor ¶
func NewMockDeploymentProcessor(ctrl *gomock.Controller) *MockDeploymentProcessor
NewMockDeploymentProcessor creates a new mock instance.
func (*MockDeploymentProcessor) Delete ¶
func (m *MockDeploymentProcessor) Delete(arg0 context.Context, arg1 resources.ID, arg2 []v10.OutputResource) error
Delete mocks base method.
func (*MockDeploymentProcessor) Deploy ¶
func (m *MockDeploymentProcessor) Deploy(arg0 context.Context, arg1 resources.ID, arg2 renderers.RendererOutput) (v10.DeploymentOutput, error)
Deploy mocks base method.
func (*MockDeploymentProcessor) EXPECT ¶
func (m *MockDeploymentProcessor) EXPECT() *MockDeploymentProcessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeploymentProcessor) FetchSecrets ¶
func (m *MockDeploymentProcessor) FetchSecrets(arg0 context.Context, arg1 ResourceData) (map[string]any, error)
FetchSecrets mocks base method.
func (*MockDeploymentProcessor) Render ¶
func (m *MockDeploymentProcessor) Render(arg0 context.Context, arg1 resources.ID, arg2 v1.DataModelInterface) (renderers.RendererOutput, error)
Render mocks base method.
type MockDeploymentProcessorDeleteCall ¶ added in v0.35.0
MockDeploymentProcessorDeleteCall wrap *gomock.Call
func (*MockDeploymentProcessorDeleteCall) Do ¶ added in v0.35.0
func (c *MockDeploymentProcessorDeleteCall) Do(f func(context.Context, resources.ID, []v10.OutputResource) error) *MockDeploymentProcessorDeleteCall
Do rewrite *gomock.Call.Do
func (*MockDeploymentProcessorDeleteCall) DoAndReturn ¶ added in v0.35.0
func (c *MockDeploymentProcessorDeleteCall) DoAndReturn(f func(context.Context, resources.ID, []v10.OutputResource) error) *MockDeploymentProcessorDeleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDeploymentProcessorDeleteCall) Return ¶ added in v0.35.0
func (c *MockDeploymentProcessorDeleteCall) Return(arg0 error) *MockDeploymentProcessorDeleteCall
Return rewrite *gomock.Call.Return
type MockDeploymentProcessorDeployCall ¶ added in v0.35.0
MockDeploymentProcessorDeployCall wrap *gomock.Call
func (*MockDeploymentProcessorDeployCall) Do ¶ added in v0.35.0
func (c *MockDeploymentProcessorDeployCall) Do(f func(context.Context, resources.ID, renderers.RendererOutput) (v10.DeploymentOutput, error)) *MockDeploymentProcessorDeployCall
Do rewrite *gomock.Call.Do
func (*MockDeploymentProcessorDeployCall) DoAndReturn ¶ added in v0.35.0
func (c *MockDeploymentProcessorDeployCall) DoAndReturn(f func(context.Context, resources.ID, renderers.RendererOutput) (v10.DeploymentOutput, error)) *MockDeploymentProcessorDeployCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDeploymentProcessorDeployCall) Return ¶ added in v0.35.0
func (c *MockDeploymentProcessorDeployCall) Return(arg0 v10.DeploymentOutput, arg1 error) *MockDeploymentProcessorDeployCall
Return rewrite *gomock.Call.Return
type MockDeploymentProcessorFetchSecretsCall ¶ added in v0.35.0
MockDeploymentProcessorFetchSecretsCall wrap *gomock.Call
func (*MockDeploymentProcessorFetchSecretsCall) Do ¶ added in v0.35.0
func (c *MockDeploymentProcessorFetchSecretsCall) Do(f func(context.Context, ResourceData) (map[string]any, error)) *MockDeploymentProcessorFetchSecretsCall
Do rewrite *gomock.Call.Do
func (*MockDeploymentProcessorFetchSecretsCall) DoAndReturn ¶ added in v0.35.0
func (c *MockDeploymentProcessorFetchSecretsCall) DoAndReturn(f func(context.Context, ResourceData) (map[string]any, error)) *MockDeploymentProcessorFetchSecretsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDeploymentProcessorFetchSecretsCall) Return ¶ added in v0.35.0
func (c *MockDeploymentProcessorFetchSecretsCall) Return(arg0 map[string]any, arg1 error) *MockDeploymentProcessorFetchSecretsCall
Return rewrite *gomock.Call.Return
type MockDeploymentProcessorMockRecorder ¶
type MockDeploymentProcessorMockRecorder struct {
// contains filtered or unexported fields
}
MockDeploymentProcessorMockRecorder is the mock recorder for MockDeploymentProcessor.
func (*MockDeploymentProcessorMockRecorder) Delete ¶
func (mr *MockDeploymentProcessorMockRecorder) Delete(arg0, arg1, arg2 any) *MockDeploymentProcessorDeleteCall
Delete indicates an expected call of Delete.
func (*MockDeploymentProcessorMockRecorder) Deploy ¶
func (mr *MockDeploymentProcessorMockRecorder) Deploy(arg0, arg1, arg2 any) *MockDeploymentProcessorDeployCall
Deploy indicates an expected call of Deploy.
func (*MockDeploymentProcessorMockRecorder) FetchSecrets ¶
func (mr *MockDeploymentProcessorMockRecorder) FetchSecrets(arg0, arg1 any) *MockDeploymentProcessorFetchSecretsCall
FetchSecrets indicates an expected call of FetchSecrets.
func (*MockDeploymentProcessorMockRecorder) Render ¶
func (mr *MockDeploymentProcessorMockRecorder) Render(arg0, arg1, arg2 any) *MockDeploymentProcessorRenderCall
Render indicates an expected call of Render.
type MockDeploymentProcessorRenderCall ¶ added in v0.35.0
MockDeploymentProcessorRenderCall wrap *gomock.Call
func (*MockDeploymentProcessorRenderCall) Do ¶ added in v0.35.0
func (c *MockDeploymentProcessorRenderCall) Do(f func(context.Context, resources.ID, v1.DataModelInterface) (renderers.RendererOutput, error)) *MockDeploymentProcessorRenderCall
Do rewrite *gomock.Call.Do
func (*MockDeploymentProcessorRenderCall) DoAndReturn ¶ added in v0.35.0
func (c *MockDeploymentProcessorRenderCall) DoAndReturn(f func(context.Context, resources.ID, v1.DataModelInterface) (renderers.RendererOutput, error)) *MockDeploymentProcessorRenderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDeploymentProcessorRenderCall) Return ¶ added in v0.35.0
func (c *MockDeploymentProcessorRenderCall) Return(arg0 renderers.RendererOutput, arg1 error) *MockDeploymentProcessorRenderCall
Return rewrite *gomock.Call.Return
type ResourceData ¶
type ResourceData struct { ID resources.ID // resource ID Resource v1.DataModelInterface OutputResources []rpv1.OutputResource ComputedValues map[string]any SecretValues map[string]rpv1.SecretValueReference AppID *resources.ID // Application ID for which the resource is created RecipeData portableresources.RecipeData // Relevant only for portable resources created with recipes to find relevant connections created by that recipe }