Documentation ¶
Index ¶
- type S3ClientDriver
- func (s *S3ClientDriver) CanAllocate(cc server.ClientContext, size int) (bool, error)
- func (s *S3ClientDriver) ChangeDirectory(cc server.ClientContext, directory string) error
- func (s *S3ClientDriver) ChmodFile(cc server.ClientContext, path string, mode os.FileMode) error
- func (s *S3ClientDriver) DeleteFile(cc server.ClientContext, path string) error
- func (s *S3ClientDriver) GetFileInfo(cc server.ClientContext, path string) (os.FileInfo, error)
- func (s *S3ClientDriver) ListFiles(cc server.ClientContext) ([]os.FileInfo, error)
- func (s *S3ClientDriver) MakeDirectory(cc server.ClientContext, directory string) error
- func (s *S3ClientDriver) OpenFile(cc server.ClientContext, path string, flag int) (server.FileStream, error)
- func (s *S3ClientDriver) RenameFile(cc server.ClientContext, from, to string) error
- type S3Driver
- func (s *S3Driver) AuthUser(cc server.ClientContext, user, pass string) (server.ClientHandlingDriver, error)
- func (s *S3Driver) GetSettings() *server.Settings
- func (s *S3Driver) GetTLSConfig() (*tls.Config, error)
- func (s *S3Driver) UserLeft(cc server.ClientContext)
- func (s *S3Driver) WelcomeUser(cc server.ClientContext) (string, error)
- type S3File
- type S3FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3ClientDriver ¶
type S3ClientDriver struct {
// contains filtered or unexported fields
}
func (*S3ClientDriver) CanAllocate ¶
func (s *S3ClientDriver) CanAllocate(cc server.ClientContext, size int) (bool, error)
func (*S3ClientDriver) ChangeDirectory ¶
func (s *S3ClientDriver) ChangeDirectory(cc server.ClientContext, directory string) error
func (*S3ClientDriver) ChmodFile ¶
func (s *S3ClientDriver) ChmodFile(cc server.ClientContext, path string, mode os.FileMode) error
func (*S3ClientDriver) DeleteFile ¶
func (s *S3ClientDriver) DeleteFile(cc server.ClientContext, path string) error
func (*S3ClientDriver) GetFileInfo ¶
func (s *S3ClientDriver) GetFileInfo(cc server.ClientContext, path string) (os.FileInfo, error)
func (*S3ClientDriver) ListFiles ¶
func (s *S3ClientDriver) ListFiles(cc server.ClientContext) ([]os.FileInfo, error)
func (*S3ClientDriver) MakeDirectory ¶
func (s *S3ClientDriver) MakeDirectory(cc server.ClientContext, directory string) error
func (*S3ClientDriver) OpenFile ¶
func (s *S3ClientDriver) OpenFile(cc server.ClientContext, path string, flag int) (server.FileStream, error)
func (*S3ClientDriver) RenameFile ¶
func (s *S3ClientDriver) RenameFile(cc server.ClientContext, from, to string) error
type S3Driver ¶
type S3Driver struct {
// contains filtered or unexported fields
}
func NewS3Driver ¶
func (*S3Driver) AuthUser ¶
func (s *S3Driver) AuthUser(cc server.ClientContext, user, pass string) (server.ClientHandlingDriver, error)
func (*S3Driver) GetSettings ¶
func (*S3Driver) UserLeft ¶
func (s *S3Driver) UserLeft(cc server.ClientContext)
func (*S3Driver) WelcomeUser ¶
func (s *S3Driver) WelcomeUser(cc server.ClientContext) (string, error)
type S3FileInfo ¶
type S3FileInfo struct {
// contains filtered or unexported fields
}
func NewS3FileInfo ¶
func NewS3FileInfo(name string, size int64, lastModified time.Time) *S3FileInfo
func (*S3FileInfo) IsDir ¶
func (s *S3FileInfo) IsDir() bool
func (*S3FileInfo) ModTime ¶
func (s *S3FileInfo) ModTime() time.Time
func (*S3FileInfo) Mode ¶
func (s *S3FileInfo) Mode() os.FileMode
func (*S3FileInfo) Name ¶
func (s *S3FileInfo) Name() string
func (*S3FileInfo) Size ¶
func (s *S3FileInfo) Size() int64
func (*S3FileInfo) Sys ¶
func (s *S3FileInfo) Sys() interface{}
Click to show internal directories.
Click to hide internal directories.