Documentation ¶
Overview ¶
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 MockConfigurationLoaderMockRecorder
Constants ¶
This section is empty.
Variables ¶
View Source
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 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 interface{}) *gomock.Call
LoadConfiguration indicates an expected call of LoadConfiguration.
func (*MockConfigurationLoaderMockRecorder) LoadRecipe ¶
func (mr *MockConfigurationLoaderMockRecorder) LoadRecipe(arg0, arg1 interface{}) *gomock.Call
LoadRecipe indicates an expected call of LoadRecipe.
Click to show internal directories.
Click to hide internal directories.