github.com/Jeffail/benthos/v3@v3.65.0/lib/output/writer/azure_blob_storage_config.go (about) 1 package writer 2 3 //------------------------------------------------------------------------------ 4 5 // AzureBlobStorageConfig contains configuration fields for the AzureBlobStorage output type. 6 type AzureBlobStorageConfig struct { 7 StorageAccount string `json:"storage_account" yaml:"storage_account"` 8 StorageAccessKey string `json:"storage_access_key" yaml:"storage_access_key"` 9 StorageSASToken string `json:"storage_sas_token" yaml:"storage_sas_token"` 10 StorageConnectionString string `json:"storage_connection_string" yaml:"storage_connection_string"` 11 Container string `json:"container" yaml:"container"` 12 Path string `json:"path" yaml:"path"` 13 BlobType string `json:"blob_type" yaml:"blob_type"` 14 PublicAccessLevel string `json:"public_access_level" yaml:"public_access_level"` 15 MaxInFlight int `json:"max_in_flight" yaml:"max_in_flight"` 16 } 17 18 // NewAzureBlobStorageConfig creates a new Config with default values. 19 func NewAzureBlobStorageConfig() AzureBlobStorageConfig { 20 return AzureBlobStorageConfig{ 21 StorageAccount: "", 22 StorageAccessKey: "", 23 StorageConnectionString: "", 24 Container: "", 25 Path: `${!count("files")}-${!timestamp_unix_nano()}.txt`, 26 BlobType: "BLOCK", 27 PublicAccessLevel: "PRIVATE", 28 MaxInFlight: 1, 29 } 30 } 31 32 //------------------------------------------------------------------------------