Versions in this module Expand all Collapse all v0 v0.4.0 Apr 24, 2023 v0.3.0 Apr 21, 2023 v0.2.0 Apr 7, 2023 v0.1.0 Apr 4, 2023 Changes in this version + var ErrNotRegularFile = errors.New("file type is not regular") + func CopyHeader(h *tar.Header) *tar.Header + type Path struct + func ParseArchiveURL(path string) (*Path, error) + func ParseURL(path string) (*Path, error) + func (p *Path) Bucket() string + func (p *Path) Dup(bucket string) *Path + func (p *Path) Filename() string + func (p *Path) Object() string + func (p *Path) Reader(ctx context.Context, client *storage.Client) (*storage.Reader, error) + func (p *Path) Writer(ctx context.Context, client *storage.Client) *storage.Writer + type Source struct + Count int + Path *Path + Size int + func NewFileSource(file string) (*Source, error) + func NewGCSSource(ctx context.Context, client *storage.Client, url string) (*Source, error) + func (s *Source) NextFile() (*tar.Header, []byte, error) + type Target struct + Count int + func NewTarget() *Target + func (ar *Target) AddFile(h *tar.Header, contents []byte) error + func (ar *Target) Close() error + func (ar *Target) Upload(ctx context.Context, client *storage.Client, p *Path) error