Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ArgURL is the Operator URL status command argument. ArgURL = "url" // ArgTimeout is the timeout status command argument. ArgTimeout = "timeout" // ArgInterval is the retry interval status command argument. ArgInterval = "interval" // ArgSkipInsecure is the skip insecure https checks status command argument. ArgSkipInsecure = "insecure-skip-tls-verify" // ArgCertAuthority is the location of the CA file status command argument. ArgCertAuthority = "certificate-authority" // ArgCert is the location of the cert file status command argument. ArgCert = "client-certificate" // ArgKey is the location of the key file status command argument. ArgKey = "client-key" )
View Source
const ( // ArgCommand is an additional command to run after initialisation ArgCommand = "cmd" // ArgRootDir is the root directory to initialise and directories files in ArgRootDir = "root" // ArgUtilsDir is the utils directory name ArgUtilsDir = "utils" // ArgPersistenceDir is root the persistence directory name ArgPersistenceDir = "persistence" // ArgSnapshotsDir is root the snapshots directory name ArgSnapshotsDir = "snapshots" )
View Source
const ( // CommandNetTest is the argument to launch a network test. CommandNetTest = "net-test" // CommandNetTestServer is the argument to launch a network test server. CommandNetTestServer = "server" // CommandNetTestOperator is the argument to launch a network test Operator simulation. CommandNetTestOperator = "operator" // CommandNetTestCluster is the argument to launch a network test Coherence cluster member simulation. CommandNetTestCluster = "cluster" // CommandNetTestClient is the argument to launch a simple network test client. CommandNetTestClient = "client" // ArgOperatorHostName is the argument to use to specify the Operator host name to connect to ArgOperatorHostName = "operator-host" // ArgClusterHostName is the argument to use to specify the Operator host name to connect to ArgClusterHostName = "cluster-host" // ArgHostName is the argument to use to specify the host name to connect to ArgHostName = "host" // ArgPort is the argument to use to specify the port to connect to ArgPort = "port" // ArgProtocol is the argument to use to specify the network protocol to use ArgProtocol = "protocol" )
View Source
const ( // CommandNode is the argument to launch a Node label reader. CommandNode = "node" // ArgNode is the name of the node to query ArgNode = "node-name" // ArgDir is the directory to write files to ArgDir = "dir" // ArkKubeConfig is the location of the k8s config ArkKubeConfig = "kubeconfig" )
View Source
const ( // CommandStatus is the argument to execute a deployment status query. CommandStatus = "status" // ArgOperatorURL is the Operator URL status command argument. ArgOperatorURL = "operator-url" // ArgNamespace is the Coherence resource namespace status command argument. ArgNamespace = "namespace" // ArgName is the Coherence resource name status command argument. ArgName = "name" // ArgCondition is the required condition status command argument. ArgCondition = "condition" )
View Source
const (
// CommandConsole is the argument to launch a Coherence console.
CommandConsole = "console"
)
View Source
const (
// CommandJShell is the argument to launch a JShell console.
CommandJShell = "jshell"
)
View Source
const (
// CommandOperator is the argument to launch the Operator manager.
CommandOperator = "operator"
)
View Source
const (
// CommandQueryPlus is the argument to launch a QueryPlus console.
CommandQueryPlus = "queryplus"
)
View Source
const (
// CommandReady is the argument to execute ready check.
CommandReady = "ready"
)
View Source
const (
// CommandServer is the argument to launch a server.
CommandServer = "server"
)
View Source
const (
// CommandSleep is the argument to sleep for a number of seconds.
CommandSleep = "sleep"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EnvFunction ¶
EnvFunction is a function that returns an environment variable for a given name.
type Execution ¶
Execution is a holder of details of a command execution
func ExecuteWithArgsAndNewViper ¶
ExecuteWithArgsAndNewViper runs the runner with a given environment and argument overrides.
type MaybeRunFunction ¶
type MaybeRunFunction func(*run_details.RunDetails, *cobra.Command) (bool, error)
MaybeRunFunction is a function to maybe run a command depending on the return bool
type RunFunction ¶
type RunFunction func(*run_details.RunDetails, *cobra.Command)
RunFunction is a function to run a command
Source Files
¶
Click to show internal directories.
Click to hide internal directories.