azure

package
v0.0.0-...-4b0aa01 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(clientFactory AzureBlobClientFactory) includes.ChildResolver

NewResolver creates a new instance of a ChildResolver that resolves child blueprints from an Azure Blob Storage container. This relies on fields defined in the include metadata, specifically the `container` field. clientFactory is a function that creates an azblob.Client, this will be called on each Resolve request. If you provide nil for the clientFactory, one will be created using the standard Azure SDK mechanisms, sourcing credentials from the current environment. The default client factory will need to source the azure storage account name to build the service URL. The default client factory expects either the "storageAccountName" field to be present in the include metadata, the "azureStorageAccountName" context variable to be set, or the "AZURE_STORAGE_ACCOUNT_NAME" environment variable to be set.

Types

type AzureBlobClientFactory

type AzureBlobClientFactory func(
	includeName string,
	include *subengine.ResolvedInclude,
	params core.BlueprintParams,
) (*azblob.Client, error)

AzureBlobClientFactory is a function that creates an azblob.Client. It takes the include name, include metadata, and blueprint parameters that may contain configuration for the client.

Jump to

Keyboard shortcuts

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