Documentation ¶
Overview ¶
Package mock implements an in-memory mock backend for testing.
Index ¶
- type Backend
- func (b *Backend) Acquire(_ context.Context, owner, namespace, name string, exp time.Time, ...) (*backend.HandleData, error)
- func (*Backend) Close() error
- func (b *Backend) Done(_ context.Context, owner string, handleID uuid.UUID, ...) error
- func (b *Backend) Get(_ context.Context, handleID uuid.UUID) (*backend.HandleData, error)
- func (b *Backend) List(_ context.Context, req *rpc.ListRequest, iter backend.Iterator) error
- func (*Backend) Ping() error
- func (b *Backend) Renew(_ context.Context, owner string, handleID uuid.UUID, exp time.Time, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements a mock backend.
func (*Backend) Acquire ¶
func (b *Backend) Acquire(_ context.Context, owner, namespace, name string, exp time.Time, metadata map[string]string) (*backend.HandleData, error)
Acquire implements the backend.Backend interface.
func (*Backend) Done ¶
func (b *Backend) Done(_ context.Context, owner string, handleID uuid.UUID, metadata map[string]string) error
Done implements the backend.Backend interface.
Click to show internal directories.
Click to hide internal directories.