azure

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: AGPL-3.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContainer

func CreateContainer(ctx context.Context, conf *Config) (blob.ContainerURL, error)

func GetBlobURL

func GetBlobURL(ctx context.Context, conf *Config, blobName string) (blob.BlockBlobURL, error)

func GetContainer

func GetContainer(ctx context.Context, conf *Config, hedge bool) (blob.ContainerURL, error)

func GetContainerURL

func GetContainerURL(ctx context.Context, cfg *Config, hedge bool) (blob.ContainerURL, error)

func New

New gets the Azure blob container

func NewNoConfirm added in v1.3.0

NewNoConfirm gets the Azure blob container without testing it

Types

type BlobAttributes

type BlobAttributes struct {
	// Size is the blob size in bytes.
	Size int64 `json:"size"`

	// LastModified is the timestamp the blob was last modified.
	LastModified time.Time `json:"last_modified"`
}

type Config

type Config struct {
	StorageAccountName string         `yaml:"storage-account-name"`
	StorageAccountKey  flagext.Secret `yaml:"storage-account-key"`
	UseManagedIdentity bool           `yaml:"use-managed-identity"`
	UserAssignedID     string         `yaml:"user-assigned-id"`
	ContainerName      string         `yaml:"container-name"`
	Endpoint           string         `yaml:"endpoint-suffix"`
	MaxBuffers         int            `yaml:"max-buffers"`
	BufferSize         int            `yaml:"buffer-size"`
	HedgeRequestsAt    time.Duration  `yaml:"hedge-requests-at"`
	HedgeRequestsUpTo  int            `yaml:"hedge-requests-up-to"`
}

Jump to

Keyboard shortcuts

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