Documentation ¶
Overview ¶
managed package provides the functionality to manage the output locations for the Capture.
Index ¶
- type ConfigEmptyError
- type StorageAccountManager
- func (sam *StorageAccountManager) ConainerNameByNamespace(namespace string) string
- func (sam *StorageAccountManager) CreateBlobContainer(ctx context.Context, containerName string) error
- func (sam *StorageAccountManager) CreateContainerSASURL(ctx context.Context, namespace string, duration time.Duration) (string, error)
- func (sam *StorageAccountManager) Init(configFile string) error
- func (sam *StorageAccountManager) SetupStorageAccount(ctx context.Context) error
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
Click to show internal directories.
Click to hide internal directories.