object

package
v0.9.46 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrObjectNotFound is returned when object does not exists.
	ErrObjectNotFound = errors.New("object not found")
)

Functions

func Get

func Get(ctx context.Context, bucket, name string) ([]byte, error)

Get retrieves content from bucket using name or returns the ObjectNotFound if does not exists.

func Put

func Put(ctx context.Context, bucket, name string, content []byte) error

Put persists the provided content into bucket using name.

func Save

func Save(ctx context.Context, sha, bucket, dir string) error

Save persists the provided content into bucket using name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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