Documentation ¶
Index ¶
- func FetchApplication(ctx context.Context, application string, ucpOptions *arm.ClientOptions) (*v20231001preview.ApplicationResource, error)
- func FetchEnvironment(ctx context.Context, environmentID string, ucpOptions *arm.ClientOptions) (*v20231001preview.EnvironmentResource, error)
- func FetchScopeResource(ctx context.Context, sp dataprovider.DataStorageProvider, scopeID string, ...) error
- func GetRegistrySecrets(definition recipes.Configuration, templatePath string, ...) (recipes.SecretData, error)
- func ReadFromRegistry(ctx context.Context, definition recipes.EnvironmentDefinition, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchApplication ¶
func FetchApplication(ctx context.Context, application string, ucpOptions *arm.ClientOptions) (*v20231001preview.ApplicationResource, error)
FetchApplication fetches an application resource from the Azure Resource Manager using the given application ID and client options, and returns the application resource or an error if one occurs.
func FetchEnvironment ¶
func FetchEnvironment(ctx context.Context, environmentID string, ucpOptions *arm.ClientOptions) (*v20231001preview.EnvironmentResource, error)
FetchEnvironment fetches an environment resource using the provided environmentID and ClientOptions, and returns the EnvironmentResource or an error.
func FetchScopeResource ¶
func FetchScopeResource(ctx context.Context, sp dataprovider.DataStorageProvider, scopeID string, resource v1.DataModelInterface) error
FetchScopeResource checks if the given scopeID is a valid resource ID for the given resource type, fetches the resource from the storage client and returns an error if the resource does not exist.
func GetRegistrySecrets ¶ added in v0.38.0
func GetRegistrySecrets(definition recipes.Configuration, templatePath string, secrets map[string]recipes.SecretData) (recipes.SecretData, error)
GetRegistrySecrets retrieves secret data based on the recipe configuration and template path. It matches the secretstore resource ID associated with the template path in recipe configuration to the secretstore resource id in the secrets data.
func ReadFromRegistry ¶
func ReadFromRegistry(ctx context.Context, definition recipes.EnvironmentDefinition, data *map[string]any, client remote.Client) error
ReadFromRegistry reads data from an OCI compliant registry and stores it in a map. It returns an error if the path is invalid, if the client to the registry fails to be created, if the manifest fails to be fetched, if the bytes fail to be fetched, or if the data fails to be unmarshalled.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package authclient is a generated GoMock package.
|
Package authclient is a generated GoMock package. |