blob

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 32 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 {
	// contains filtered or unexported fields
}

func NewBlob

func NewBlob(ctx context.Context, c client.Client, bs *storageapi.BackupStorage) (*Blob, error)

func (*Blob) Delete

func (b *Blob) Delete(ctx context.Context, filepath string, isDir bool) error

func (*Blob) Exists

func (b *Blob) Exists(ctx context.Context, filepath string) (bool, error)

func (*Blob) Get

func (b *Blob) Get(ctx context.Context, filepath string) ([]byte, error)

func (*Blob) List

func (b *Blob) List(ctx context.Context, dir string) ([][]byte, error)

func (*Blob) SetPathAsDir

func (b *Blob) SetPathAsDir(ctx context.Context, path string) error

func (*Blob) Upload

func (b *Blob) Upload(ctx context.Context, filepath string, data []byte) error

Jump to

Keyboard shortcuts

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