storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRequest

type DeleteRequest struct {
	Key string
}

type DeleteResponse

type DeleteResponse struct {
}

type Driver

type Driver interface {
	PutPayload(context.Context, *PutRequest) (*PutResponse, error)
	GetPayload(context.Context, *GetRequest) (*GetResponse, error)
	ExistPayload(context.Context, *ExistRequest) (*ExistResponse, error)
	DeletePayload(context.Context, *DeleteRequest) (*DeleteResponse, error)
}

type ErrBlobNotFound

type ErrBlobNotFound struct {
	Err error
}

func (*ErrBlobNotFound) Error

func (m *ErrBlobNotFound) Error() string

type ExistRequest

type ExistRequest struct {
	Key string
}

type ExistResponse

type ExistResponse struct {
	Exists bool
}

type GetRequest

type GetRequest struct {
	Key    string
	Writer io.Writer
}

type GetResponse

type GetResponse struct {
	ContentLength uint64
}

type PutRequest

type PutRequest struct {
	Data          io.Reader
	Key           string
	Digest        string
	ContentLength uint64
}

type PutResponse

type PutResponse struct {
	// Key used to retrieve the stored data via a GetRequest.
	Key string
}

type Validatable

type Validatable interface {
	Validate(context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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