deployment

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 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]interface{}, error)

FetchSecrets mocks base method.

func (*MockDeploymentProcessor) Render

Render mocks base method.

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 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockDeploymentProcessorMockRecorder) Deploy

func (mr *MockDeploymentProcessorMockRecorder) Deploy(arg0, arg1, arg2 interface{}) *gomock.Call

Deploy indicates an expected call of Deploy.

func (*MockDeploymentProcessorMockRecorder) FetchSecrets

func (mr *MockDeploymentProcessorMockRecorder) FetchSecrets(arg0, arg1 interface{}) *gomock.Call

FetchSecrets indicates an expected call of FetchSecrets.

func (*MockDeploymentProcessorMockRecorder) Render

func (mr *MockDeploymentProcessorMockRecorder) Render(arg0, arg1, arg2 interface{}) *gomock.Call

Render indicates an expected call of Render.

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