Documentation
¶
Index ¶
- type Authentication
- type Config
- type Saver
- func (s *Saver) Close() error
- func (s *Saver) Delete(p string) error
- func (s *Saver) DeleteAll(p string) error
- func (s *Saver) ListFiles(dirPath string) ([]string, error)
- func (s *Saver) Read(p string) (io.ReadCloser, error)
- func (s *Saver) Write(p string, src io.Reader, existIgnores ...bool) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication string
const ( Password Authentication = "password" PublicKey Authentication = "public_key" )
type Config ¶
type Config struct {
Host string `json:"host" yaml:"host" ini:"host"`
User string `json:"user" yaml:"user" ini:"user"`
Pwd string `json:"pwd" yaml:"pwd" ini:"pwd"`
Authentication Authentication `json:"authentication" yaml:"authentication" ini:"authentication"`
}
func (Config) GormDBDataType ¶
func (Config) GormDataType ¶
Click to show internal directories.
Click to hide internal directories.