azure

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 15 Imported by: 2

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) (blob.ContainerURL, error)

func GetContainerURL

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

func New

New gets the Azure blob container

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  string `yaml:"storage-account-key"`
	ContainerName      string `yaml:"container-name"`
	Endpoint           string `yaml:"endpoint-suffix"`
	MaxBuffers         int    `yaml:"max-buffers"`
	BufferSize         int    `yaml:"buffer-size"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳