Documentation ¶
Index ¶
- func New(c Config, service s3iface.S3API) (gost.Directory, error)
- func SetService(s s3iface.S3API)deprecated
- type Config
- type Directory
- func (d *Directory) Create() error
- func (d *Directory) Delete() error
- func (d *Directory) Directories() ([]gost.Directory, error)
- func (d *Directory) Directory(path string) gost.Directory
- func (d *Directory) Exists() bool
- func (d *Directory) File(path string) gost.File
- func (d *Directory) Files() ([]gost.File, error)
- func (d *Directory) GetPath() string
- func (d *Directory) Stat() (gost.FileInfo, error)
- func (d *Directory) String() string
- type File
- func (f *File) Close() error
- func (f *File) Copy(newName string) error
- func (f *File) CopyTo(dir gost.Directory, newName ...string) error
- func (f *File) Delete() error
- func (f *File) Directory() gost.Directory
- func (f *File) Exists() bool
- func (f *File) GetPath() string
- func (f *File) GetSignedUrl(ttl time.Duration) (string, error)
- func (f *File) Read(p []byte) (n int, err error)
- func (f *File) ReadString() (string, error)
- func (f *File) Stat() (gost.FileInfo, error)
- func (f *File) String() string
- func (f *File) Write(p []byte) (n int, err error)
- func (f *File) WriteString(s string) error
- type Filesystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetService
deprecated
Types ¶
type Directory ¶
type Directory struct { Path string Fs *Filesystem }
type File ¶
type File struct { Path string Fs *Filesystem // contains filtered or unexported fields }
func (*File) ReadString ¶
func (*File) WriteString ¶
type Filesystem ¶
Click to show internal directories.
Click to hide internal directories.