local

package
v0.0.0-...-bb5f746 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 NewBucket

func NewBucket(name string) *Bucket

func (*Bucket) Chmod

func (b *Bucket) Chmod(_ context.Context, name string, mode os.FileMode) error

func (*Bucket) Copy

func (b *Bucket) Copy(ctx context.Context, from bucketly.Item, to string, opts ...bucketly.CopyOption) error

func (*Bucket) Copy2

func (b *Bucket) Copy2(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error

func (*Bucket) CopyAll

func (b *Bucket) CopyAll(ctx context.Context, from bucketly.Item, to string, opts ...bucketly.CopyOption) error

func (*Bucket) CopyAll2

func (b *Bucket) CopyAll2(ctx context.Context, from string, to string, opts ...bucketly.CopyOption) error

func (*Bucket) Exists

func (b *Bucket) Exists(ctx context.Context, name string) (bool, error)

func (*Bucket) Items

func (b *Bucket) Items(name string) (bucketly.ListIterator, error)

func (*Bucket) Mkdir

func (b *Bucket) Mkdir(ctx context.Context, name string, opts ...bucketly.WriteOption) error

func (*Bucket) MkdirAll

func (b *Bucket) MkdirAll(_ context.Context, name string, opts ...bucketly.WriteOption) error

func (*Bucket) Name

func (b *Bucket) Name() string

func (*Bucket) NewReader

func (b *Bucket) NewReader(ctx context.Context, name string) (io.ReadCloser, error)

func (*Bucket) NewWriter

func (b *Bucket) NewWriter(_ context.Context, name string, opts ...bucketly.WriteOption) (io.WriteCloser, error)

func (*Bucket) PathSeparator

func (b *Bucket) PathSeparator() rune

func (*Bucket) Read

func (b *Bucket) Read(ctx context.Context, name string) ([]byte, error)

func (*Bucket) Remove

func (b *Bucket) Remove(_ context.Context, name string) error

func (*Bucket) RemoveAll

func (b *Bucket) RemoveAll(_ context.Context, name string) error

func (*Bucket) Rename

func (b *Bucket) Rename(_ context.Context, from string, to string, opts ...bucketly.CopyOption) error

func (*Bucket) Stat

func (b *Bucket) Stat(_ context.Context, name string) (bucketly.Item, error)

func (*Bucket) Walk

func (b *Bucket) Walk(_ context.Context, dir string, walkFunc bucketly.WalkFunc) error

func (*Bucket) Write

func (b *Bucket) Write(ctx context.Context, name string, data []byte, opts ...bucketly.WriteOption) (int, error)

type BucketManager

type BucketManager struct {
	// contains filtered or unexported fields
}

func NewBucketManager

func NewBucketManager(bucket *Bucket) *BucketManager

func (*BucketManager) Clean

func (m *BucketManager) Clean(_ context.Context) error

func (*BucketManager) Create

func (m *BucketManager) Create(_ context.Context) error

func (*BucketManager) Remove

func (m *BucketManager) Remove(_ context.Context) error

Jump to

Keyboard shortcuts

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