Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandUpdater ¶
func NewCommandUpdater ¶
func NewCommandUpdater(name string, args ...string) *CommandUpdater
func (*CommandUpdater) Cmd ¶
func (c *CommandUpdater) Cmd() (cmd *exec.Cmd)
func (*CommandUpdater) Execute ¶
func (c *CommandUpdater) Execute(uc *UpdaterClient, payload common.ApUpgradePayload) (err error)
type NetUpdater ¶
type NetUpdater struct {
Addr string
}
func NewNetUpdater ¶
func NewNetUpdater(addr string) *NetUpdater
func (NetUpdater) Execute ¶
func (u NetUpdater) Execute(uc *UpdaterClient, payload common.ApUpgradePayload) (err error)
type Updater ¶
type Updater interface {
Execute(uc *UpdaterClient, payload common.ApUpgradePayload) (err error)
}
type UpdaterClient ¶
func NewUpdaterClient ¶
func NewUpdaterClient(session ssh.Session, name string) *UpdaterClient
func (*UpdaterClient) Err ¶
func (uc *UpdaterClient) Err(msg string)
func (*UpdaterClient) Log ¶
func (uc *UpdaterClient) Log(args ...interface{})
func (*UpdaterClient) Sync ¶
func (uc *UpdaterClient) Sync(payload common.ApUpgradePayload, w io.Writer, r io.Reader) (err error)
Click to show internal directories.
Click to hide internal directories.