buildtasks3

package
v0.0.0-...-ab31c2f Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

func NewStorage(connectionString string) *Storage

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 (s *Storage) DownloadDirV2(ctx context.Context, prefix string) (*multipart.Reader, error)

func (*Storage) DownloadFileV2

func (*Storage) DownloadFiles

func (s *Storage) DownloadFiles(ctx context.Context, params *buildtask.StorageDownloadFilesParams) error

DownloadFiles implements buildtask.Storage.

func (*Storage) UploadDirV2

func (*Storage) UploadFileV2

func (s *Storage) UploadFileV2(ctx context.Context, key string, r io.Reader) error

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{}

Jump to

Keyboard shortcuts

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