storage

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func MustNew

func MustNew(dataDir string, bucketCfg map[string]any) *Client

func New

func New(dataDir string, bucketCfg map[string]any) (*Client, error)

func (*Client) DataDir

func (c *Client) DataDir(elem ...string) (string, error)

func (*Client) OpenBucket

func (c *Client) OpenBucket(ctx context.Context, elem ...string) (*blob.Bucket, bool, error)

func (*Client) RandomTempDir

func (c *Client) RandomTempDir(pattern string, elem ...string) (string, error)

func (*Client) RemovePrefix

func (c *Client) RemovePrefix(ctx context.Context, prefix ...string) error

func (*Client) TempDir

func (c *Client) TempDir(elem ...string) (string, error)

func (*Client) WithPrefix

func (c *Client) WithPrefix(prefix ...string) *Client

Jump to

Keyboard shortcuts

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