updater

package
v0.0.0-...-c283e9f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemApps = []SystemApp{
	{
		Name: "discoverd",

		MinVersion: "v20151129.0",
	},
	{Name: "blobstore"},
	{Name: "taffy"},
	{Name: "router"},
	{Name: "gitreceive"},
	{Name: "tarreceive"},
	{Name: "controller"},
	{Name: "logaggregator"},
	{
		Name: "postgres",
		UpdateRelease: func(r *ct.Release) {
			r.Env["SIRENIA_PROCESS"] = "postgres"
		},
	},
	{Name: "status"},
	{Name: "slugbuilder", ImageOnly: true},
	{Name: "slugrunner", ImageOnly: true},
	{Name: "mariadb", Optional: true},
	{Name: "mongodb", Optional: true},
	{Name: "redis"},
}

Functions

This section is empty.

Types

type SystemApp

type SystemApp struct {
	Name          string
	MinVersion    string          // minimum version this updater binary is capable of updating
	ImageOnly     bool            // no application, just update the image
	UpdateRelease UpdateReleaseFn // function to migrate changes to release
	Optional      bool            // This system component is optional and may not be present
}

type UpdateReleaseFn

type UpdateReleaseFn func(r *ct.Release)

Jump to

Keyboard shortcuts

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