table

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: 15 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetCredentials

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

func GetCredentialsFromCli

func GetCredentialsFromCli(cfg azureconfig.Config, l hclog.Logger) (string, string, bool, error)

func NewPlugin

func NewPlugin(cfg azureconfig.Config) plugin.Plugin

Types

type Plugin

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

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

type Store

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

Store implements the backing store for claims in azure table storage

func NewStore

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

func (*Store) Count

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

func (*Store) CreateTableIfNotExists

func (s *Store) CreateTableIfNotExists() 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