Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateAll ¶
func UpdateAll(ctx *job.WorkerContext, opts *Options) error
UpdateAll starts the auto-updates process for all instances. The slugs parameters can be used optionnaly to filter (allowlist) the applications' slug to update.
func UpdateInstance ¶
UpdateInstance starts the auto-update process on the given instance. The slugs parameters can be used to filter (allowlist) the applications' slug
func Worker ¶
func Worker(ctx *job.WorkerContext) error
Worker is the worker method to launch the updates.
Types ¶
type Options ¶
type Options struct { Slugs []string `json:"slugs,omitempty"` Domain string `json:"domain,omitempty"` DomainsWithContext string `json:"domains_with_context,omitempty"` AllDomains bool `json:"all_domains"` Force bool `json:"force"` ForceRegistry bool `json:"force_registry"` OnlyRegistry bool `json:"only_registry"` }
Options is the option handler for updates:
- Slugs: allow to filter the application's slugs to update, if empty, all applications are updated
- Force: forces the update, even if the user has not activated the auto- update
- ForceRegistry: translates the git:// sourced application into registry://
Click to show internal directories.
Click to hide internal directories.