Documentation
¶
Index ¶
- Constants
- func IsNotExist(err error) bool
- type Config
- type ConfigOption
- type Service
- func (s Service) Close() error
- func (s Service) ConvertError(err error) error
- func (s Service) Enabled() bool
- func (s Service) List(ctx context.Context, pathname string) ([]model.Item, error)
- func (s Service) Mkdir(ctx context.Context, pathname string) error
- func (s Service) Name() string
- func (s Service) Path(name string) string
- func (s Service) ReadFrom(ctx context.Context, pathname string) (model.ReadAtSeekCloser, error)
- func (s Service) RemoveAll(ctx context.Context, pathname string) error
- func (s Service) Rename(ctx context.Context, oldName, newName string) error
- func (s Service) Stat(ctx context.Context, pathname string) (model.Item, error)
- func (s Service) UpdateDate(_ context.Context, pathname string, _ time.Time) error
- func (s Service) Walk(ctx context.Context, pathname string, walkFn func(model.Item) error) error
- func (s Service) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage
- func (s 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 WithPrefix ¶ added in v1.8.0
func WithPrefix(prefix string) ConfigOption
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.