azblob

package
v0.0.0-...-863c642 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServincePrincipalTokenFromEnvironment

func CreateServincePrincipalTokenFromEnvironment() (*adal.ServicePrincipalToken, error)

CreateServincePrincipalTokenFromEnvironment creates servince principal token from automic settings.

Types

type AZBlob

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

AZBlob implements azure blob based storage.

func (*AZBlob) UploadStream

func (ab *AZBlob) UploadStream(
	ctx context.Context,
	stream io.Reader,
	name string,
) (string, error)

type StorageOption

type StorageOption struct {
	Logger                logrus.FieldLogger
	ServicePrincipalToken func() (*adal.ServicePrincipalToken, error)
	ContainerURL          string
}

StorageOption defines option for creating azure blob based storage.

func (*StorageOption) Create

func (s *StorageOption) Create() (*AZBlob, error)

Create creates an azblob instance.

Jump to

Keyboard shortcuts

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