Documentation
¶
Index ¶
- func CreateBlobHTTPHeadersFromRequest(meta map[string]string, contentType *string, log logger.Logger) (blob.HTTPHeaders, error)
- func SanitizeMetadata(log logger.Logger, metadata map[string]string) map[string]*string
- type BlobStorageMetadata
- type ContainerClientOpts
- func (opts ContainerClientOpts) EnsureContainer(ctx context.Context, client *container.Client, ...) error
- func (opts ContainerClientOpts) GetContainerURL(azEnvSettings azauth.EnvironmentSettings) (u *url.URL, err error)
- func (opts ContainerClientOpts) InitContainerClient(azEnvSettings azauth.EnvironmentSettings) (client *container.Client, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlobStorageMetadata ¶
type BlobStorageMetadata struct {
ContainerClientOpts `json:",inline" mapstructure:",squash"`
DecodeBase64 bool `json:"decodeBase64,string"`
PublicAccessLevel azblob.PublicAccessType
}
type ContainerClientOpts ¶ added in v1.11.0
type ContainerClientOpts struct {
// Use a connection string
ConnectionString string
ContainerName string
// Use a shared account key
AccountName string
AccountKey string
// Misc
RetryCount int32 `json:"retryCount,string"`
// contains filtered or unexported fields
}
func (ContainerClientOpts) EnsureContainer ¶ added in v1.11.0
func (opts ContainerClientOpts) EnsureContainer(ctx context.Context, client *container.Client, accessLevel *azblob.PublicAccessType) error
EnsureContainer creates the container if it doesn't already exist. Property "accessLevel" indicates the public access level; nil-value means the container is private
func (ContainerClientOpts) GetContainerURL ¶ added in v1.11.0
func (opts ContainerClientOpts) GetContainerURL(azEnvSettings azauth.EnvironmentSettings) (u *url.URL, err error)
GetContainerURL returns the URL of the container, needed by some auth methods.
func (ContainerClientOpts) InitContainerClient ¶ added in v1.11.0
func (opts ContainerClientOpts) InitContainerClient(azEnvSettings azauth.EnvironmentSettings) (client *container.Client, err error)
InitContainerClient returns a new container.Client object from the given options.
Click to show internal directories.
Click to hide internal directories.