blob

package
v0.0.0-...-4b91ffb Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	Name       string
	ExpiryTime *time.Time
	BlobTags   []*container.BlobTag
}

Blob holds all relevant information about a blob in a container.

func (Blob) String

func (b Blob) String() string

type BlockBlobClient

type BlockBlobClient struct {
	Name string
	blockblob.Client
}

BlockBlobClient is the wrapper on top of the Azure Block Blob Client.

func (*BlockBlobClient) Delete

func (b *BlockBlobClient) Delete(ctx context.Context) error

Delete deletes the blob.

func (*BlockBlobClient) GetProperties

func (b *BlockBlobClient) GetProperties()

GetProperties fetches the properties of the blob.

func (*BlockBlobClient) SetImmutability

func (b *BlockBlobClient) SetImmutability(ctx context.Context, daysFromToday int) (*time.Time, error)

SetImmutability sets the immutability period for a blob in days.

func (*BlockBlobClient) SetTags

func (b *BlockBlobClient) SetTags(ctx context.Context, tags map[string]string) error

Jump to

Keyboard shortcuts

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