client

package
v1.29.0-mobile.8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Provider
}

func New

func New(provider Provider) (*Client, error)

func (*Client) Create

func (c *Client) Create(ctx context.Context, userID string, create *blob.Create) (*blob.Blob, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string) (*blob.Blob, error)

func (*Client) GetContent

func (c *Client) GetContent(ctx context.Context, id string) (*blob.Content, error)

func (*Client) List

func (c *Client) List(ctx context.Context, userID string, filter *blob.Filter, pagination *page.Pagination) (blob.Blobs, error)

type Provider

type Provider interface {
	AuthClient() auth.Client
	BlobStructuredStore() blobStoreStructured.Store
	BlobUnstructuredStore() blobStoreUnstructured.Store
}

type SizeWriter

type SizeWriter struct {
	Size int
}

func NewSizeWriter

func NewSizeWriter() *SizeWriter

func (*SizeWriter) Write

func (s *SizeWriter) Write(bytes []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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