Documentation ¶
Index ¶
- func NewFactory() location.Factory
- type Addr
- type Backend
- type Config
- type StdioConn
- func (s *StdioConn) Close() (err error)
- func (s *StdioConn) CloseAll() (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 NewFactory ¶
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)"` Remote string Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"` Timeout time.Duration `option:"timeout" help:"set a timeout limit to wait for rclone to establish a connection (default: 1m)"` }
Config contains all configuration necessary to start rclone.
func NewConfig ¶
func NewConfig() Config
NewConfig returns a new Config with the default values filled in.
func ParseConfig ¶
ParseConfig parses the string s and extracts the remote server URL.
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.