util

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrefixedObjectClient

func NewPrefixedObjectClient(downstreamClient chunk.ObjectClient, prefix string) chunk.ObjectClient

Types

type PrefixedObjectClient

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

func (PrefixedObjectClient) DeleteObject

func (p PrefixedObjectClient) DeleteObject(ctx context.Context, objectKey string) error

func (PrefixedObjectClient) GetObject

func (p PrefixedObjectClient) GetObject(ctx context.Context, objectKey string) (io.ReadCloser, error)

func (PrefixedObjectClient) List

func (PrefixedObjectClient) PathSeparator added in v1.6.0

func (p PrefixedObjectClient) PathSeparator() string

func (PrefixedObjectClient) PutObject

func (p PrefixedObjectClient) PutObject(ctx context.Context, objectKey string, object io.ReadSeeker) error

func (PrefixedObjectClient) Stop

func (p PrefixedObjectClient) Stop()

Jump to

Keyboard shortcuts

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