blob

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const ConnectionEnvironmentVariable = "AZURE_STORAGE_CONNECTION_STRING"
View Source
const PluginInterface = crudstore.PluginInterface + ".azure.blob"

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(cfg azureconfig.Config) plugin.Plugin

Types

type CredentialSet

type CredentialSet struct {
	Credential azblob.SharedKeyCredential
	Pipeline   pipeline.Pipeline
}

func GetCredentials

func GetCredentials(cfg azureconfig.Config, l hclog.Logger) (CredentialSet, error)

type Metadata added in v0.9.0

type Metadata struct {
	ClaimSchemaVersion schema.Version `json:"claim-schema-version"`
}

type Plugin

type Plugin struct {
	crud.Store
	// contains filtered or unexported fields
}

Plugin is the plugin wrapper for storing claims in azure blob storage.

type Store

type Store struct {
	Container string
	CredentialSet
	// contains filtered or unexported fields
}

Store implements the backing store for claims in azure blob storage

func NewStore

func NewStore(cfg azureconfig.Config, l hclog.Logger) *Store

func (*Store) Delete

func (s *Store) Delete(itemType string, name string) error

func (*Store) List

func (s *Store) List(itemType string, group string) ([]string, error)

func (*Store) Read

func (s *Store) Read(itemType string, name string) ([]byte, error)

func (*Store) Save

func (s *Store) Save(itemType string, group string, name string, data []byte) error

Jump to

Keyboard shortcuts

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