storageaccount

package
v0.0.0-...-8ad424e Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager

func NewManager(creds config.Credentials, secretClient secrets.SecretClient, scheme *runtime.Scheme) *azureStorageManager

NewManager returns an instance of the Storage Account Client

func ParseNetworkPolicy

func ParseNetworkPolicy(ruleSet *v1alpha1.StorageNetworkRuleSet) storage.NetworkRuleSet

ParseNetworkPolicy - helper function to parse network policies from Kubernetes spec

Types

type StorageManager

type StorageManager interface {
	CreateStorage(ctx context.Context,
		groupName string,
		storageAccountName string,
		location string,
		sku azurev1alpha1.StorageAccountSku,
		kind azurev1alpha1.StorageAccountKind,
		tags map[string]*string,
		accessTier azurev1alpha1.StorageAccountAccessTier,
		enableHTTPsTrafficOnly *bool, dataLakeEnabled *bool, networkRule *storage.NetworkRuleSet) (pollingURL string, result storage.Account, err error)

	// Get gets the description of the specified storage account.
	// Parameters:
	// resourceGroupName - name of the resource group within the azure subscription.
	// storageAccountName - the name of the storage account
	GetStorage(ctx context.Context, resourceGroupName string, storageAccountName string) (result storage.Account, err error)

	// DeleteStorage removes the storage account
	// Parameters:
	// resourceGroupName - name of the resource group within the azure subscription.
	// storageAccountName - the name of the storage account
	DeleteStorage(ctx context.Context, groupName string, storageAccountName string) (result autorest.Response, err error)

	ListKeys(ctx context.Context, groupName string, storageAccountName string) (result storage.AccountListKeysResult, err error)

	StoreSecrets(ctx context.Context,
		resourceGroupName string,
		accountName string,
		instance *v1alpha1.StorageAccount) error

	resourcemanager.ARMClient
}

Jump to

Keyboard shortcuts

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