Documentation
¶
Index ¶
- Constants
- func IsNotExist(err error) bool
- type Config
- type ConfigOption
- type Service
- func (a Service) ConvertError(err error) error
- func (a Service) Enabled() bool
- func (a Service) List(ctx context.Context, pathname string) ([]model.Item, error)
- func (a Service) Mkdir(ctx context.Context, name string, _ os.FileMode) error
- func (a Service) Name() string
- func (a Service) Path(pathname string) string
- func (a Service) ReadFrom(ctx context.Context, pathname string) (model.ReadAtSeekCloser, error)
- func (a Service) RemoveAll(ctx context.Context, name string) error
- func (a Service) Rename(ctx context.Context, oldName, newName string) error
- func (a Service) Stat(ctx context.Context, pathname string) (model.Item, error)
- func (a Service) UpdateDate(_ context.Context, _ string, _ time.Time) error
- func (a Service) Walk(ctx context.Context, pathname string, walkFn func(model.Item) error) error
- func (a Service) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage
- func (a Service) WriteTo(ctx context.Context, pathname string, reader io.Reader, opts model.WriteOpts) error
Constants ¶
View Source
const Name = "object"
Variables ¶
This section is empty.
Functions ¶
func IsNotExist ¶ added in v1.4.0
Types ¶
type ConfigOption ¶ added in v1.1.0
func WithRegion ¶ added in v1.1.0
func WithRegion(region string) ConfigOption
func WithStorageClass ¶ added in v1.1.0
func WithStorageClass(storageClass string) ConfigOption
type Service ¶ added in v1.7.1
type Service struct {
// contains filtered or unexported fields
}
func (Service) ConvertError ¶ added in v1.7.1
func (Service) UpdateDate ¶ added in v1.7.1
func (Service) WithIgnoreFn ¶ added in v1.7.1
Click to show internal directories.
Click to hide internal directories.