Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SystemCmd = &cobra.Command{ Use: "system", Short: "Meshery Lifecycle Management", Long: `Manage the state and configuration of Meshery server, adapters, and client.`, Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { if ok := utils.IsValidSubcommand(availableSubcommands, args[0]); !ok { return errors.New(utils.SystemError(fmt.Sprintf("invalid command: \"%s\"", args[0]))) } mctlCfg, err := config.GetMesheryCtl(viper.GetViper()) if err != nil { return errors.Wrap(err, "error processing config") } mctlCfg.GetBaseMesheryURL() return nil }, }
SystemCmd represents Meshery Lifecycle Management cli commands
Functions ¶
func IsBetaOrStable ¶ added in v0.5.1
IsBetaOrStable to determine which release channel is being used
Types ¶
type HealthCheckOptions ¶ added in v0.5.33
type HealthCheckOptions struct { // PrintLogs to keep incheck to print logs during a healthcheck PrintLogs bool // IsPreRunE to keep incheck if healthchecks are triggered as as a PreRunE IsPreRunE bool // the command under which the healthchecks are being triggered Subcommand string // if RunDockerChecks is true we run docker checks RunDockerChecks bool // if RunKubernetesChecks is true we run k8s checks RunKubernetesChecks bool // if RunOperatorChecks is true we run operator checks RunOperatorChecks bool // if RunVersionChecks is true we run version checks RunVersionChecks bool // if RunAdapterChecks is true we run adapter checks RunAdapterChecks bool }
type HealthChecker ¶ added in v0.5.33
type HealthChecker struct { Options *HealthCheckOptions // contains filtered or unexported fields }
func NewHealthChecker ¶ added in v0.5.33
func NewHealthChecker(options *HealthCheckOptions) (*HealthChecker, error)
func (*HealthChecker) Run ¶ added in v0.5.33
func (hc *HealthChecker) Run() error
Run triggers all the healthchecks according to the requirements defined from struct HealthChecks
func (*HealthChecker) RunPreflightHealthChecks ¶ added in v0.5.33
func (hc *HealthChecker) RunPreflightHealthChecks() error
Run preflight healthchecks to verify environment health
Source Files ¶
Click to show internal directories.
Click to hide internal directories.