Documentation
¶
Index ¶
- func ReadRemoteFile(path string, resultsCh chan<- RemoteFileContent) txman.Callback
- func WriteToRemoteFile(path string, data []byte) txman.Callback
- type App
- func (app *App) AppendVersion(version string) txman.Callback
- func (app *App) CreateConfig() error
- func (app *App) Deploy(ctx context.Context) error
- func (app *App) ExecProxy(ctx context.Context, execCmd string) (HostOutput, error)
- func (app *App) ExecProxyInteractive(ctx context.Context, execCmd string) error
- func (app *App) ExecService(ctx context.Context, execCmd string) (HostOutput, error)
- func (app *App) ExecServiceInteractive(ctx context.Context, execCmd string) error
- func (app *App) History(ctx context.Context, sortDir string) ([]HistoryEntry, error)
- func (app *App) LatestVersion() string
- func (app *App) LoadHistory(ctx context.Context) error
- func (app *App) ProxyLogs(ctx context.Context, follow bool, lines int, since string, grep string) error
- func (app *App) RebootProxy(ctx context.Context) error
- func (app *App) RegistryLogin(ctx context.Context) error
- func (app *App) RegistryLogout(ctx context.Context) error
- func (app *App) RestartService(ctx context.Context) error
- func (app *App) Rollback(ctx context.Context, version string) error
- func (app *App) ServiceLogs(ctx context.Context, follow bool, lines int, since string, grep string) error
- func (app *App) Setup(ctx context.Context) error
- func (app *App) ShowProxyInfo(ctx context.Context) (map[string]string, error)
- func (app *App) ShowServiceInfo(ctx context.Context) (map[string]string, error)
- func (app *App) StartProxy(ctx context.Context) error
- func (app *App) StartService(ctx context.Context) error
- func (app *App) StopProxy(ctx context.Context) error
- func (app *App) StopService(ctx context.Context) error
- type ByDateAsc
- type ByDateDesc
- type HistoryEntry
- type HostOutput
- type RemoteFileContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadRemoteFile ¶
func ReadRemoteFile(path string, resultsCh chan<- RemoteFileContent) txman.Callback
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) CreateConfig ¶
func (*App) ExecProxyInteractive ¶
func (*App) ExecService ¶
func (*App) ExecServiceInteractive ¶
func (*App) LatestVersion ¶
func (*App) ServiceLogs ¶
func (*App) Setup ¶
Setup should be safe to run multiple times without destructive opeations. For example, if a history file is present, it must not overwrite it.
func (*App) ShowProxyInfo ¶
func (*App) ShowServiceInfo ¶
type ByDateAsc ¶
type ByDateAsc []HistoryEntry
ByDateAsc is a helper type for History slice that implements sort.Interface
type ByDateDesc ¶
type ByDateDesc []HistoryEntry
ByDateDesc is a helper type for History slice that implements sort.Interface
func (ByDateDesc) Len ¶
func (a ByDateDesc) Len() int
func (ByDateDesc) Less ¶
func (a ByDateDesc) Less(i, j int) bool
func (ByDateDesc) Swap ¶
func (a ByDateDesc) Swap(i, j int)
type HistoryEntry ¶
type HostOutput ¶
type RemoteFileContent ¶
type RemoteFileContent struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.