client

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: 23 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, metadata *image.Metadata, contentIntent string, content *image.Content) (*image.Image, error)

func (*Client) CreateWithContent

func (c *Client) CreateWithContent(ctx context.Context, userID string, contentIntent string, content *image.Content) (*image.Image, error)

func (*Client) CreateWithMetadata

func (c *Client) CreateWithMetadata(ctx context.Context, userID string, metadata *image.Metadata) (*image.Image, error)

func (*Client) Delete

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

func (*Client) DeleteAll

func (c *Client) DeleteAll(ctx context.Context, userID string) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, id string) (*image.Image, error)

func (*Client) GetContent

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

func (*Client) GetMetadata

func (c *Client) GetMetadata(ctx context.Context, id string) (*image.Metadata, error)

func (*Client) GetRenditionContent

func (c *Client) GetRenditionContent(ctx context.Context, id string, rendition *image.Rendition) (*image.Content, error)

func (*Client) List

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

func (*Client) PutContent

func (c *Client) PutContent(ctx context.Context, id string, condition *request.Condition, contentIntent string, content *image.Content) (*image.Image, error)

func (*Client) PutMetadata

func (c *Client) PutMetadata(ctx context.Context, id string, condition *request.Condition, metadata *image.Metadata) (*image.Image, error)

type Provider

type Provider interface {
	AuthClient() auth.Client
	ImageStructuredStore() imageStoreStructured.Store
	ImageUnstructuredStore() imageStoreUnstructured.Store
	ImageTransformer() imageTransform.Transformer
}

type SizeWriter

type SizeWriter struct {
	Size int
}

func NewSizeWriter

func NewSizeWriter() *SizeWriter

func (*SizeWriter) Write

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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