managed

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

managed package provides the functionality to manage the output locations for the Capture.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigEmptyError

type ConfigEmptyError struct {
	ConfigName string
}

func (ConfigEmptyError) Error

func (err ConfigEmptyError) Error() string

type StorageAccountManager

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

StorageAccountManager manages the lifecycle of the storage account.

func NewStorageAccountManager

func NewStorageAccountManager() *StorageAccountManager

func (*StorageAccountManager) ConainerNameByNamespace

func (sam *StorageAccountManager) ConainerNameByNamespace(namespace string) string

func (*StorageAccountManager) CreateBlobContainer

func (sam *StorageAccountManager) CreateBlobContainer(ctx context.Context, containerName string) error

func (*StorageAccountManager) CreateContainerSASURL

func (sam *StorageAccountManager) CreateContainerSASURL(ctx context.Context, namespace string, duration time.Duration) (string, error)

CreateContainerSASURL creates a user delegation SAS URL for the container. namespace is to determined the container name, and duration decides the expiry time of the SAS URL.

func (*StorageAccountManager) Init

func (sam *StorageAccountManager) Init(configFile string) error

func (*StorageAccountManager) SetupStorageAccount

func (sam *StorageAccountManager) SetupStorageAccount(ctx context.Context) error

Jump to

Keyboard shortcuts

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