system

package
v1.9.47 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JumpboxDeployment = DeploymentWithName("jumpbox")
View Source
var JumpboxInstance = JumpboxDeployment.Instance("jumpbox", "0")
View Source
var ManyBbrJobsDeployment = DeploymentWithName("many-bbr-jobs")
View Source
var RedisDeployment = DeploymentWithName("redis")
View Source
var RedisDeploymentWithDisabledJob = DeploymentWithName("redis-with-disabled-bbr-job")
View Source
var RedisSlowBackupDeployment = DeploymentWithName("redis-with-slow-backup")
View Source
var RedisWithBackupOneRestoreAll = DeploymentWithName("redis-with-backup-one-restore-all")
View Source
var RedisWithLockingOrderDeployment = DeploymentWithName("redis-with-locking-order")

Functions

func BackupDirWithTimestamp

func BackupDirWithTimestamp(deploymentName string) string

func MustHaveEnv

func MustHaveEnv(keyname string) string

func WriteEnvVarToTempFile

func WriteEnvVarToTempFile(key string) (string, error)

Types

type Deployment

type Deployment struct {
	Name     string
	Manifest string
}

func DeploymentWithName

func DeploymentWithName(name string) Deployment

func NewDeployment

func NewDeployment(name, manifest string) Deployment

func (Deployment) Delete

func (d Deployment) Delete()

func (Deployment) Deploy

func (d Deployment) Deploy()

func (Deployment) Instance

func (d Deployment) Instance(group, index string) Instance

type Instance

type Instance struct {
	Group string
	Index string
	// contains filtered or unexported fields
}

func (Instance) AssertFilesExist

func (i Instance) AssertFilesExist(paths []string)

func (Instance) Copy

func (i Instance) Copy(sourcePath, destinationPath string)

func (Instance) RunCommand

func (i Instance) RunCommand(command string) *gexec.Session

func (Instance) RunCommandAs

func (i Instance) RunCommandAs(user, command string) *gexec.Session

Jump to

Keyboard shortcuts

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