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

environmentvariables

package
v1.129.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package environmentvariables is a generated GoMock package.

Package environmentvariables is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnvVarsController

func NewEnvVarsController() controller.Controller

NewEnvVarsController Constructor

Types

type EnvVarsHandler

type EnvVarsHandler interface {
	GetComponentEnvVars(ctx context.Context, appName string, envName string, componentName string) ([]envvarsmodels.EnvVar, error)
	ChangeEnvVar(ctx context.Context, appName, envName, componentName string, envVarsParams []envvarsmodels.EnvVarParameter) error
}

func Init

Init Constructor. Use the WithAccounts configuration function to configure a 'ready to use' EnvVarsHandler. EnvVarsHandlerOptions are processed in the sequence they are passed to this function.

type EnvVarsHandlerOptions

type EnvVarsHandlerOptions func(*envVarsHandler)

EnvVarsHandlerOptions defines a configuration function

func WithAccounts

func WithAccounts(accounts accounts.Accounts) EnvVarsHandlerOptions

WithAccounts configures all EnvVarsHandler fields

type MockEnvVarsHandler

type MockEnvVarsHandler struct {
	// contains filtered or unexported fields
}

MockEnvVarsHandler is a mock of EnvVarsHandler interface.

func NewMockEnvVarsHandler

func NewMockEnvVarsHandler(ctrl *gomock.Controller) *MockEnvVarsHandler

NewMockEnvVarsHandler creates a new mock instance.

func (*MockEnvVarsHandler) ChangeEnvVar

func (m *MockEnvVarsHandler) ChangeEnvVar(ctx context.Context, appName, envName, componentName string, envVarsParams []models.EnvVarParameter) error

ChangeEnvVar mocks base method.

func (*MockEnvVarsHandler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEnvVarsHandler) GetComponentEnvVars

func (m *MockEnvVarsHandler) GetComponentEnvVars(ctx context.Context, appName, envName, componentName string) ([]models.EnvVar, error)

GetComponentEnvVars mocks base method.

type MockEnvVarsHandlerMockRecorder

type MockEnvVarsHandlerMockRecorder struct {
	// contains filtered or unexported fields
}

MockEnvVarsHandlerMockRecorder is the mock recorder for MockEnvVarsHandler.

func (*MockEnvVarsHandlerMockRecorder) ChangeEnvVar

func (mr *MockEnvVarsHandlerMockRecorder) ChangeEnvVar(ctx, appName, envName, componentName, envVarsParams any) *gomock.Call

ChangeEnvVar indicates an expected call of ChangeEnvVar.

func (*MockEnvVarsHandlerMockRecorder) GetComponentEnvVars

func (mr *MockEnvVarsHandlerMockRecorder) GetComponentEnvVars(ctx, appName, envName, componentName any) *gomock.Call

GetComponentEnvVars indicates an expected call of GetComponentEnvVars.

type MockenvVarsHandlerFactory

type MockenvVarsHandlerFactory struct {
	// contains filtered or unexported fields
}

MockenvVarsHandlerFactory is a mock of envVarsHandlerFactory interface.

func NewMockenvVarsHandlerFactory

func NewMockenvVarsHandlerFactory(ctrl *gomock.Controller) *MockenvVarsHandlerFactory

NewMockenvVarsHandlerFactory creates a new mock instance.

func (*MockenvVarsHandlerFactory) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockenvVarsHandlerFactoryMockRecorder

type MockenvVarsHandlerFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockenvVarsHandlerFactoryMockRecorder is the mock recorder for MockenvVarsHandlerFactory.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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