Documentation ¶
Index ¶
- func FileExists(filename string) bool
- func FolderExists(filename string) bool
- func IsNotFoundError(err error) bool
- type FileGetOptions
- type FilePutOptions
- type FileStatOptions
- type FileSystem
- type FolderCreateOptions
- type GitFs
- func (fs *GitFs) Commit(msg, name, email string) error
- func (fs *GitFs) FileExists(folder, name string) (bool, error)
- func (fs *GitFs) FileGet(folder, name string, opts FileGetOptions) ([]byte, error)
- func (fs *GitFs) FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error)
- func (fs *GitFs) FilePut(folder, name string, data []byte, opts FilePutOptions) error
- func (fs *GitFs) FileRead(folder, name string, w io.Writer, size int64, opts FileGetOptions) error
- func (fs *GitFs) FileStat(folder, name string, opts FileStatOptions) (os.FileInfo, error)
- func (fs *GitFs) FileWrite(folder, name string, r io.Reader, size int64, opts FilePutOptions) error
- func (fs *GitFs) FolderCreate(folder string, opts FolderCreateOptions) error
- func (fs *GitFs) FolderExists(folder string) (bool, error)
- func (fs *GitFs) Open() error
- func (fs *GitFs) String() string
- type LocalFs
- func (fs *LocalFs) FileExists(folder, name string) (bool, error)
- func (fs *LocalFs) FileGet(folder, name string, opts FileGetOptions) ([]byte, error)
- func (fs *LocalFs) FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error)
- func (fs *LocalFs) FilePut(folder, name string, data []byte, opts FilePutOptions) error
- func (fs *LocalFs) FileRead(folder, name string, w io.Writer, size int64, opts FileGetOptions) error
- func (fs *LocalFs) FileStat(folder, name string, opts FileStatOptions) (os.FileInfo, error)
- func (fs *LocalFs) FileWrite(folder, name string, r io.Reader, size int64, opts FilePutOptions) error
- func (fs *LocalFs) FolderCreate(folder string, opts FolderCreateOptions) error
- func (fs *LocalFs) FolderExists(folder string) (bool, error)
- func (fs *LocalFs) Protocol() string
- func (fs *LocalFs) String() string
- type NotFoundError
- type S3FileInfo
- type S3Fs
- func (fs *S3Fs) FileExists(folder, name string) (bool, error)
- func (fs *S3Fs) FileGet(folder, name string, opts FileGetOptions) ([]byte, error)
- func (fs *S3Fs) FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error)
- func (fs *S3Fs) FilePut(folder, name string, data []byte, opts FilePutOptions) error
- func (fs *S3Fs) FileRead(folder, name string, w io.Writer, size int64, opts FileGetOptions) error
- func (fs *S3Fs) FileStat(folder, name string, opts FileStatOptions) (os.FileInfo, error)
- func (fs *S3Fs) FileWrite(folder, name string, r io.Reader, size int64, opts FilePutOptions) error
- func (fs *S3Fs) FolderCreate(folder string, opts FolderCreateOptions) error
- func (fs *S3Fs) FolderExists(folder string) (bool, error)
- func (fs *S3Fs) Protocol() string
- func (fs *S3Fs) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func FolderExists ¶
func IsNotFoundError ¶
Types ¶
type FileGetOptions ¶
type FileGetOptions struct {
VersionID string
}
GetObjectOptions represents options specified by user for GetObject call
type FilePutOptions ¶
PutObjectOptions represents options specified by user for PutObject call
type FileStatOptions ¶
type FileStatOptions struct { }
type FileSystem ¶
type FileSystem interface { FolderExists(folder string) (bool, error) FolderCreate(folder string, opts FolderCreateOptions) error FileExists(folder, name string) (bool, error) FileGet(folder, name string, opts FileGetOptions) ([]byte, error) FilePut(folder, name string, data []byte, opts FilePutOptions) error FileWrite(folder, name string, r io.Reader, size int64, opts FilePutOptions) error FileRead(folder, name string, w io.Writer, size int64, opts FileGetOptions) error FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error) FileStat(folder, name string, opts FileStatOptions) (os.FileInfo, error) String() string Protocol() string }
type FolderCreateOptions ¶
type FolderCreateOptions struct {
ObjectLocking bool
}
type GitFs ¶
type GitFs struct {
// contains filtered or unexported fields
}
func (*GitFs) FileGet ¶
func (fs *GitFs) FileGet(folder, name string, opts FileGetOptions) ([]byte, error)
func (*GitFs) FileOpenRead ¶
func (fs *GitFs) FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error)
func (*GitFs) FilePut ¶
func (fs *GitFs) FilePut(folder, name string, data []byte, opts FilePutOptions) error
func (*GitFs) FolderCreate ¶
func (fs *GitFs) FolderCreate(folder string, opts FolderCreateOptions) error
type LocalFs ¶
type LocalFs struct {
// contains filtered or unexported fields
}
func NewLocalFs ¶
func (*LocalFs) FileGet ¶
func (fs *LocalFs) FileGet(folder, name string, opts FileGetOptions) ([]byte, error)
func (*LocalFs) FileOpenRead ¶
func (fs *LocalFs) FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error)
func (*LocalFs) FilePut ¶
func (fs *LocalFs) FilePut(folder, name string, data []byte, opts FilePutOptions) error
func (*LocalFs) FolderCreate ¶
func (fs *LocalFs) FolderCreate(folder string, opts FolderCreateOptions) error
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func (*NotFoundError) Error ¶
func (nf *NotFoundError) Error() string
type S3FileInfo ¶
type S3FileInfo struct {
// contains filtered or unexported fields
}
A FileInfo describes a file and is returned by Stat and Lstat.
func NewS3FileInfo ¶
func NewS3FileInfo(bucket, name string, info minio.ObjectInfo) *S3FileInfo
func (*S3FileInfo) IsDir ¶
func (sfi *S3FileInfo) IsDir() bool
func (*S3FileInfo) ModTime ¶
func (sfi *S3FileInfo) ModTime() time.Time
func (*S3FileInfo) Mode ¶
func (sfi *S3FileInfo) Mode() os.FileMode
func (*S3FileInfo) Name ¶
func (sfi *S3FileInfo) Name() string
func (*S3FileInfo) Size ¶
func (sfi *S3FileInfo) Size() int64
func (*S3FileInfo) Sys ¶
func (sfi *S3FileInfo) Sys() interface{}
type S3Fs ¶
type S3Fs struct {
// contains filtered or unexported fields
}
func (*S3Fs) FileGet ¶
func (fs *S3Fs) FileGet(folder, name string, opts FileGetOptions) ([]byte, error)
func (*S3Fs) FileOpenRead ¶
func (fs *S3Fs) FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error)
func (*S3Fs) FilePut ¶
func (fs *S3Fs) FilePut(folder, name string, data []byte, opts FilePutOptions) error
func (*S3Fs) FolderCreate ¶
func (fs *S3Fs) FolderCreate(folder string, opts FolderCreateOptions) error
Click to show internal directories.
Click to hide internal directories.