Documentation
¶
Index ¶
- type Storage
- func (s *Storage) DownloadDirV2(ctx context.Context, prefix string) (*multipart.Reader, error)
- func (s *Storage) DownloadFileV2(ctx context.Context, params *StorageDownloadFileV2Params) (*StorageDownloadFileV2Result, error)
- func (s *Storage) DownloadFiles(ctx context.Context, params *buildtask.StorageDownloadFilesParams) error
- func (s *Storage) UploadDirV2(ctx context.Context, params *StorageUploadDirV2Params) (*StorageUploadDirV2Result, error)
- func (s *Storage) UploadFileV2(ctx context.Context, key string, r io.Reader) error
- func (s *Storage) UploadFiles(ctx context.Context, params *buildtask.StorageUploadFilesParams) error
- type StorageDownloadFileV2Params
- type StorageDownloadFileV2Result
- type StorageUploadDirV2Params
- type StorageUploadDirV2Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
NewStorage creates a new Storage using the provided connection string. It panics if the connection string is not a valid URL.
func (*Storage) DownloadDirV2 ¶
func (*Storage) DownloadFileV2 ¶
func (s *Storage) DownloadFileV2(ctx context.Context, params *StorageDownloadFileV2Params) (*StorageDownloadFileV2Result, error)
func (*Storage) DownloadFiles ¶
func (s *Storage) DownloadFiles(ctx context.Context, params *buildtask.StorageDownloadFilesParams) error
DownloadFiles implements buildtask.Storage.
func (*Storage) UploadDirV2 ¶
func (s *Storage) UploadDirV2(ctx context.Context, params *StorageUploadDirV2Params) (*StorageUploadDirV2Result, error)
func (*Storage) UploadFileV2 ¶
func (*Storage) UploadFiles ¶
func (s *Storage) UploadFiles(ctx context.Context, params *buildtask.StorageUploadFilesParams) error
UploadFiles implements buildtask.Storage. FIXME: p.FileName() returns only the last component and is platform-dependent when we want the full path. TODO: consider the error related to manager.MaxUploadParts when handling uploader.Upload. FIXME: When UploadFiles fails, it should clean up the files it has possibly already uploaded.
type StorageDownloadFileV2Params ¶
type StorageDownloadFileV2Params struct{}
type StorageDownloadFileV2Result ¶
type StorageDownloadFileV2Result struct{}
type StorageUploadDirV2Params ¶
type StorageUploadDirV2Params struct{}
type StorageUploadDirV2Result ¶
type StorageUploadDirV2Result struct{}
Click to show internal directories.
Click to hide internal directories.