structured

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Create

type Create struct {
	MediaType *string
}

func NewCreate

func NewCreate() *Create

func (*Create) Validate

func (c *Create) Validate(validator structure.Validator)

type Session

type Session interface {
	io.Closer

	List(ctx context.Context, userID string, filter *blob.Filter, pagination *page.Pagination) (blob.BlobArray, error)
	Create(ctx context.Context, userID string, create *Create) (*blob.Blob, error)
	DeleteAll(ctx context.Context, userID string) (bool, error)
	DestroyAll(ctx context.Context, userID string) (bool, error)

	Get(ctx context.Context, id string, condition *request.Condition) (*blob.Blob, error)
	Update(ctx context.Context, id string, condition *request.Condition, update *Update) (*blob.Blob, error)
	Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)
	Destroy(ctx context.Context, id string, condition *request.Condition) (bool, error)
}

type Store

type Store interface {
	NewSession() Session
}

type Update

type Update struct {
	DigestMD5 *string
	MediaType *string
	Size      *int
	Status    *string
}

func NewUpdate

func NewUpdate() *Update

func (*Update) IsEmpty added in v1.31.0

func (u *Update) IsEmpty() bool

func (*Update) Validate

func (u *Update) Validate(validator structure.Validator)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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