azure

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	BlobURL = "https://%s.blob.core.windows.net/%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	// contains filtered or unexported fields
}

func New

func New(opts Conf, l *log.Event) (*Blob, error)

func (*Blob) Copy added in v1.6.0

func (b *Blob) Copy(src, dst string) error

func (*Blob) Delete

func (b *Blob) Delete(name string) error

func (*Blob) FileStat

func (b *Blob) FileStat(name string) (inf storage.FileInfo, err error)

func (*Blob) List

func (b *Blob) List(prefix, suffix string) ([]storage.FileInfo, error)

func (*Blob) Save

func (b *Blob) Save(name string, data io.Reader, sizeb int) error

func (*Blob) SourceReader

func (b *Blob) SourceReader(name string) (io.ReadCloser, error)

type Conf

type Conf struct {
	Account     string      `bson:"account" json:"account,omitempty" yaml:"account,omitempty"`
	Container   string      `bson:"container" json:"container,omitempty" yaml:"container,omitempty"`
	Prefix      string      `bson:"prefix" json:"prefix,omitempty" yaml:"prefix,omitempty"`
	Credentials Credentials `bson:"credentials" json:"-" yaml:"credentials"`
}

type Credentials

type Credentials struct {
	Key string `bson:"key" json:"key,omitempty" yaml:"key,omitempty"`
}

Jump to

Keyboard shortcuts

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