structured

package
v1.27.0-blob-service.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: BSD-2-Clause Imports: 7 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.Blobs, error)
	Create(ctx context.Context, userID string, create *Create) (*blob.Blob, error)
	Get(ctx context.Context, id string) (*blob.Blob, error)
	Update(ctx context.Context, id string, update *Update) (*blob.Blob, error)
	Delete(ctx context.Context, id string) (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) HasUpdates

func (u *Update) HasUpdates() 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