flags

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const EnvVarPrefix = "OP_CONDUCTOR_INIT"

Variables

View Source
var (
	NodesFlag = &cli.StringFlag{
		Name:     "nodes",
		Usage:    "Comma-separated list of node addresses (e.g., sequencer-1:50050,sequencer-2:50050,sequencer-3:50050)",
		EnvVars:  opservice.PrefixEnvVar(EnvVarPrefix, "NODES"),
		Required: true,
	}
	ServerIDsFlag = &cli.StringFlag{
		Name:     "server-ids",
		Usage:    "Comma-separated list of server IDs (e.g., sequencer-1,sequencer-2,sequencer-3)",
		EnvVars:  opservice.PrefixEnvVar(EnvVarPrefix, "SERVER_IDS"),
		Required: true,
	}
	OutputDirFlag = &cli.StringFlag{
		Name:    "output-dir",
		Usage:   "Output directory for generated Raft state",
		EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "OUTPUT_DIR"),
		Value:   "./raft-state",
	}
	InitialLeaderFlag = &cli.StringFlag{
		Name:     "initial-leader",
		Usage:    "Server ID of the initial leader",
		EnvVars:  opservice.PrefixEnvVar(EnvVarPrefix, "INITIAL_LEADER"),
		Required: true,
	}
	InitialTermFlag = &cli.Uint64Flag{
		Name:    "initial-term",
		Usage:   "Initial Raft term",
		EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "INITIAL_TERM"),
		Value:   1,
	}
	NetworkFlag = &cli.StringFlag{
		Name:    "network",
		Usage:   "Network name for configuration (e.g., base-mainnet, op-mainnet)",
		EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "NETWORK"),
	}
	ForceFlag = &cli.BoolFlag{
		Name:    "force",
		Usage:   "Force overwrite existing state files",
		Value:   false,
		EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "FORCE"),
	}
	// Flags for raft subcommands
	StateDirFlag = &cli.StringFlag{
		Name:     "state-dir",
		Usage:    "Directory containing raft state files",
		Required: true,
		EnvVars:  opservice.PrefixEnvVar(EnvVarPrefix, "STATE_DIR"),
	}
	BackupDirFlag = &cli.StringFlag{
		Name:     "backup-dir",
		Usage:    "Directory for backup operations",
		Required: true,
		EnvVars:  opservice.PrefixEnvVar(EnvVarPrefix, "BACKUP_DIR"),
	}
	RestoreForceFlag = &cli.BoolFlag{
		Name:    "force",
		Usage:   "Force restore without confirmation prompts",
		Value:   false,
		EnvVars: opservice.PrefixEnvVar(EnvVarPrefix, "RESTORE_FORCE"),
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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