mock

package
v0.0.0-...-bd0efcb Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TestID = "7c63f04d-6d6d-4d9b-851c-cdd05d406b21"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationService

type ApplicationService struct {
}

func (*ApplicationService) Application

func (s *ApplicationService) Application(ctx context.Context, id string) (*baas.Application, error)

func (*ApplicationService) Applications

func (s *ApplicationService) Applications(ctx context.Context, sinceID string, limit int) ([]*baas.Application, error)

func (*ApplicationService) Create

func (s *ApplicationService) Create(ctx context.Context, n *baas.NewApplication) (*baas.Application, error)

func (*ApplicationService) Delete

func (s *ApplicationService) Delete(ctx context.Context, id string) error

func (*ApplicationService) FileBlobStorage

func (s *ApplicationService) FileBlobStorage(engine, accessKey, secretKey, region, endpoint string) (baas.FileBlobStorage, error)

func (*ApplicationService) Update

func (s *ApplicationService) Update(ctx context.Context, u *baas.UpdateApplication) (*baas.Application, error)

type FileBlobStorage

type FileBlobStorage struct {
}

func (*FileBlobStorage) CreateBucket

func (s *FileBlobStorage) CreateBucket(ctx context.Context, bucket string) error

func (*FileBlobStorage) FileBlob

func (s *FileBlobStorage) FileBlob(ctx context.Context, bucket, id, tempDir string) (*baas.FileBlob, error)

func (*FileBlobStorage) Upload

func (s *FileBlobStorage) Upload(ctx context.Context, bucket string, blob *baas.FileBlob) error

type FileService

type FileService struct {
}

func (*FileService) ApplicationFiles

func (s *FileService) ApplicationFiles(ctx context.Context, appID, sinceID string, limit int) ([]*baas.File, error)

func (*FileService) Create

func (s *FileService) Create(ctx context.Context, n *baas.NewFile) (*baas.File, error)

func (*FileService) Delete

func (s *FileService) Delete(ctx context.Context, id string) error

func (*FileService) File

func (s *FileService) File(ctx context.Context, id string) (*baas.File, error)

type FileStorage

type FileStorage struct {
}

type UploadService

type UploadService struct {
}

func (*UploadService) ChunkUpload

func (s *UploadService) ChunkUpload(ctx context.Context, r *multipart.Reader) error

func (*UploadService) CompleteChunkUpload

func (s *UploadService) CompleteChunkUpload(ctx context.Context, appID, uploadID, filename string) (*baas.File, error)

func (*UploadService) Upload

func (s *UploadService) Upload(ctx context.Context, r *multipart.Reader) (*baas.File, error)

Jump to

Keyboard shortcuts

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