blob

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 27 Imported by: 1

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, namespace string, bConfig *api.Backend) (*Blob, error)

func (*Blob) Debug

func (b *Blob) Debug(ctx context.Context, filepath string, data []byte, contentType string) 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) ListDirN

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

ListDirN depth = 0 → immediate children only.

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, contentType string) error

Jump to

Keyboard shortcuts

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