Documentation
¶
Index ¶
- Constants
- Variables
- func CompleteBuckets(u *url.URL) ([]string, cobra.ShellCompDirective)
- func CompleteObjects(u *url.URL, exts []string, dirOnly bool) ([]string, cobra.ShellCompDirective)
- func IsB2(path string) bool
- func IsB2Dir(path string) bool
- func IsCloud(path string) bool
- func IsCloudDir(path string) bool
- func IsGCS(path string) bool
- func IsGCSDir(path string) bool
- func IsS3(path string) bool
- func IsS3Dir(path string) bool
- type B2
- func (b *B2) GetObject(ctx context.Context, key string) (io.ReadCloser, error)
- func (b *B2) ListBuckets(ctx context.Context) iter.Seq2[*Bucket, error]
- func (b *B2) ListObjects(ctx context.Context, key string) iter.Seq2[*Object, error]
- func (b *B2) PutObject(ctx context.Context, r io.Reader, key string) error
- type Bucket
- type Client
- type GCS
- func (g *GCS) GetObject(ctx context.Context, key string) (io.ReadCloser, error)
- func (g *GCS) ListBuckets(ctx context.Context) iter.Seq2[*Bucket, error]
- func (g *GCS) ListObjects(ctx context.Context, key string) iter.Seq2[*Object, error]
- func (g *GCS) PutObject(ctx context.Context, r io.Reader, key string) error
- type Object
- type S3
- func (s *S3) GetObject(ctx context.Context, key string) (io.ReadCloser, error)
- func (s *S3) ListBuckets(ctx context.Context) iter.Seq2[*Bucket, error]
- func (s *S3) ListObjects(ctx context.Context, key string) iter.Seq2[*Object, error]
- func (s *S3) PutObject(ctx context.Context, r io.Reader, key string) error
Constants ¶
View Source
const B2Schema = "b2://"
View Source
const GCSSchema = "gs://"
View Source
const S3Schema = "s3://"
Variables ¶
View Source
var ErrUnknownPrefix = errors.New("unknown prefix")
Functions ¶
func CompleteBuckets ¶ added in v1.18.0
func CompleteBuckets(u *url.URL) ([]string, cobra.ShellCompDirective)
func CompleteObjects ¶ added in v1.18.0
func IsCloudDir ¶
Types ¶
type B2 ¶ added in v1.18.0
type B2 struct {
// contains filtered or unexported fields
}
func (*B2) ListBuckets ¶ added in v1.18.0
func (*B2) ListObjects ¶ added in v1.18.0
type Client ¶ added in v1.18.0
type GCS ¶ added in v1.18.0
type GCS struct {
// contains filtered or unexported fields
}
func (*GCS) ListBuckets ¶ added in v1.18.0
func (*GCS) ListObjects ¶ added in v1.18.0
type S3 ¶ added in v1.18.0
type S3 struct {
// contains filtered or unexported fields
}
func (*S3) ListBuckets ¶ added in v1.18.0
func (*S3) ListObjects ¶ added in v1.18.0
Click to show internal directories.
Click to hide internal directories.