store

package
v0.0.0-...-ecdd364 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureBlobStorage

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

AzureBlobStorage represents an Azure Storage object.

func NewAzureBlobStorage

func NewAzureBlobStorage(container string, object string) *AzureBlobStorage

NewAzureBlobStorage returns an Azure storage item given a container and an object path.

func (*AzureBlobStorage) Load

func (s *AzureBlobStorage) Load() ([]byte, error)

Load downloads an object from a bucket and returns an error if it cannot be read.

func (*AzureBlobStorage) Save

func (s *AzureBlobStorage) Save(b []byte) error

Save uploads an object to a bucket and returns an error if it cannot be written.

Jump to

Keyboard shortcuts

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