Documentation
¶
Index ¶
- func CancelPendingUpdate(ctx context.Context, cfg *config.Config, opts *UpdateOptions) error
- func Daemon(ctx context.Context, cfg *config.Config, opts *UpdateOptions)
- func FillAndCheckAppsList(updateContext *UpdateContext) error
- func FillAppsList(updateContext *UpdateContext) error
- func GenAndSaveEvent(updateContext *UpdateContext, eventType events.EventTypeValue, details string, ...) error
- func GetAppsUris(target *metadata.TargetFiles) ([]string, error)
- func GetPendingUpdate(updateContext *UpdateContext) error
- func GetTargetToInstall(updateContext *UpdateContext, cfg *config.Config, targetList target.Targets, ...) error
- func GetVersion(target *metadata.TargetFiles) (int, error)
- func InitUpdate(updateContext *UpdateContext) error
- func InitializeDatabase(dbFilePath string) error
- func InstallTarget(updateContext *UpdateContext) error
- func IsTargetRunning(updateContext *UpdateContext) (bool, error)
- func PerformUpdate(updateContext *UpdateContext) (bool, error)
- func PullTarget(updateContext *UpdateContext) error
- func ReportAppsStates(config *sotatoml.AppConfig, client *client.GatewayClient, ...) error
- func StartTarget(updateContext *UpdateContext) (bool, error)
- func Update(ctx context.Context, cfg *config.Config, opts *UpdateOptions) error
- type AppServiceState
- type AppState
- type AppsState
- type UpdateContext
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelPendingUpdate ¶
func FillAndCheckAppsList ¶
func FillAndCheckAppsList(updateContext *UpdateContext) error
func FillAppsList ¶
func FillAppsList(updateContext *UpdateContext) error
func GenAndSaveEvent ¶
func GenAndSaveEvent(updateContext *UpdateContext, eventType events.EventTypeValue, details string, success *bool) error
func GetAppsUris ¶
func GetAppsUris(target *metadata.TargetFiles) ([]string, error)
func GetPendingUpdate ¶
func GetPendingUpdate(updateContext *UpdateContext) error
func GetTargetToInstall ¶
func GetTargetToInstall(updateContext *UpdateContext, cfg *config.Config, targetList target.Targets, targetId string) error
Returns information about the apps to install and to remove, as long as the corresponding target No update operation is performed at this point. Not even apps stopping
func GetVersion ¶
func GetVersion(target *metadata.TargetFiles) (int, error)
func InitUpdate ¶
func InitUpdate(updateContext *UpdateContext) error
func InitializeDatabase ¶
func InstallTarget ¶
func InstallTarget(updateContext *UpdateContext) error
func IsTargetRunning ¶
func IsTargetRunning(updateContext *UpdateContext) (bool, error)
func PerformUpdate ¶
func PerformUpdate(updateContext *UpdateContext) (bool, error)
func PullTarget ¶
func PullTarget(updateContext *UpdateContext) error
func ReportAppsStates ¶
func ReportAppsStates(config *sotatoml.AppConfig, client *client.GatewayClient, updateContext *UpdateContext) error
func StartTarget ¶
func StartTarget(updateContext *UpdateContext) (bool, error)
Types ¶
type AppServiceState ¶
type AppState ¶
type AppState struct {
Services []AppServiceState `json:"services"`
State string `json:"state"`
Uri string `json:"uri"`
}
type UpdateContext ¶
type UpdateContext struct {
DbFilePath string
Target target.Target
CurrentTarget target.Target
Reason string
RequiredApps []string
AppsToUninstall []string
InstalledApps []string
InstalledAppsNames []string
ConfiguredAppNames []string
TargetIsRunning bool
Context context.Context
ComposeConfig *compose.Config
Runner update.Runner
PendingRunner update.Runner
PendingTargetName string
PendingApps []string
Resuming bool
// contains filtered or unexported fields
}
Atributes of the UpdateContext instance are gradually set during the update process
Click to show internal directories.
Click to hide internal directories.