Help us shape the future of Go! Take the 2026 Go Developer Survey

deployment

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 32 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, databaseClient database.Client, k8sClient controller_runtime.Client, k8sClientSet kubernetes.Interface) DeploymentProcessor

NewDeploymentProcessor creates a new instance of the DeploymentProcessor struct with the given parameters.

func NewFailedDeploymentProcessor added in v0.60.0

func NewFailedDeploymentProcessor(err error) DeploymentProcessor

NewFailedDeploymentProcessor returns a DeploymentProcessor whose operations all fail with err. It is used when the deployment target (for example an external cluster named by RADIUS_TARGET_KUBECONFIG) cannot be resolved, so the operation fails loudly with the resolution error rather than silently deploying to the wrong cluster.

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(ctx context.Context, id resources.ID, outputResources []v10.OutputResource) error

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(ctx context.Context, resourceData 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

func (mr *MockDeploymentProcessorMockRecorder) Delete(ctx, id, outputResources any) *MockDeploymentProcessorDeleteCall

Delete indicates an expected call of Delete.

func (*MockDeploymentProcessorMockRecorder) Deploy

func (mr *MockDeploymentProcessorMockRecorder) Deploy(ctx, id, rendererOutput any) *MockDeploymentProcessorDeployCall

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