internal

package
v0.0.0-...-004cd70 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: GPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllTags bool
View Source
var AllTagsFlag = &cli.BoolFlag{
	Name:        "all-tags, a",
	Usage:       "List all tags, not just upgrades",
	Destination: &AllTags,
}
View Source
var Chaos bool

Chaos engages chaos mode.

View Source
var ChaosFlag = &cli.BoolFlag{
	Name:        "chaos, C",
	Usage:       "Proceed with uncommitted recipes changes. Use with care!",
	Destination: &Chaos,
}

ChaosFlag turns on/off chaos functionality.

View Source
var Debug bool

Debug stores the variable from DebugFlag.

View Source
var DebugFlag = &cli.BoolFlag{
	Name:        "debug, d",
	Destination: &Debug,
	Usage:       "Show DEBUG messages",
}

DebugFlag turns on/off verbose logging down to the DEBUG level.

View Source
var Domain string
View Source
var DomainFlag = &cli.StringFlag{
	Name:        "domain, D",
	Value:       "",
	Usage:       "Choose a domain name",
	Destination: &Domain,
}
View Source
var DontWaitConverge bool
View Source
var DontWaitConvergeFlag = &cli.BoolFlag{
	Name:        "no-converge-checks, c",
	Usage:       "Don't wait for converge logic checks",
	Destination: &DontWaitConverge,
}
View Source
var Dry bool
View Source
var DryFlag = &cli.BoolFlag{
	Name:        "dry-run, r",
	Usage:       "Only reports changes that would be made",
	Destination: &Dry,
}
View Source
var Force bool

Force force functionality without asking.

View Source
var ForceFlag = &cli.BoolFlag{
	Name:        "force, f",
	Usage:       "Perform action without further prompt. Use with care!",
	Destination: &Force,
}

ForceFlag turns on/off force functionality.

View Source
var LocalCmd bool
View Source
var LocalCmdFlag = &cli.BoolFlag{
	Name:        "local, l",
	Usage:       "Run command locally",
	Destination: &LocalCmd,
}
View Source
var MachineReadable bool

MachineReadable stores the variable from MachineReadableFlag

View Source
var MachineReadableFlag = &cli.BoolFlag{
	Name:        "machine, m",
	Destination: &MachineReadable,
	Usage:       "Output in a machine-readable format (where supported)",
}

MachineReadableFlag turns on/off machine readable output where supported

View Source
var Major bool
View Source
var MajorFlag = &cli.BoolFlag{
	Name:        "major, x",
	Usage:       "Increase the major part of the version",
	Destination: &Major,
}
View Source
var Minor bool
View Source
var MinorFlag = &cli.BoolFlag{
	Name:        "minor, y",
	Usage:       "Increase the minor part of the version",
	Destination: &Minor,
}
View Source
var NewAppServer string
View Source
var NewAppServerFlag = &cli.StringFlag{
	Name:        "server, s",
	Value:       "",
	Usage:       "Show apps of a specific server",
	Destination: &NewAppServer,
}
View Source
var NoDomainChecks bool
View Source
var NoDomainChecksFlag = &cli.BoolFlag{
	Name:        "no-domain-checks, D",
	Usage:       "Disable app domain sanity checks",
	Destination: &NoDomainChecks,
}
View Source
var NoInput bool
View Source
var NoInputFlag = &cli.BoolFlag{
	Name:        "no-input, n",
	Usage:       "Toggle non-interactive mode",
	Destination: &NoInput,
}
View Source
var Offline bool

Offline stores the variable from OfflineFlag.

View Source
var OfflineFlag = &cli.BoolFlag{
	Name:        "offline, o",
	Destination: &Offline,
	Usage:       "Prefer offline & filesystem access when possible",
}

DebugFlag turns on/off offline mode.

View Source
var OnlyErrorFlag = &cli.BoolFlag{
	Name:        "errors, e",
	Usage:       "Only show errors",
	Destination: &OnlyErrors,
}
View Source
var OnlyErrors bool
View Source
var Pass bool

Pass stores the variable from PassFlag

View Source
var PassFlag = &cli.BoolFlag{
	Name:        "pass, p",
	Usage:       "Store the generated secrets in a local pass store",
	Destination: &Pass,
}

PassFlag turns on/off storing generated secrets in pass

View Source
var PassRemove bool

PassRemove stores the variable for PassRemoveFlag

View Source
var PassRemoveFlag = &cli.BoolFlag{
	Name:        "pass, p",
	Usage:       "Remove generated secrets from a local pass store",
	Destination: &PassRemove,
}

PassRemoveFlag turns on/off removing generated secrets from pass

View Source
var Patch bool
View Source
var PatchFlag = &cli.BoolFlag{
	Name:        "patch, z",
	Usage:       "Increase the patch part of the version",
	Destination: &Patch,
}
View Source
var Publish bool
View Source
var PublishFlag = &cli.BoolFlag{
	Name:        "publish, p",
	Usage:       "Publish changes to git.coopcloud.tech",
	Destination: &Publish,
}
View Source
var RC bool

RC signifies the latest release candidate

View Source
var RCFlag = &cli.BoolFlag{
	Name:        "rc, r",
	Destination: &RC,
	Usage:       "Install the latest release candidate",
}

RCFlag chooses the latest release candidate for install

View Source
var RemoteUser string
View Source
var RemoteUserFlag = &cli.StringFlag{
	Name:        "user, u",
	Value:       "",
	Usage:       "User to run command within a service context",
	Destination: &RemoteUser,
}
View Source
var Secrets bool

Secrets stores the variable from SecretsFlag

View Source
var SecretsFlag = &cli.BoolFlag{
	Name:        "secrets, S",
	Usage:       "Automatically generate secrets",
	Destination: &Secrets,
}

SecretsFlag turns on/off automatically generating secrets

View Source
var SinceLogs string
View Source
var SinceLogsFlag = &cli.StringFlag{
	Name:        "since, S",
	Value:       "",
	Usage:       "tail logs since YYYY-MM-DDTHH:MM:SSZ",
	Destination: &SinceLogs,
}
View Source
var SkipUpdates bool
View Source
var SkipUpdatesFlag = &cli.BoolFlag{
	Name:        "skip-updates, s",
	Usage:       "Skip updating recipe repositories",
	Destination: &SkipUpdates,
}
View Source
var StdErrOnly bool
View Source
var StdErrOnlyFlag = &cli.BoolFlag{
	Name:        "stderr, s",
	Usage:       "Only tail stderr",
	Destination: &StdErrOnly,
}
View Source
var Tty bool

Disable tty to run commands from script

View Source
var TtyFlag = &cli.BoolFlag{
	Name:        "tty, T",
	Usage:       "Disables TTY mode to run this command from a script.",
	Destination: &Tty,
}

TtyFlag turns on/off tty mode.

View Source
var Watch bool
View Source
var WatchFlag = &cli.BoolFlag{
	Name:        "watch, w",
	Usage:       "Watch status by polling repeatedly",
	Destination: &Watch,
}

Functions

func DeployOverview

func DeployOverview(app config.App, version, message string) error

DeployOverview shows a deployment overview

func EnsureCommand

func EnsureCommand(abraSh, recipeName, execCmd string) error

func GetBumpType

func GetBumpType() string

GetBumpType figures out which bump type is specified

func GetMainAppImage

func GetMainAppImage(recipe recipe.Recipe) (string, error)

GetMainAppImage retrieves the main 'app' image name

func GetReleaseNotes

func GetReleaseNotes(recipeName, version string) (string, error)

GetReleaseNotes prints release notes for a recipe version

func NewVersionOverview

func NewVersionOverview(app config.App, currentVersion, newVersion, releaseNotes string) error

NewVersionOverview shows an upgrade or downgrade overview

func PostCmds

func PostCmds(cl *dockerClient.Client, app config.App, commands string) error

PostCmds parses a string of commands and executes them inside of the respective services the commands string must have the following format: "<service> <command> <arguments>|<service> <command> <arguments>|... "

func PromptBumpType

func PromptBumpType(tagString, latestRelease string) error

PromptBumpType prompts for version bump type

func RetrieveBackupBotContainer

func RetrieveBackupBotContainer(cl *dockerClient.Client) (types.Container, error)

RetrieveBackupBotContainer gets the deployed backupbot container.

func ReverseStringList

func ReverseStringList(strings []string) []string

ReverseStringList reverses a list of a strings. Roll on Go generics.

func RunBackupCmdRemote

func RunBackupCmdRemote(cl *dockerClient.Client, backupCmd string, containerID string, execEnv []string) error

RunBackupCmdRemote runs a backup related command on a remote backupbot container.

func RunCmd

func RunCmd(cmd *exec.Cmd) error

RunCmd runs a shell command and streams stdout/stderr in real-time.

func RunCmdRemote

func RunCmdRemote(cl *dockerClient.Client, app config.App, abraSh, serviceName, cmdName, cmdArgs string) error

RunCmdRemote executes an abra.sh command in the target service

func SetBumpType

func SetBumpType(bumpType string)

SetBumpType figures out which bump type is specified

func ShowSubcommandHelpAndError

func ShowSubcommandHelpAndError(c *cli.Context, err interface{})

ShowSubcommandHelpAndError exits the program on error, logs the error to the terminal, and shows the help command.

func SubCommandBefore

func SubCommandBefore(c *cli.Context) error

SubCommandBefore wires up pre-action machinery (e.g. --debug handling).

func ValidateApp

func ValidateApp(c *cli.Context) config.App

ValidateApp ensures the app name arg is valid.

func ValidateDomain

func ValidateDomain(c *cli.Context) string

ValidateDomain ensures the domain name arg is valid.

func ValidateRecipe

func ValidateRecipe(c *cli.Context) recipe.Recipe

ValidateRecipe ensures the recipe arg is valid.

func ValidateServer

func ValidateServer(c *cli.Context) string

ValidateServer ensures the server name arg is valid.

func ValidateSubCmdFlags

func ValidateSubCmdFlags(c *cli.Context) bool

ValidateSubCmdFlags ensures flag order conforms to correct order

Types

This section is empty.

Jump to

Keyboard shortcuts

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