Documentation
¶
Index ¶
- type Bucket
- func (b *Bucket) Chmod(ctx 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(ctx 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(ctx 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(ctx context.Context, name string) error
- func (b *Bucket) RemoveAll(ctx context.Context, name string) error
- func (b *Bucket) Rename(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error
- func (b *Bucket) Stat(ctx context.Context, name string) (bucketly.Item, error)
- func (b *Bucket) WaitUntilExists(ctx context.Context, name string) error
- func (b *Bucket) WaitUntilNotExists(ctx context.Context, name string) error
- func (b *Bucket) Walk(ctx context.Context, name string, walkFunc bucketly.WalkFunc) error
- func (b *Bucket) Write(ctx context.Context, name string, data []byte, opts ...bucketly.WriteOption) (int, error)
- type BucketManager
- type Config
- type Option
- func WithAccessKey(accessKeyID string) Option
- func WithEndpoint(endpoint string) Option
- func WithMaxRetry(maxRetries int) Option
- func WithRegion(region string) Option
- func WithSecretAccessKey(secretAccessKey string) Option
- func WithSession(sess *session.Session) Option
- func WithSessionToken(sessionToken string) Option
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(ctx context.Context, name string, opts ...bucketly.WriteOption) (io.WriteCloser, error)
func (*Bucket) PathSeparator ¶
func (*Bucket) WaitUntilExists ¶
func (*Bucket) WaitUntilNotExists ¶
type BucketManager ¶
type BucketManager struct {
// contains filtered or unexported fields
}
func NewBucketManager ¶
func NewBucketManager(bucket *Bucket) *BucketManager
type Option ¶
type Option func(cfg *Config)
func WithAccessKey ¶
func WithEndpoint ¶
func WithMaxRetry ¶
func WithRegion ¶
func WithSecretAccessKey ¶
func WithSession ¶
func WithSessionToken ¶
Click to show internal directories.
Click to hide internal directories.