Documentation ¶
Overview ¶
Package configloader is a generated GoMock package.
Package configloader is a generated GoMock package.
Index ¶
- Variables
- type ConfigurationLoader
- type MockConfigurationLoader
- func (m *MockConfigurationLoader) EXPECT() *MockConfigurationLoaderMockRecorder
- func (m *MockConfigurationLoader) LoadConfiguration(arg0 context.Context, arg1 recipes.ResourceMetadata) (*recipes.Configuration, error)
- func (m *MockConfigurationLoader) LoadRecipe(arg0 context.Context, arg1 *recipes.ResourceMetadata) (*recipes.EnvironmentDefinition, error)
- type MockConfigurationLoaderLoadConfigurationCall
- func (c *MockConfigurationLoaderLoadConfigurationCall) Do(...) *MockConfigurationLoaderLoadConfigurationCall
- func (c *MockConfigurationLoaderLoadConfigurationCall) DoAndReturn(...) *MockConfigurationLoaderLoadConfigurationCall
- func (c *MockConfigurationLoaderLoadConfigurationCall) Return(arg0 *recipes.Configuration, arg1 error) *MockConfigurationLoaderLoadConfigurationCall
- type MockConfigurationLoaderLoadRecipeCall
- func (c *MockConfigurationLoaderLoadRecipeCall) Do(...) *MockConfigurationLoaderLoadRecipeCall
- func (c *MockConfigurationLoaderLoadRecipeCall) DoAndReturn(...) *MockConfigurationLoaderLoadRecipeCall
- func (c *MockConfigurationLoaderLoadRecipeCall) Return(arg0 *recipes.EnvironmentDefinition, arg1 error) *MockConfigurationLoaderLoadRecipeCall
- type MockConfigurationLoaderMockRecorder
- type MockSecretsLoader
- type MockSecretsLoaderLoadSecretsCall
- func (c *MockSecretsLoaderLoadSecretsCall) Do(...) *MockSecretsLoaderLoadSecretsCall
- func (c *MockSecretsLoaderLoadSecretsCall) DoAndReturn(...) *MockSecretsLoaderLoadSecretsCall
- func (c *MockSecretsLoaderLoadSecretsCall) Return(arg0 map[string]recipes.SecretData, arg1 error) *MockSecretsLoaderLoadSecretsCall
- type MockSecretsLoaderMockRecorder
- type SecretsLoader
Constants ¶
This section is empty.
Variables ¶
var (
ErrUnsupportedComputeKind = errors.New("unsupported compute kind in environment resource")
)
Functions ¶
This section is empty.
Types ¶
type ConfigurationLoader ¶
type ConfigurationLoader interface { // LoadConfiguration fetches environment/application information and return runtime and provider configuration. LoadConfiguration(ctx context.Context, recipe recipes.ResourceMetadata) (*recipes.Configuration, error) // LoadRecipe fetches the recipe information from the environment. LoadRecipe(ctx context.Context, recipe *recipes.ResourceMetadata) (*recipes.EnvironmentDefinition, error) }
func NewEnvironmentLoader ¶
func NewEnvironmentLoader(armOptions *arm.ClientOptions) ConfigurationLoader
NewEnvironmentLoader creates a new environmentLoader instance with the given ARM Client Options.
type MockConfigurationLoader ¶
type MockConfigurationLoader struct {
// contains filtered or unexported fields
}
MockConfigurationLoader is a mock of ConfigurationLoader interface.
func NewMockConfigurationLoader ¶
func NewMockConfigurationLoader(ctrl *gomock.Controller) *MockConfigurationLoader
NewMockConfigurationLoader creates a new mock instance.
func (*MockConfigurationLoader) EXPECT ¶
func (m *MockConfigurationLoader) EXPECT() *MockConfigurationLoaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigurationLoader) LoadConfiguration ¶
func (m *MockConfigurationLoader) LoadConfiguration(arg0 context.Context, arg1 recipes.ResourceMetadata) (*recipes.Configuration, error)
LoadConfiguration mocks base method.
func (*MockConfigurationLoader) LoadRecipe ¶
func (m *MockConfigurationLoader) LoadRecipe(arg0 context.Context, arg1 *recipes.ResourceMetadata) (*recipes.EnvironmentDefinition, error)
LoadRecipe mocks base method.
type MockConfigurationLoaderLoadConfigurationCall ¶ added in v0.35.0
MockConfigurationLoaderLoadConfigurationCall wrap *gomock.Call
func (*MockConfigurationLoaderLoadConfigurationCall) Do ¶ added in v0.35.0
func (c *MockConfigurationLoaderLoadConfigurationCall) Do(f func(context.Context, recipes.ResourceMetadata) (*recipes.Configuration, error)) *MockConfigurationLoaderLoadConfigurationCall
Do rewrite *gomock.Call.Do
func (*MockConfigurationLoaderLoadConfigurationCall) DoAndReturn ¶ added in v0.35.0
func (c *MockConfigurationLoaderLoadConfigurationCall) DoAndReturn(f func(context.Context, recipes.ResourceMetadata) (*recipes.Configuration, error)) *MockConfigurationLoaderLoadConfigurationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigurationLoaderLoadConfigurationCall) Return ¶ added in v0.35.0
func (c *MockConfigurationLoaderLoadConfigurationCall) Return(arg0 *recipes.Configuration, arg1 error) *MockConfigurationLoaderLoadConfigurationCall
Return rewrite *gomock.Call.Return
type MockConfigurationLoaderLoadRecipeCall ¶ added in v0.35.0
MockConfigurationLoaderLoadRecipeCall wrap *gomock.Call
func (*MockConfigurationLoaderLoadRecipeCall) Do ¶ added in v0.35.0
func (c *MockConfigurationLoaderLoadRecipeCall) Do(f func(context.Context, *recipes.ResourceMetadata) (*recipes.EnvironmentDefinition, error)) *MockConfigurationLoaderLoadRecipeCall
Do rewrite *gomock.Call.Do
func (*MockConfigurationLoaderLoadRecipeCall) DoAndReturn ¶ added in v0.35.0
func (c *MockConfigurationLoaderLoadRecipeCall) DoAndReturn(f func(context.Context, *recipes.ResourceMetadata) (*recipes.EnvironmentDefinition, error)) *MockConfigurationLoaderLoadRecipeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigurationLoaderLoadRecipeCall) Return ¶ added in v0.35.0
func (c *MockConfigurationLoaderLoadRecipeCall) Return(arg0 *recipes.EnvironmentDefinition, arg1 error) *MockConfigurationLoaderLoadRecipeCall
Return rewrite *gomock.Call.Return
type MockConfigurationLoaderMockRecorder ¶
type MockConfigurationLoaderMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigurationLoaderMockRecorder is the mock recorder for MockConfigurationLoader.
func (*MockConfigurationLoaderMockRecorder) LoadConfiguration ¶
func (mr *MockConfigurationLoaderMockRecorder) LoadConfiguration(arg0, arg1 any) *MockConfigurationLoaderLoadConfigurationCall
LoadConfiguration indicates an expected call of LoadConfiguration.
func (*MockConfigurationLoaderMockRecorder) LoadRecipe ¶
func (mr *MockConfigurationLoaderMockRecorder) LoadRecipe(arg0, arg1 any) *MockConfigurationLoaderLoadRecipeCall
LoadRecipe indicates an expected call of LoadRecipe.
type MockSecretsLoader ¶ added in v0.33.0
type MockSecretsLoader struct {
// contains filtered or unexported fields
}
MockSecretsLoader is a mock of SecretsLoader interface.
func NewMockSecretsLoader ¶ added in v0.33.0
func NewMockSecretsLoader(ctrl *gomock.Controller) *MockSecretsLoader
NewMockSecretsLoader creates a new mock instance.
func (*MockSecretsLoader) EXPECT ¶ added in v0.33.0
func (m *MockSecretsLoader) EXPECT() *MockSecretsLoaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretsLoader) LoadSecrets ¶ added in v0.33.0
func (m *MockSecretsLoader) LoadSecrets(arg0 context.Context, arg1 map[string][]string) (map[string]recipes.SecretData, error)
LoadSecrets mocks base method.
type MockSecretsLoaderLoadSecretsCall ¶ added in v0.35.0
MockSecretsLoaderLoadSecretsCall wrap *gomock.Call
func (*MockSecretsLoaderLoadSecretsCall) Do ¶ added in v0.35.0
func (c *MockSecretsLoaderLoadSecretsCall) Do(f func(context.Context, map[string][]string) (map[string]recipes.SecretData, error)) *MockSecretsLoaderLoadSecretsCall
Do rewrite *gomock.Call.Do
func (*MockSecretsLoaderLoadSecretsCall) DoAndReturn ¶ added in v0.35.0
func (c *MockSecretsLoaderLoadSecretsCall) DoAndReturn(f func(context.Context, map[string][]string) (map[string]recipes.SecretData, error)) *MockSecretsLoaderLoadSecretsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSecretsLoaderLoadSecretsCall) Return ¶ added in v0.35.0
func (c *MockSecretsLoaderLoadSecretsCall) Return(arg0 map[string]recipes.SecretData, arg1 error) *MockSecretsLoaderLoadSecretsCall
Return rewrite *gomock.Call.Return
type MockSecretsLoaderMockRecorder ¶ added in v0.33.0
type MockSecretsLoaderMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretsLoaderMockRecorder is the mock recorder for MockSecretsLoader.
func (*MockSecretsLoaderMockRecorder) LoadSecrets ¶ added in v0.33.0
func (mr *MockSecretsLoaderMockRecorder) LoadSecrets(arg0, arg1 any) *MockSecretsLoaderLoadSecretsCall
LoadSecrets indicates an expected call of LoadSecrets.
type SecretsLoader ¶ added in v0.31.0
type SecretsLoader interface {
LoadSecrets(ctx context.Context, secretStoreIDs map[string][]string) (secretData map[string]recipes.SecretData, err error)
}
func NewSecretStoreLoader ¶ added in v0.31.0
func NewSecretStoreLoader(armOptions *arm.ClientOptions) SecretsLoader
NewSecretStoreLoader creates a new SecretsLoader instance with the given ARM Client Options.