azure

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureBlobEnv

func NewAzureBlobEnv(cfg *config.NucleusConfig, logger lumber.Logger) (core.AzureClient, error)

NewAzureBlobEnv returns a new Azure blob store.

Types

type Store

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

Store represents the azure storage

func (*Store) Create

func (s *Store) Create(ctx context.Context, path string, reader io.Reader, mimeType string) (string, error)

Create function ulploads blob to URI

func (*Store) CreateUsingSASURL

func (s *Store) CreateUsingSASURL(ctx context.Context, sasURL string, reader io.Reader, mimeType string) (string, error)

CreateUsingSASURL creates object using sasURL

func (*Store) Exists

func (s *Store) Exists(ctx context.Context, path string) (bool, error)

Exists checks the blob if exists

func (*Store) Find

func (s *Store) Find(ctx context.Context, path string) (io.ReadCloser, error)

Find function downloads blob based on URI

func (*Store) FindUsingSASUrl

func (s *Store) FindUsingSASUrl(ctx context.Context, sasURL string) (io.ReadCloser, error)

FindUsingSASUrl download object based on sasURL

func (*Store) GetSASURL

func (s *Store) GetSASURL(ctx context.Context, containerPath string, containerType core.ContainerType) (string, error)

GetSASURL calls request neuron to get the SAS url

Jump to

Keyboard shortcuts

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