wormhol

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: BSD-3-Clause Imports: 3 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 {
	// Storage holds the storage.Provider-compatible storage provider.
	Storage storage.Provider
	// Cache holds the cache.Provider-compatible cache provider.
	Cache cache.Provider
}

Client wraps the storage and cache providers used for object storage.

func (*Client) DeleteObject

func (client *Client) DeleteObject(key string) error

DeleteObject deletes the `key` object.

func (*Client) ExistsObject

func (client *Client) ExistsObject(key string) (bool, error)

ExistsObject returns whether a `key` object exists.

func (*Client) GetObject

func (client *Client) GetObject(key string) (*object.Object, error)

GetObject returns the details of the `key` object.

func (*Client) ListObjects

func (client *Client) ListObjects() ([]*object.Object, error)

ListObjects returns the details of all objects.

func (*Client) NewObject

func (client *Client) NewObject(name string, size int64) (*object.Object, error)

NewObject returns the details for object creation.

Directories

Path Synopsis
s3

Jump to

Keyboard shortcuts

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