storage

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

type Driver struct {
	Client          *azapi.Client
	SubscriptionIDs []string
}

func (*Driver) FindContainer added in v0.3.1

func (d *Driver) FindContainer(ctx context.Context, name string) (ContainerInfo, error)

FindContainer locates a container by name across every configured subscription. Returns the first match.

func (*Driver) GetBlobContainer added in v0.0.9

func (d *Driver) GetBlobContainer(ctx context.Context, subscription, groupName, accountName string) []string

func (*Driver) GetBlobService added in v0.0.9

func (d *Driver) GetBlobService(ctx context.Context, subscription, groupName, accountName string) []string

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 (d *Driver) GetStorages(ctx context.Context) ([]schema.Storage, error)

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.

func (*Driver) SetContainerACL added in v0.3.1

func (d *Driver) SetContainerACL(ctx context.Context, subscription, group, account, container, level string) error

SetContainerACL updates the publicAccess property for a container. `level` is normalized to one of "None" / "Blob" / "Container".

Jump to

Keyboard shortcuts

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