Documentation
¶
Index ¶
- func CopyClosures(src System, dest System, paths []string, extraArgs ...string) error
- type Command
- type CommandRunner
- type Filesystem
- type LocalFilesystem
- type LocalSystem
- type SFTPFilesystem
- type SSHSystem
- func (s *SSHSystem) Address() string
- func (s *SSHSystem) Close()
- func (s *SSHSystem) EnsureRemoteRootPassword(rootCmd string) error
- func (s *SSHSystem) FS() Filesystem
- func (s *SSHSystem) HasCommand(name string) bool
- func (s *SSHSystem) IsNixOS() bool
- func (s *SSHSystem) IsRemote() bool
- func (s *SSHSystem) Logger() logger.Logger
- func (s *SSHSystem) Run(cmd *Command) (int, error)
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
Name string
Args []string
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
Env map[string]string
}
func NewCommand ¶
type CommandRunner ¶
type Filesystem ¶
type LocalFilesystem ¶
type LocalFilesystem struct{}
type LocalSystem ¶
type LocalSystem struct {
// contains filtered or unexported fields
}
func NewLocalSystem ¶
func NewLocalSystem(logger logger.Logger) *LocalSystem
func (*LocalSystem) FS ¶
func (l *LocalSystem) FS() Filesystem
func (*LocalSystem) HasCommand ¶
func (l *LocalSystem) HasCommand(name string) bool
func (*LocalSystem) IsNixOS ¶
func (l *LocalSystem) IsNixOS() bool
func (*LocalSystem) IsRemote ¶
func (l *LocalSystem) IsRemote() bool
func (*LocalSystem) Logger ¶
func (l *LocalSystem) Logger() logger.Logger
type SFTPFilesystem ¶
type SFTPFilesystem struct {
// contains filtered or unexported fields
}
func NewSFTPFilesystem ¶
func NewSFTPFilesystem(client *sftp.Client) *SFTPFilesystem
type SSHSystem ¶
type SSHSystem struct {
// contains filtered or unexported fields
}
func (*SSHSystem) EnsureRemoteRootPassword ¶
func (*SSHSystem) FS ¶
func (s *SSHSystem) FS() Filesystem
func (*SSHSystem) HasCommand ¶
type System ¶
type System interface {
CommandRunner
IsNixOS() bool
IsRemote() bool
FS() Filesystem
}
Click to show internal directories.
Click to hide internal directories.