mock

package
v0.0.0-...-6421233 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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) (*gisvs.Application, error)

func (*ApplicationService) Applications

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

func (*ApplicationService) Create

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) (gisvs.FileBlobStorage, error)

func (*ApplicationService) Update

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) (*gisvs.FileBlob, error)

func (*FileBlobStorage) Upload

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

type FileService

type FileService struct {
}

func (*FileService) ApplicationFiles

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

func (*FileService) Create

func (s *FileService) Create(ctx context.Context, n *gisvs.NewFile) (*gisvs.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) (*gisvs.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) (*gisvs.File, error)

func (*UploadService) Upload

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

Jump to

Keyboard shortcuts

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