test

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-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 DeleteContentInput

type DeleteContentInput struct {
	UserID    string
	ImageID   string
	ContentID string
}

type DeleteInput

type DeleteInput struct {
	UserID  string
	ImageID string
}

type DeleteRenditionContentInput

type DeleteRenditionContentInput struct {
	UserID       string
	ImageID      string
	ContentID    string
	RenditionsID string
}

type GetContentInput

type GetContentInput struct {
	UserID        string
	ImageID       string
	ContentID     string
	ContentIntent string
}

type GetContentOutput

type GetContentOutput struct {
	Reader io.ReadCloser
	Error  error
}

type GetRenditionContentInput

type GetRenditionContentInput struct {
	UserID       string
	ImageID      string
	ContentID    string
	RenditionsID string
	Rendition    string
}

type GetRenditionContentOutput

type GetRenditionContentOutput struct {
	Reader io.ReadCloser
	Error  error
}

type PutContentInput

type PutContentInput struct {
	UserID        string
	ImageID       string
	ContentID     string
	ContentIntent string
	Reader        io.Reader
	Options       *storeUnstructured.Options
}

type PutRenditionContentInput

type PutRenditionContentInput struct {
	UserID       string
	ImageID      string
	ContentID    string
	RenditionsID string
	Rendition    string
	Reader       io.Reader
	Options      *storeUnstructured.Options
}

type Store

type Store struct {
	PutContentInvocations             int
	PutContentInputs                  []PutContentInput
	PutContentStub                    func(ctx context.Context, userID string, imageID string, contentID string, contentIntent string, reader io.Reader, options *storeUnstructured.Options) error
	PutContentOutputs                 []error
	PutContentOutput                  *error
	GetContentInvocations             int
	GetContentInputs                  []GetContentInput
	GetContentStub                    func(ctx context.Context, userID string, imageID string, contentID string, contentIntent string) (io.ReadCloser, error)
	GetContentOutputs                 []GetContentOutput
	GetContentOutput                  *GetContentOutput
	DeleteContentInvocations          int
	DeleteContentInputs               []DeleteContentInput
	DeleteContentStub                 func(ctx context.Context, userID string, imageID string, contentID string) error
	DeleteContentOutputs              []error
	DeleteContentOutput               *error
	PutRenditionContentInvocations    int
	PutRenditionContentInputs         []PutRenditionContentInput
	PutRenditionContentStub           func(ctx context.Context, userID string, imageID string, contentID string, renditionsID string, rendition string, reader io.Reader, options *storeUnstructured.Options) error
	PutRenditionContentOutputs        []error
	PutRenditionContentOutput         *error
	GetRenditionContentInvocations    int
	GetRenditionContentInputs         []GetRenditionContentInput
	GetRenditionContentStub           func(ctx context.Context, userID string, imageID string, contentID string, renditionsID string, rendition string) (io.ReadCloser, error)
	GetRenditionContentOutputs        []GetRenditionContentOutput
	GetRenditionContentOutput         *GetRenditionContentOutput
	DeleteRenditionContentInvocations int
	DeleteRenditionContentInputs      []DeleteRenditionContentInput
	DeleteRenditionContentStub        func(ctx context.Context, userID string, imageID string, contentID string, renditionsID string) error
	DeleteRenditionContentOutputs     []error
	DeleteRenditionContentOutput      *error
	DeleteInvocations                 int
	DeleteInputs                      []DeleteInput
	DeleteStub                        func(ctx context.Context, userID string, imageID string) error
	DeleteOutputs                     []error
	DeleteOutput                      *error
	DeleteAllInvocations              int
	DeleteAllInputs                   []string
	DeleteAllStub                     func(ctx context.Context, userID string) error
	DeleteAllOutputs                  []error
	DeleteAllOutput                   *error
}

func NewStore

func NewStore() *Store

func (*Store) AssertOutputsEmpty

func (s *Store) AssertOutputsEmpty()

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, userID string, imageID string) error

func (*Store) DeleteAll

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

func (*Store) DeleteContent

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

func (*Store) DeleteRenditionContent

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

func (*Store) GetContent

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

func (*Store) GetRenditionContent

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

func (*Store) PutContent

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

func (*Store) PutRenditionContent

func (s *Store) PutRenditionContent(ctx context.Context, userID string, imageID string, contentID string, renditionsID string, rendition string, reader io.Reader, options *storeUnstructured.Options) error

Jump to

Keyboard shortcuts

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