azure

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobConfig

type BlobConfig struct {
	Account    string        `yaml:"account"`
	AccountKey string        `yaml:"key"`
	Container  string        `yaml:"container"`
	SASTimeout time.Duration `yaml:"sasTimeout"`
}

BlobConfig is the Azure-Blob-config that is imported in the `message`-object in the app

func (*BlobConfig) Connect

func (cfg *BlobConfig) Connect(dryRun bool) (*BlobStorage, error)

Connect is used to connect to the blob-storage

type BlobStorage

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

BlobStorage is the 'api' of the azre-blob-storage

func (*BlobStorage) Save

func (store *BlobStorage) Save(name, location, ct string, size int64, dryRun bool) (*storage.StoredObject, error)

Save a file to the blob-storage

Jump to

Keyboard shortcuts

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