Documentation ¶
Index ¶
- type LocalDeployer
- func (d LocalDeployer) CreateAgentUnit(command string) []byte
- func (d LocalDeployer) DaemonStatus(daemon string, stdout, stderr io.Writer) error
- func (d LocalDeployer) InstallBinary(path string) (string, error)
- func (d LocalDeployer) InstallPackages(packages []string, stdout, stderr io.Writer) error
- func (d LocalDeployer) Link(srcpath, dstpath string) error
- func (d LocalDeployer) RestartDaemon(daemon string, stdout, stderr io.Writer) error
- func (d LocalDeployer) SaveFile(body []byte, path string, permission os.FileMode) error
- func (d LocalDeployer) SetSysctl(key string, value []byte) error
- func (d LocalDeployer) StopDaemon(daemon string, stdout, stderr io.Writer) error
- type RemoteDeployer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalDeployer ¶
type LocalDeployer struct {
// contains filtered or unexported fields
}
func NewLocalDeployer ¶
func NewLocalDeployer(target string) (*LocalDeployer, error)
func (LocalDeployer) CreateAgentUnit ¶
func (d LocalDeployer) CreateAgentUnit(command string) []byte
func (LocalDeployer) DaemonStatus ¶
func (d LocalDeployer) DaemonStatus(daemon string, stdout, stderr io.Writer) error
func (LocalDeployer) InstallBinary ¶
func (d LocalDeployer) InstallBinary(path string) (string, error)
func (LocalDeployer) InstallPackages ¶
func (d LocalDeployer) InstallPackages(packages []string, stdout, stderr io.Writer) error
func (LocalDeployer) Link ¶
func (d LocalDeployer) Link(srcpath, dstpath string) error
func (LocalDeployer) RestartDaemon ¶
func (d LocalDeployer) RestartDaemon(daemon string, stdout, stderr io.Writer) error
func (LocalDeployer) StopDaemon ¶
func (d LocalDeployer) StopDaemon(daemon string, stdout, stderr io.Writer) error
type RemoteDeployer ¶
type RemoteDeployer struct {
// contains filtered or unexported fields
}
func NewRemoteDeployer ¶
func NewRemoteDeployer(s *ssh.Client, target string) (*RemoteDeployer, error)
func (*RemoteDeployer) CheckPriv ¶
func (d *RemoteDeployer) CheckPriv() error
func (RemoteDeployer) Command ¶
func (d RemoteDeployer) Command(command string, stdout, stderr io.Writer) error
func (RemoteDeployer) ReadSelf ¶
func (d RemoteDeployer) ReadSelf() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.