service

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: BSD-2-Clause Imports: 26 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 {
	ClientProvider
}

func NewClient

func NewClient(clientProvider ClientProvider) (*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) (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 ClientProvider

type ClientProvider interface {
	BlobStructuredStore() blobStoreStructured.Store
	BlobUnstructuredStore() blobStoreUnstructured.Store
	UserClient() user.Client
}

type Service

type Service struct {
	*serviceService.Authenticated
	// contains filtered or unexported fields
}

func New

func New() *Service

func (*Service) BlobClient

func (s *Service) BlobClient() blob.Client

func (*Service) BlobStructuredStore

func (s *Service) BlobStructuredStore() blobStoreStructured.Store

func (*Service) BlobUnstructuredStore

func (s *Service) BlobUnstructuredStore() blobStoreUnstructured.Store

func (*Service) Initialize

func (s *Service) Initialize(provider application.Provider) error

func (*Service) Status

func (s *Service) Status() interface{}

func (*Service) Terminate

func (s *Service) Terminate()

func (*Service) UserClient

func (s *Service) UserClient() user.Client

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
api
v1

Jump to

Keyboard shortcuts

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