blob

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ConnectionEnvironmentVariable = "AZURE_STORAGE_CONNECTION_STRING"
View Source
const PluginInterface = crudstore.PluginInterface + ".azure.blob"
View Source
const UserAgent = "porter.azure.storage.plugin"

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)

func GetCredentialsFromCli added in v0.10.0

func GetCredentialsFromCli(cfg azureconfig.Config, l hclog.Logger) (CredentialSet, bool, 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) Count added in v0.9.1

func (s *Store) Count(itemType string, group string) (int, error)

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