Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DecisionsCmd = &cobra.Command{ Use: "decisions", Short: "Get Aperture Decisions", Long: `Use this command to get the Aperture Decisions.`, SilenceErrors: true, Example: ` aperturectl cloud decisions --all aperturectl cloud decisions --decision-type="load_scheduler"`, 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) } decisionType, err = utils.DecisionsPreRun(all, decisionType) return err }, RunE: func(cmd *cobra.Command, args []string) error { client, err := controller.PolicyClient() if err != nil { return err } return utils.ParseDecisions(cmd, client, all, decisionType) }, PersistentPostRun: controller.PostRun, }
DecisionsCmd is the command to apply a policy to the cluster.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.