Documentation ¶
Index ¶
- func ParseConfig(s string) (interface{}, error)
- type Addr
- type Backend
- type Config
- type StdioConn
- func (s *StdioConn) Close() (err error)
- func (s *StdioConn) LocalAddr() net.Addr
- func (s *StdioConn) Read(p []byte) (int, error)
- func (s *StdioConn) RemoteAddr() net.Addr
- func (s *StdioConn) SetDeadline(t time.Time) error
- func (s *StdioConn) SetReadDeadline(t time.Time) error
- func (s *StdioConn) SetWriteDeadline(t time.Time) error
- func (s *StdioConn) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
ParseConfig parses the string s and extracts the remote server URL.
Types ¶
type Backend ¶
Backend is used to access data stored somewhere via rclone.
type Config ¶
type Config struct { Program string `option:"program" help:"path to rclone (default: rclone)"` Args string `option:"args" help:"arguments for running rclone (default: serve restic --stdio --b2-hard-delete --drive-use-trash=false)"` Remote string Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"` }
Config contains all configuration necessary to start rclone.
type StdioConn ¶
type StdioConn struct {
// contains filtered or unexported fields
}
StdioConn implements a net.Conn via stdin/stdout.
func (*StdioConn) SetDeadline ¶
SetDeadline sets the read/write deadline.
func (*StdioConn) SetReadDeadline ¶
SetReadDeadline sets the read/write deadline.
func (*StdioConn) SetWriteDeadline ¶
SetWriteDeadline sets the read/write deadline.
Click to show internal directories.
Click to hide internal directories.