test

package
v1.32.0-release.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 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 DeleteInput

type DeleteInput struct {
	UserID string
	ID     string
}

type DeleteOutput

type DeleteOutput struct {
	Deleted bool
	Error   error
}

type ExistsInput

type ExistsInput struct {
	UserID string
	ID     string
}

type ExistsOutput

type ExistsOutput struct {
	Exists bool
	Error  error
}

type GetInput

type GetInput struct {
	UserID string
	ID     string
}

type GetOutput

type GetOutput struct {
	Reader io.ReadCloser
	Error  error
}

type PutInput

type PutInput struct {
	UserID  string
	ID      string
	Reader  io.Reader
	Options *storeUnstructured.Options
}

type Store

type Store struct {
	ExistsInvocations    int
	ExistsInputs         []ExistsInput
	ExistsStub           func(ctx context.Context, userID string, id string) (bool, error)
	ExistsOutputs        []ExistsOutput
	ExistsOutput         *ExistsOutput
	PutInvocations       int
	PutInputs            []PutInput
	PutStub              func(ctx context.Context, userID string, id string, reader io.Reader, options *storeUnstructured.Options) error
	PutOutputs           []error
	PutOutput            *error
	GetInvocations       int
	GetInputs            []GetInput
	GetStub              func(ctx context.Context, userID string, id string) (io.ReadCloser, error)
	GetOutputs           []GetOutput
	GetOutput            *GetOutput
	DeleteInvocations    int
	DeleteInputs         []DeleteInput
	DeleteStub           func(ctx context.Context, userID string, id string) (bool, error)
	DeleteOutputs        []DeleteOutput
	DeleteOutput         *DeleteOutput
	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, id string) (bool, error)

func (*Store) DeleteAll added in v1.31.0

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

func (*Store) Exists

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

func (*Store) Get

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

func (*Store) Put

func (s *Store) Put(ctx context.Context, userID string, id 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