internal

package
v0.0.0-...-0dec682 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: GPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NOTE(d1): global
	Debug   bool
	NoInput bool
	Offline bool
	Help    bool
	Version bool

	// NOTE(d1): sub-command specific
	Chaos            bool
	DeployLatest     bool
	DontWaitConverge bool
	Dry              bool
	Force            bool
	MachineReadable  bool
	Major            bool
	Minor            bool
	NoDomainChecks   bool
	Patch            bool
	ShowUnchanged    bool
)

Functions

func DeployOverview

func DeployOverview(
	app appPkg.App,
	deployedVersion string,
	toDeployVersion string,
	releaseNotes string,
	warnMessages []string,
	secrets []string,
	configs []string,
	images []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 GetEnsureContext

func GetEnsureContext() recipe.EnsureContext

func GetMainAppImage

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

GetMainAppImage retrieves the main 'app' image name

func MoveOverview

func MoveOverview(
	app appPkg.App,
	newServer string,
	secrets []string,
	volumes []string,
)

MoveOverview shows a overview before moving an app to a different server

func PostCmds

func PostCmds(cl *dockerClient.Client, app appPkg.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, changeOverview string) error

PromptBumpType prompts for version bump type

func PromptProcced

func PromptProcced() error

func RetrieveBackupBotContainer

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

RetrieveBackupBotContainer gets the deployed backupbot container.

func RunBackupCmdRemote

func RunBackupCmdRemote(
	cl *dockerClient.Client,
	backupCmd string,
	containerID string,
	execEnv []string) (io.Writer, 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 appPkg.App,
	disableTTY bool,
	abraSh, serviceName, cmdName, cmdArgs, remoteUser 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 SortVersionsDesc

func SortVersionsDesc(versions []string) []string

SortVersionsDesc sorts versions in descending order.

func ValidateApp

func ValidateApp(args []string) app.App

ValidateApp ensures the app name arg is valid.

func ValidateDomain

func ValidateDomain(args []string) string

ValidateDomain ensures the domain name arg is valid.

func ValidateRecipe

func ValidateRecipe(args []string, cmdName string) recipe.Recipe

ValidateRecipe ensures the recipe arg is valid.

func ValidateServer

func ValidateServer(args []string) string

ValidateServer ensures the server name arg is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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