Documentation ¶
Index ¶
- Constants
- Variables
- func IsValidType(s string) bool
- func ParseFTP(uri string) (string, string, string, string, error)
- type Config
- type FTPProvider
- func (v *FTPProvider) Check() error
- func (v *FTPProvider) Code() string
- func (v *FTPProvider) DeleteFile(filename string) error
- func (v *FTPProvider) GetFile(filename string, ctx web.Context)
- func (v *FTPProvider) Name() string
- func (v *FTPProvider) SaveFile(filename string, r io.ReadCloser) (string, error)
- type Item
- type LocalProvider
- func (v *LocalProvider) Check() error
- func (v *LocalProvider) Code() string
- func (v *LocalProvider) DeleteFile(filename string) error
- func (v *LocalProvider) GetFile(filename string, ctx web.Context)
- func (v *LocalProvider) Name() string
- func (v *LocalProvider) SaveFile(filename string, r io.ReadCloser) (string, error)
- type Provider
- type Providers
Constants ¶
View Source
const ( TypeLocal = "local" TypeFTP = "ftp" )
Variables ¶
View Source
var Plugin = plugins.Plugin{ Config: &Config{}, Inject: New, }
Functions ¶
func IsValidType ¶
Types ¶
type FTPProvider ¶
type FTPProvider struct {
// contains filtered or unexported fields
}
func NewFTPProvider ¶
func NewFTPProvider(ctx context.Context, c Item) *FTPProvider
func (*FTPProvider) Check ¶
func (v *FTPProvider) Check() error
func (*FTPProvider) Code ¶
func (v *FTPProvider) Code() string
func (*FTPProvider) DeleteFile ¶
func (v *FTPProvider) DeleteFile(filename string) error
func (*FTPProvider) Name ¶
func (v *FTPProvider) Name() string
func (*FTPProvider) SaveFile ¶
func (v *FTPProvider) SaveFile(filename string, r io.ReadCloser) (string, error)
type LocalProvider ¶
type LocalProvider struct {
// contains filtered or unexported fields
}
func NewLocalProvider ¶
func NewLocalProvider(ctx context.Context, c Item) *LocalProvider
func (*LocalProvider) Check ¶
func (v *LocalProvider) Check() error
func (*LocalProvider) Code ¶
func (v *LocalProvider) Code() string
func (*LocalProvider) DeleteFile ¶
func (v *LocalProvider) DeleteFile(filename string) error
func (*LocalProvider) Name ¶
func (v *LocalProvider) Name() string
func (*LocalProvider) SaveFile ¶
func (v *LocalProvider) SaveFile(filename string, r io.ReadCloser) (string, error)
Click to show internal directories.
Click to hide internal directories.