Documentation ¶
Index ¶
Constants ¶
View Source
const ( AzureCloudType = "AzureCloud" AzureGovernmentCloudType = "AzureUSGovernment" )
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory returns a factory for Azure Blob receiver.
Types ¶
type AuthType ¶ added in v0.101.0
type AuthType string
func (*AuthType) UnmarshalText ¶ added in v0.101.0
type CloudType ¶ added in v0.101.0
type CloudType string
func (*CloudType) UnmarshalText ¶ added in v0.101.0
type Config ¶
type Config struct { // Type of authentication to use Authentication AuthType `mapstructure:"auth"` // Azure Blob Storage connection key, // which can be found in the Azure Blob Storage resource on the Azure Portal. (no default) ConnectionString string `mapstructure:"connection_string"` // Storage Account URL, used with Service Principal authentication StorageAccountURL string `mapstructure:"storage_account_url"` // Configuration for the Service Principal credentials ServicePrincipal ServicePrincipalConfig `mapstructure:"service_principal"` // Azure Cloud to authenticate against, used with Service Principal authentication Cloud CloudType `mapstructure:"cloud"` // Configurations of Azure Event Hub triggering on the `Blob Create` event EventHub EventHubConfig `mapstructure:"event_hub"` // Logs related configurations Logs LogsConfig `mapstructure:"logs"` // Traces related configurations Traces TracesConfig `mapstructure:"traces"` }
type EventHubConfig ¶
type EventHubConfig struct { // Azure Event Hub endpoint triggering on the `Blob Create` event EndPoint string `mapstructure:"endpoint"` }
type LogsConfig ¶
type LogsConfig struct { // Name of the blob container with the logs (default = "logs") ContainerName string `mapstructure:"container_name"` }
type ServicePrincipalConfig ¶ added in v0.101.0
type ServicePrincipalConfig struct { // Tenant ID, used with Service Principal authentication TenantID string `mapstructure:"tenant_id"` // Client ID, used with Service Principal authentication ClientID string `mapstructure:"client_id"` // Client secret, used with Service Principal authentication ClientSecret configopaque.String `mapstructure:"client_secret"` }
type TracesConfig ¶
type TracesConfig struct { // Name of the blob container with the traces (default = "traces") ContainerName string `mapstructure:"container_name"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.