Documentation
¶
Index ¶
- type Bucket
- func (b *Bucket) Chmod(_ context.Context, name string, mode os.FileMode) error
- func (b *Bucket) Copy(ctx context.Context, from bucketly.Item, to string, ...) error
- func (b *Bucket) Copy2(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error
- func (b *Bucket) CopyAll(ctx context.Context, from bucketly.Item, to string, ...) error
- func (b *Bucket) CopyAll2(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error
- func (b *Bucket) Exists(ctx context.Context, name string) (bool, error)
- func (b *Bucket) Items(name string) (bucketly.ListIterator, error)
- func (b *Bucket) Mkdir(ctx context.Context, name string, opts ...bucketly.WriteOption) error
- func (b *Bucket) MkdirAll(_ context.Context, name string, opts ...bucketly.WriteOption) error
- func (b *Bucket) Name() string
- func (b *Bucket) NewReader(ctx context.Context, name string) (io.ReadCloser, error)
- func (b *Bucket) NewWriter(_ context.Context, name string, opts ...bucketly.WriteOption) (io.WriteCloser, error)
- func (b *Bucket) PathSeparator() rune
- func (b *Bucket) Read(ctx context.Context, name string) ([]byte, error)
- func (b *Bucket) Remove(_ context.Context, name string) error
- func (b *Bucket) RemoveAll(_ context.Context, name string) error
- func (b *Bucket) Rename(_ context.Context, from string, to string, opts ...bucketly.CopyOption) error
- func (b *Bucket) Stat(_ context.Context, name string) (bucketly.Item, error)
- func (b *Bucket) Walk(_ context.Context, dir string, walkFunc bucketly.WalkFunc) error
- func (b *Bucket) Write(ctx context.Context, name string, data []byte, opts ...bucketly.WriteOption) (int, error)
- type BucketManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func (*Bucket) NewWriter ¶
func (b *Bucket) NewWriter(_ context.Context, name string, opts ...bucketly.WriteOption) (io.WriteCloser, error)
func (*Bucket) PathSeparator ¶
type BucketManager ¶
type BucketManager struct {
// contains filtered or unexported fields
}
func NewBucketManager ¶
func NewBucketManager(bucket *Bucket) *BucketManager
Click to show internal directories.
Click to hide internal directories.