Documentation
¶
Index ¶
- type ContainerInfo
- type Driver
- func (d *Driver) FindContainer(ctx context.Context, name string) (ContainerInfo, error)
- func (d *Driver) GetBlobContainer(ctx context.Context, subscription, groupName, accountName string) []string
- func (d *Driver) GetBlobService(ctx context.Context, subscription, groupName, accountName string) []string
- func (d *Driver) GetContainerACL(ctx context.Context, subscription, group, account, container string) (string, error)
- func (d *Driver) GetStorages(ctx context.Context) ([]schema.Storage, error)
- func (d *Driver) ListBlobContainers(ctx context.Context) ([]ContainerInfo, error)
- func (d *Driver) SetContainerACL(ctx context.Context, subscription, group, account, container, level string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerInfo ¶ added in v0.3.1
type ContainerInfo struct {
Subscription string
ResourceGroup string
AccountName string
Name string
PublicAccess string
}
ContainerInfo carries the auditable fields for a blob container.
type Driver ¶ added in v0.0.9
func (*Driver) FindContainer ¶ added in v0.3.1
FindContainer locates a container by name across every configured subscription. Returns the first match.
func (*Driver) GetBlobContainer ¶ added in v0.0.9
func (*Driver) GetBlobService ¶ added in v0.0.9
func (*Driver) GetContainerACL ¶ added in v0.3.1
func (d *Driver) GetContainerACL(ctx context.Context, subscription, group, account, container string) (string, error)
GetContainerACL fetches the publicAccess property for a container.
func (*Driver) GetStorages ¶ added in v0.0.9
func (*Driver) ListBlobContainers ¶ added in v0.3.1
func (d *Driver) ListBlobContainers(ctx context.Context) ([]ContainerInfo, error)
ListBlobContainers returns containers across every configured subscription + storage account. It is the read-side helper backing the bucket-acl-check `audit` action.
Click to show internal directories.
Click to hide internal directories.