context

package
v0.0.0-...-7f7efcf Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminCtx

type AdminCtx struct {
	Help bool
	List bool

	InstanceName string
	ConnString   string
}

type BenchCtx

type BenchCtx struct {
	URL                  string // URL - the URL of the tarantool used for testing
	User                 string // User - username to connect to the tarantool.
	Password             string // Password to connect to the tarantool.
	Connections          int    // Connections describes the number of connection to be used in the test.
	SimultaneousRequests int    // SimultaneousRequests describes the number of parallel requests from one connection.
	Duration             int    // Duration describes test duration in seconds.
	KeySize              int    // DataSize describes the size of key part of benchmark data (bytes).
	DataSize             int    // DataSize describes the size of value part of benchmark data (bytes).
	InsertCount          int    // InsertCount describes the number of insert operations as a percentage.
	SelectCount          int    // SelectCount describes the number of select operations as a percentage.
	UpdateCount          int    // UpdateCount describes the number of update operations as a percentage.
	PreFillingCount      int    // PreFillingCount describes the number of records to pre-fill the space.
}

type BuildCtx

type BuildCtx struct {
	ID   string
	Dir  string
	Spec string

	InDocker   bool
	DockerFrom string

	SDKLocal        bool
	SDKPath         string
	BuildSDKDirname string
}

type CliCtx

type CliCtx struct {
	Verbose bool
	Debug   bool
	Quiet   bool

	CartridgeTmpDir string
	TmpDir          string
	CacheDir        string
}

type ConnectCtx

type ConnectCtx struct {
	Username string
	Password string
}

type CreateCtx

type CreateCtx struct {
	TemplateFS http.FileSystem
	Template   string
	From       string
}

type Ctx

type Ctx struct {
	Project     ProjectCtx
	Create      CreateCtx
	Build       BuildCtx
	Running     RunningCtx
	Pack        PackCtx
	Tarantool   TarantoolCtx
	Cli         CliCtx
	Docker      DockerCtx
	Repair      RepairCtx
	Admin       AdminCtx
	Replicasets ReplicasetsCtx
	Connect     ConnectCtx
	Failover    FailoverCtx
	Bench       BenchCtx
}

type DockerCtx

type DockerCtx struct {
	CacheFrom []string
}

type FailoverCtx

type FailoverCtx struct {
	File          string
	Mode          string
	StateProvider string

	ParamsJSON         string
	ProviderParamsJSON string
}

type PackCtx

type PackCtx struct {
	ID string

	Type string

	DockerFrom string
	NoCache    bool

	PackageFilesDir string
	ResPackagePath  string
	ResImageTags    []string

	Version           string
	Filename          string
	Release           string
	Arch              string
	Suffix            string
	VersionWithSuffix string
	ImageTags         []string

	UnitTemplatePath          string
	InstUnitTemplatePath      string
	StatboardUnitTemplatePath string

	Deps common.PackDependencies

	PreInstallScript  string
	PostInstallScript string

	PreInstallScriptFile  string
	PostInstallScriptFile string

	SystemdUnitParamsPath string
}

type ProjectCtx

type ProjectCtx struct {
	Name           string
	NameToLower    string
	StateboardName string
	Path           string
}

type RepairCtx

type RepairCtx struct {
	DryRun bool
	Force  bool
	Reload bool

	SetURIInstanceUUID string
	NewURI             string

	RemoveInstanceUUID string

	SetLeaderReplicasetUUID string
	SetLeaderInstanceUUID   string
}

type ReplicasetsCtx

type ReplicasetsCtx struct {
	File            string
	BootstrapVshard bool

	ReplicasetName string

	JoinInstancesNames    []string
	RolesList             []string
	VshardGroup           string
	FailoverPriorityNames []string
}

type RunningCtx

type RunningCtx struct {
	Instances           []string
	WithStateboard      bool
	StateboardFlagIsSet bool
	StateboardOnly      bool

	Daemonize    bool
	StartTimeout time.Duration

	LogFollow        bool
	LogLines         int
	DisableLogPrefix bool

	StopForced bool

	Entrypoint           string
	StateboardEntrypoint string
	AppsDir              string
	AppDir               string
	ConfPath             string
	RunDir               string
	DataDir              string
	LogDir               string
}

type TarantoolCtx

type TarantoolCtx struct {
	TarantoolDir           string
	TarantoolVersion       string
	TarantoolIsEnterprise  bool
	IsUserSpecifiedVersion bool
}

Jump to

Keyboard shortcuts

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