Documentation
¶
Index ¶
- Constants
- Variables
- func Execute()
- func NewDeployBrokerCmd() *cobra.Command
- func NewDiagnoseCmd() *cobra.Command
- func NewJoinCmd() *cobra.Command
- func NewRecoverBrokerInfoCmd() *cobra.Command
- func NewUninstallCmd() *cobra.Command
- func NewUpgradeCmd() *cobra.Command
- func NewVerifyCmd() *cobra.Command
- type DeployBrokerCommand
- type JoinCommand
- type RecoverBrokerCommand
- type VerifyOptions
Constants ¶
View Source
const ( DefaultOperationTimeout uint = 240 DefaultConnectionTimeout uint = 60 DefaultConnectionAttempts uint = 2 )
Variables ¶
View Source
var ( DeployBroker = deploy.Broker ReadBrokerInfoFromFile = broker.ReadInfoFromFile WriteBrokerInfoToFile = broker.WriteInfoToFile )
View Source
var ( DiagnoseCNIConfig = diagnose.CNIConfig DiagnoseConnections = diagnose.Connections DiagnoseDeployments = diagnose.Deployments DiagnoseGlobalnetConfig = diagnose.GlobalnetConfig DiagnoseK8sVersion = diagnose.K8sVersion DiagnoseKubeProxyMode = diagnose.KubeProxyMode DiagnoseServiceDiscovery = diagnose.ServiceDiscovery DiagnoseFirewallIntraVxLANConfig = diagnose.FirewallIntraVxLANConfig DiagnoseTunnelConfigAcrossClusters = diagnose.TunnelConfigAcrossClusters DiagnoseNatDiscoveryConfigAcrossClusters = diagnose.NatDiscoveryConfigAcrossClusters )
View Source
var JoinClusterToBroker = join.ClusterToBroker
View Source
var LatestReleaseURL = "https://api.github.com/repos/submariner-io/releases/releases/latest"
View Source
var NewInputPrompt = func(from survey.Prompt) survey.Prompt {
return from
}
View Source
var NewReporter = cli.NewReporter
View Source
var RecoverData = broker.RecoverData
View Source
var RunVerify func(options VerifyOptions, fromClusterInfo, toClusterInfo, extraClusterInfo *cluster.Info, namespace string, specLabels []string) error
View Source
var UninstallAll = uninstall.All
View Source
var VersionCmd = &cobra.Command{
Use: "version",
Short: "Get version information on subctl",
Long: `This command shows the version tag, and git commit for your
subctl binary.`,
Run: subctlVersion,
}
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func NewDeployBrokerCmd ¶ added in v0.23.1
NewDeployBrokerCmd returns the deploy-broker command.
func NewDiagnoseCmd ¶ added in v0.23.1
func NewJoinCmd ¶ added in v0.22.0
func NewRecoverBrokerInfoCmd ¶ added in v0.23.1
NewRecoverBrokerInfoCmd returns the recover-broker-info command.
func NewUninstallCmd ¶ added in v0.23.1
NewUninstallCmd returns the uninstall command.
func NewUpgradeCmd ¶ added in v0.23.1
func NewVerifyCmd ¶ added in v0.23.1
Types ¶
type DeployBrokerCommand ¶ added in v0.23.1
type DeployBrokerCommand struct {
// contains filtered or unexported fields
}
type JoinCommand ¶ added in v0.22.0
type JoinCommand struct {
// contains filtered or unexported fields
}
type RecoverBrokerCommand ¶ added in v0.23.1
type RecoverBrokerCommand struct {
// contains filtered or unexported fields
}
type VerifyOptions ¶ added in v0.22.0
Click to show internal directories.
Click to hide internal directories.