Documentation ¶
Overview ¶
Package environmentvariables is a generated GoMock package.
Package environmentvariables is a generated GoMock package.
Index ¶
- func NewEnvVarsController() models.Controller
- type EnvVarsHandler
- type EnvVarsHandlerOptions
- type MockEnvVarsHandler
- func (m *MockEnvVarsHandler) ChangeEnvVar(appName, envName, componentName string, envVarsParams []models.EnvVarParameter) error
- func (m *MockEnvVarsHandler) EXPECT() *MockEnvVarsHandlerMockRecorder
- func (m *MockEnvVarsHandler) GetComponentEnvVars(appName, envName, componentName string) ([]models.EnvVar, error)
- type MockEnvVarsHandlerMockRecorder
- type MockenvVarsHandlerFactory
- type MockenvVarsHandlerFactoryMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEnvVarsController ¶
func NewEnvVarsController() models.Controller
NewEnvVarsController Constructor
Types ¶
type EnvVarsHandler ¶
type EnvVarsHandler interface { GetComponentEnvVars(appName string, envName string, componentName string) ([]envvarsmodels.EnvVar, error) ChangeEnvVar(appName, envName, componentName string, envVarsParams []envvarsmodels.EnvVarParameter) error }
func Init ¶
func Init(opts ...EnvVarsHandlerOptions) EnvVarsHandler
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 models.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(appName, envName, componentName string, envVarsParams []models.EnvVarParameter) error
ChangeEnvVar mocks base method.
func (*MockEnvVarsHandler) EXPECT ¶
func (m *MockEnvVarsHandler) EXPECT() *MockEnvVarsHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEnvVarsHandler) GetComponentEnvVars ¶
func (m *MockEnvVarsHandler) GetComponentEnvVars(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(appName, envName, componentName, envVarsParams interface{}) *gomock.Call
ChangeEnvVar indicates an expected call of ChangeEnvVar.
func (*MockEnvVarsHandlerMockRecorder) GetComponentEnvVars ¶
func (mr *MockEnvVarsHandlerMockRecorder) GetComponentEnvVars(appName, envName, componentName interface{}) *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 ¶
func (m *MockenvVarsHandlerFactory) EXPECT() *MockenvVarsHandlerFactoryMockRecorder
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.