deployment

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package deployment is a generated GoMock package.

Index

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

Delete mocks base method.

func (*MockDeploymentProcessor) Deploy

Deploy mocks base method.

func (*MockDeploymentProcessor) EXPECT

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

Render mocks base method.

type MockDeploymentProcessorDeleteCall added in v0.35.0

type MockDeploymentProcessorDeleteCall struct {
	*gomock.Call
}

MockDeploymentProcessorDeleteCall wrap *gomock.Call

func (*MockDeploymentProcessorDeleteCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockDeploymentProcessorDeleteCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDeploymentProcessorDeleteCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockDeploymentProcessorDeployCall added in v0.35.0

type MockDeploymentProcessorDeployCall struct {
	*gomock.Call
}

MockDeploymentProcessorDeployCall wrap *gomock.Call

func (*MockDeploymentProcessorDeployCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockDeploymentProcessorDeployCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDeploymentProcessorDeployCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockDeploymentProcessorFetchSecretsCall added in v0.35.0

type MockDeploymentProcessorFetchSecretsCall struct {
	*gomock.Call
}

MockDeploymentProcessorFetchSecretsCall wrap *gomock.Call

func (*MockDeploymentProcessorFetchSecretsCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockDeploymentProcessorFetchSecretsCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDeploymentProcessorFetchSecretsCall) Return added in v0.35.0

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

Delete indicates an expected call of Delete.

func (*MockDeploymentProcessorMockRecorder) Deploy

Deploy indicates an expected call of Deploy.

func (*MockDeploymentProcessorMockRecorder) FetchSecrets

FetchSecrets indicates an expected call of FetchSecrets.

func (*MockDeploymentProcessorMockRecorder) Render

Render indicates an expected call of Render.

type MockDeploymentProcessorRenderCall added in v0.35.0

type MockDeploymentProcessorRenderCall struct {
	*gomock.Call
}

MockDeploymentProcessorRenderCall wrap *gomock.Call

func (*MockDeploymentProcessorRenderCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockDeploymentProcessorRenderCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDeploymentProcessorRenderCall) Return added in v0.35.0

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
}

Jump to

Keyboard shortcuts

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