status

package
v2.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusCmd = &cobra.Command{
	Use:           "status",
	Short:         "Get Jobs status",
	Long:          `Use this command to get the status of internal jobs.`,
	SilenceErrors: true,
	Example: `
	aperturectl status
	`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		err := controller.PreRunE(cmd, args)
		if err != nil {
			return fmt.Errorf("failed to run controller pre-run: %w", err)
		}
		return nil
	},
	RunE: func(cmd *cobra.Command, args []string) error {
		client, err := controller.StatusClient()
		if err != nil {
			return err
		}

		return utils.ParseStatus(client)
	},
	PersistentPostRun: controller.PostRun,
}

StatusCmd is the command to get a status of jobs.

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