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

configloader

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package configloader is a generated GoMock package.

Package configloader is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedComputeKind = errors.New("unsupported compute kind in environment resource")
	ErrBadEnvID               = errors.New("could not parse environment ID")
)

Functions

func FetchRecipePack added in v0.53.0

func FetchRecipePack(ctx context.Context, recipePackID string, ucpOptions *arm.ClientOptions) (*v20250801preview.RecipePackResource, error)

FetchRecipePack fetches a recipe pack resource using the provided recipePackID and ClientOptions, and returns the RecipePackResource or an error.

func ListRecipePacks added in v0.53.0

func ListRecipePacks(ctx context.Context, scope string, ucpOptions *arm.ClientOptions) ([]*v20250801preview.RecipePackResource, error)

ListRecipePacks fetches all recipe pack resources in the given scope using the provided ClientOptions, and returns a slice of RecipePackResource or an error.

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

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

func (*MockConfigurationLoader) LoadConfiguration

LoadConfiguration mocks base method.

func (*MockConfigurationLoader) LoadRecipe

LoadRecipe mocks base method.

type MockConfigurationLoaderLoadConfigurationCall added in v0.35.0

type MockConfigurationLoaderLoadConfigurationCall struct {
	*gomock.Call
}

MockConfigurationLoaderLoadConfigurationCall wrap *gomock.Call

func (*MockConfigurationLoaderLoadConfigurationCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockConfigurationLoaderLoadConfigurationCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConfigurationLoaderLoadConfigurationCall) Return added in v0.35.0

Return rewrite *gomock.Call.Return

type MockConfigurationLoaderLoadRecipeCall added in v0.35.0

type MockConfigurationLoaderLoadRecipeCall struct {
	*gomock.Call
}

MockConfigurationLoaderLoadRecipeCall wrap *gomock.Call

func (*MockConfigurationLoaderLoadRecipeCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockConfigurationLoaderLoadRecipeCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConfigurationLoaderLoadRecipeCall) Return added in v0.35.0

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

LoadConfiguration indicates an expected call of LoadConfiguration.

func (*MockConfigurationLoaderMockRecorder) LoadRecipe

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

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

func (*MockSecretsLoader) LoadSecrets added in v0.33.0

func (m *MockSecretsLoader) LoadSecrets(ctx context.Context, secretStoreIDs map[string][]string) (map[string]recipes.SecretData, error)

LoadSecrets mocks base method.

type MockSecretsLoaderLoadSecretsCall added in v0.35.0

type MockSecretsLoaderLoadSecretsCall struct {
	*gomock.Call
}

MockSecretsLoaderLoadSecretsCall wrap *gomock.Call

func (*MockSecretsLoaderLoadSecretsCall) Do added in v0.35.0

Do rewrite *gomock.Call.Do

func (*MockSecretsLoaderLoadSecretsCall) DoAndReturn added in v0.35.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockSecretsLoaderLoadSecretsCall) Return added in v0.35.0

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(ctx, secretStoreIDs 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, k8sProvider *kubernetesclientprovider.KubernetesClientProvider) SecretsLoader

NewSecretStoreLoader creates a new SecretsLoader instance with the given ARM Client Options and Kubernetes client provider. The Kubernetes client provider is used to read the backing Kubernetes Secret of a Radius.Security/secrets resource; it may be nil when only Applications.Core/secretStores references are expected.

Jump to

Keyboard shortcuts

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