objectstore

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config, credentials azure.Credentials) *objectStore

New returns an Object Store instance that manages Azure object store

func NewAuthorizedResourceGroupClientFromSecret

func NewAuthorizedResourceGroupClientFromSecret(credentials azure.Credentials) (resourceGroup, error)

NewAuthorizedResourceGroupClientFromSecret returns an authorized Azure resource groups client from a secret.

func NewAuthorizedStorageAccountClientFromSecret

func NewAuthorizedStorageAccountClientFromSecret(credentials azure.Credentials) (storageAccount, error)

NewAuthorizedStorageAccountClientFromSecret returns an authorized Azure resource groups client from a secret.

func NewClientCredentialsConfigFromSecret

func NewClientCredentialsConfigFromSecret(credentials azure.Credentials) auth.ClientCredentialsConfig

NewClientCredentialsConfigFromSecret returns an Azure client credential config from a secret.

TODO: implement validation for the secret?

func NewPlainObjectStore

func NewPlainObjectStore() (*objectStore, error)

NewPlainObjectStore creates an objectstore with no configuration. Instances created with this function may be used to access methods that don't explicitly access external (cloud) resources

func NewResourceGroupClientFromSecret

func NewResourceGroupClientFromSecret(credentials azure.Credentials) resources.GroupsClient

NewResourceGroupClientFromSecret returns an Azure resource groups client from a secret.

func NewStorageAccountClientFromSecret

func NewStorageAccountClientFromSecret(credentials azure.Credentials) storage.AccountsClient

NewStorageAccountClientFromSecret returns an Azure resource groups client from a secret.

Types

type Config

type Config struct {
	ResourceGroup  string
	StorageAccount string
	Location       string
}

Config defines configuration

Jump to

Keyboard shortcuts

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