unstructured

package
v1.32.4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 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 {
	PutContent(ctx context.Context, userID string, imageID string, contentID string, contentIntent string, reader io.Reader, options *storeUnstructured.Options) error
	GetContent(ctx context.Context, userID string, imageID string, contentID string, contentIntent string) (io.ReadCloser, error)
	DeleteContent(ctx context.Context, userID string, imageID string, contentID string) error

	PutRenditionContent(ctx context.Context, userID string, imageID string, contentID string, renditionsID string, renditionString string, reader io.Reader, options *storeUnstructured.Options) error
	GetRenditionContent(ctx context.Context, userID string, imageID string, contentID string, renditionsID string, renditionString string) (io.ReadCloser, error)
	DeleteRenditionContent(ctx context.Context, userID string, imageID string, contentID string, renditionsID string) error

	Delete(ctx context.Context, userID string, imageID string) 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, imageID string) error

func (*StoreImpl) DeleteAll

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

func (*StoreImpl) DeleteContent

func (s *StoreImpl) DeleteContent(ctx context.Context, userID string, imageID string, contentID string) error

func (*StoreImpl) DeleteRenditionContent

func (s *StoreImpl) DeleteRenditionContent(ctx context.Context, userID string, imageID string, contentID string, renditionsID string) error

func (*StoreImpl) GetContent

func (s *StoreImpl) GetContent(ctx context.Context, userID string, imageID string, contentID string, contentIntent string) (io.ReadCloser, error)

func (*StoreImpl) GetRenditionContent

func (s *StoreImpl) GetRenditionContent(ctx context.Context, userID string, imageID string, contentID string, renditionsID string, renditionString string) (io.ReadCloser, error)

func (*StoreImpl) PutContent

func (s *StoreImpl) PutContent(ctx context.Context, userID string, imageID string, contentID string, contentIntent string, reader io.Reader, options *storeUnstructured.Options) error

func (*StoreImpl) PutRenditionContent

func (s *StoreImpl) PutRenditionContent(ctx context.Context, userID string, imageID string, contentID string, renditionsID string, renditionString 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