Documentation ¶
Index ¶
- type AzureBlobContainerManager
- func (m *AzureBlobContainerManager) CreateBlobContainer(ctx context.Context, resourceGroupName string, accountName string, ...) (*s.BlobContainer, error)
- func (bc *AzureBlobContainerManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureBlobContainerManager) DeleteBlobContainer(ctx context.Context, resourceGroupName string, accountName string, ...) (result autorest.Response, err error)
- func (bc *AzureBlobContainerManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureBlobContainerManager) GetBlobContainer(ctx context.Context, resourceGroupName string, accountName string, ...) (result s.BlobContainer, err error)
- func (bc *AzureBlobContainerManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (bc *AzureBlobContainerManager) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
- type BlobContainerManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureBlobContainerManager ¶
type AzureBlobContainerManager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(creds config.Credentials) *AzureBlobContainerManager
NewManager returns a pointer to a new instance of a blob container client
func (*AzureBlobContainerManager) CreateBlobContainer ¶
func (m *AzureBlobContainerManager) CreateBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string, accessLevel s.PublicAccess) (*s.BlobContainer, error)
Creates a blob container in a storage account. Parameters: resourceGroupName - name of the resource group within the azure subscription. accountName - the name of the storage account containerName - the name of the container accessLevel - 'PublicAccessContainer', 'PublicAccessBlob', or 'PublicAccessNone'
func (*AzureBlobContainerManager) Delete ¶
func (bc *AzureBlobContainerManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Delete drops a blob container
func (*AzureBlobContainerManager) DeleteBlobContainer ¶
func (m *AzureBlobContainerManager) DeleteBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result autorest.Response, err error)
Deletes a blob container in a storage account. Parameters: resourceGroupName - name of the resource group within the azure subscription. accountName - the name of the storage account containerName - the name of the container
func (*AzureBlobContainerManager) Ensure ¶
func (bc *AzureBlobContainerManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure creates a blob container
func (*AzureBlobContainerManager) GetBlobContainer ¶
func (m *AzureBlobContainerManager) GetBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result s.BlobContainer, err error)
Get gets the description of the specified blob container. Parameters: resourceGroupName - name of the resource group within the azure subscription. accountName - the name of the storage account containerName - the name of the container
func (*AzureBlobContainerManager) GetParents ¶
func (bc *AzureBlobContainerManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
GetParents returns the parents of a blob container
func (*AzureBlobContainerManager) GetStatus ¶
func (bc *AzureBlobContainerManager) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
type BlobContainerManager ¶
type BlobContainerManager interface { CreateBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string, accessLevel s.PublicAccess) (*storage.BlobContainer, error) // Get gets the description of the specified blob container. // Parameters: // resourceGroupName - name of the resource group within the azure subscription. // accountName - the name of the storage account // containerName - the name of the container GetBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result storage.BlobContainer, err error) // Deletes a blob container in a storage account. // Parameters: // resourceGroupName - name of the resource group within the azure subscription. // accountName - the name of the storage account // containerName - the name of the container DeleteBlobContainer(ctx context.Context, resourceGroupName string, accountName string, containerName string) (result autorest.Response, err error) }
BlobContainerManager exists in case we need it