updates

package
v0.0.0-...-4b98c26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

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

func UpdateInstance(ctx *job.WorkerContext, inst *instance.Instance, opts *Options) error

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://

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL