unstructured

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Exists(ctx context.Context, userID string, id string) (bool, error)
	Put(ctx context.Context, userID string, id string, reader io.Reader, options *storeUnstructured.Options) error
	Get(ctx context.Context, userID string, id string) (io.ReadCloser, error)
	Delete(ctx context.Context, userID string, id string) (bool, error)
	DeleteAll(ctx context.Context, userID string) error
}

type StoreImpl

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

func NewStore

func NewStore(store storeUnstructured.Store) (*StoreImpl, error)

func (*StoreImpl) Delete

func (s *StoreImpl) Delete(ctx context.Context, userID string, id string) (bool, error)

func (*StoreImpl) DeleteAll added in v1.31.0

func (s *StoreImpl) DeleteAll(ctx context.Context, userID string) error

func (*StoreImpl) Exists

func (s *StoreImpl) Exists(ctx context.Context, userID string, id string) (bool, error)

func (*StoreImpl) Get

func (s *StoreImpl) Get(ctx context.Context, userID string, id string) (io.ReadCloser, error)

func (*StoreImpl) Put

func (s *StoreImpl) Put(ctx context.Context, userID string, id string, reader io.Reader, options *storeUnstructured.Options) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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