Documentation ¶
Overview ¶
Package azblob loads configuration from Azure Blob Storage.
It requires following roles to access blob from Azure Blob Storage: - Storage Blob Data Reader
Change notification ¶
By default, it periodically polls the configuration only. It also listens to change events by register it to notifier with Cloud Event schema.
Only Microsoft.Storage.BlobCreated events trigger polling the configuration and other type of events are ignored.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct {
// contains filtered or unexported fields
}
Blob is a Provider that loads configuration from Azure Blob Storage.
To create a new Blob, call New.
type Option ¶
type Option func(options *options)
Option configures the Blob with specific options.
func WithCredential ¶
func WithCredential(credential azcore.TokenCredential) Option
WithCredential provides the azcore.TokenCredential for Azure authentication.
By default, it uses azidentity.DefaultAzureCredential.
func WithPollInterval ¶
WithPollInterval provides the interval for polling the configuration.
The default interval is 1 minute.