storage

package
v0.0.0-...-e98602f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 16 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 NewClient

func NewClient(ec *config.Config) (*Client, error)

func (*Client) GetMetadata

func (c *Client) GetMetadata(ctx context.Context) (*metadata.Metadata, error)

func (*Client) UpdateMetadata

func (c *Client) UpdateMetadata(ctx context.Context, f UpdateMetadataFunc) error

UpdateMetadata updates the metadata stored in the object storage.

func (*Client) Write

func (c *Client) Write(ctx context.Context, b []byte, remotePath string) error

type UpdateMetadataFunc

type UpdateMetadataFunc func(*metadata.Metadata) bool

Jump to

Keyboard shortcuts

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