Documentation
¶
Index ¶
- func FetchApplication(ctx context.Context, application string, ucpOptions *arm.ClientOptions) (*v20231001preview.ApplicationResource, error)
- func FetchBicepSettings(ctx context.Context, resourceID string, ucpOptions *arm.ClientOptions) (*v20250801preview.BicepSettingsResource, error)
- func FetchEnvironment(ctx context.Context, environmentID string, ucpOptions *arm.ClientOptions) (*v20231001preview.EnvironmentResource, error)
- func FetchEnvironmentV20250801(ctx context.Context, environmentID string, ucpOptions *arm.ClientOptions) (*v20250801preview.EnvironmentResource, error)
- func FetchScopeResource(ctx context.Context, databaseClient database.Client, scopeID string, ...) error
- func FetchTerraformSettings(ctx context.Context, resourceID string, ucpOptions *arm.ClientOptions) (*v20250801preview.TerraformSettingsResource, error)
- func GetRegistrySecrets(definition recipes.Configuration, templatePath string, ...) recipes.SecretData
- func ReadFromRegistry(ctx context.Context, definition recipes.EnvironmentDefinition, ...) error
- func RegistryName(templatePath string) (string, 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 FetchBicepSettings ¶ added in v0.60.0
func FetchBicepSettings(ctx context.Context, resourceID string, ucpOptions *arm.ClientOptions) (*v20250801preview.BicepSettingsResource, error)
FetchBicepSettings fetches a BicepSettings resource by ID.
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 FetchEnvironmentV20250801 ¶ added in v0.53.0
func FetchEnvironmentV20250801(ctx context.Context, environmentID string, ucpOptions *arm.ClientOptions) (*v20250801preview.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, databaseClient database.Client, 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 database client and returns an error if the resource does not exist.
func FetchTerraformSettings ¶ added in v0.60.0
func FetchTerraformSettings(ctx context.Context, resourceID string, ucpOptions *arm.ClientOptions) (*v20250801preview.TerraformSettingsResource, error)
FetchTerraformSettings fetches a TerraformSettings resource by ID.
func GetRegistrySecrets ¶ added in v0.38.0
func GetRegistrySecrets(definition recipes.Configuration, templatePath string, secrets map[string]recipes.SecretData) recipes.SecretData
GetRegistrySecrets returns the secret data for the registry of a recipe template path. It looks up the registry name in the Bicep registry authentication of the recipe configuration, then returns the secret data for the secret ID that the entry points to. It returns empty secret data if no entry matches or the template path does not parse. ReadFromRegistry rejects a path that does not parse with BadRequest before it sends a request, so empty secret data for that path does not hide the error.
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 manifest fails to be fetched, if the bytes fail to be fetched, or if the data fails to be unmarshalled.
func RegistryName ¶ added in v0.62.0
RegistryName returns the registry name of a recipe template path, which is the key used to look up registry credentials. It is the name, not the network host: for Docker Hub it returns "docker.io", and ORAS sends the requests to registry-1.docker.io and maps docker.io credentials to that host. The only error is a path that does not parse.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package authclient is a generated GoMock package.
|
Package authclient is a generated GoMock package. |