Documentation ¶
Index ¶
- type Backend
- func (db *Backend) BucketExists(name string) (exists bool, err error)
- func (db *Backend) Close() error
- func (db *Backend) CreateBucket(name string) error
- func (db *Backend) DeleteBucket(name string) error
- func (db *Backend) DeleteMulti(bucketName string, objects ...string) (result gofakes3.MultiDeleteResult, err error)
- func (db *Backend) DeleteObject(bucketName, objectName string) (result gofakes3.ObjectDeleteResult, rerr error)
- func (db *Backend) GetObject(bucketName, objectName string, rangeRequest *gofakes3.ObjectRangeRequest) (*gofakes3.Object, error)
- func (db *Backend) HeadObject(bucketName, objectName string) (*gofakes3.Object, error)
- func (db *Backend) ListBucket(name string, prefix *gofakes3.Prefix, page gofakes3.ListBucketPage) (*gofakes3.ObjectList, error)
- func (db *Backend) ListBuckets() ([]gofakes3.BucketInfo, error)
- func (db *Backend) PutObject(bucketName, objectName string, meta map[string]string, input io.Reader, ...) (result gofakes3.PutObjectResult, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (*Backend) BucketExists ¶
func (*Backend) CreateBucket ¶
func (*Backend) DeleteBucket ¶
func (*Backend) DeleteMulti ¶
func (*Backend) DeleteObject ¶
func (db *Backend) DeleteObject(bucketName, objectName string) (result gofakes3.ObjectDeleteResult, rerr error)
func (*Backend) HeadObject ¶
func (*Backend) ListBucket ¶
func (db *Backend) ListBucket(name string, prefix *gofakes3.Prefix, page gofakes3.ListBucketPage) (*gofakes3.ObjectList, error)
func (*Backend) ListBuckets ¶
func (db *Backend) ListBuckets() ([]gofakes3.BucketInfo, error)
type Option ¶
type Option func(b *Backend)
func WithTimeSource ¶
func WithTimeSource(timeSource gofakes3.TimeSource) Option
Click to show internal directories.
Click to hide internal directories.