filesystem

package module
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BasePath string
}

func (Config) DriverName

func (c Config) DriverName() string

type Store

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

func NewStore

func NewStore(config Config) (*Store, error)

func (*Store) CleanUp

func (s *Store) CleanUp() error

func (*Store) CopyObject

func (s *Store) CopyObject(src, dest string) error

func (*Store) CreateBucket

func (s *Store) CreateBucket(bucketName string) error

func (*Store) CreateObject

func (s *Store) CreateObject(name string, data io.Reader, contentType string) error

func (*Store) DeleteBucket

func (s *Store) DeleteBucket(bucketName string) error

func (*Store) DeleteObject

func (s *Store) DeleteObject(name string) error

func (*Store) Exists

func (s *Store) Exists(name string) (bool, *objex.ObjectMetaData, error)

func (*Store) HealthCheck

func (s *Store) HealthCheck() error

func (*Store) ListBuckets

func (s *Store) ListBuckets() ([]objex.Bucket, error)

func (*Store) ListObjects

func (s *Store) ListObjects(bucket string) ([]*objex.ObjectMetaData, error)

func (*Store) Metadata

func (s *Store) Metadata(name string) (*objex.ObjectMetaData, error)

func (*Store) MoveObject

func (s *Store) MoveObject(src, dest string) error

func (*Store) ReadObject

func (s *Store) ReadObject(name string) ([]byte, error)

func (*Store) SetBucket

func (s *Store) SetBucket(bucketName string) (bool, error)

func (*Store) SetRegion

func (s *Store) SetRegion(region string) error

func (*Store) Setup

func (s *Store) Setup() error

func (*Store) UpdateObject

func (s *Store) UpdateObject(name string, data io.Reader) error

Jump to

Keyboard shortcuts

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