Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(opts CreateCommandOptions)
Create executes the kidlectl create command with given args
func Idle ¶
func Idle(opts IdleCommandOptions)
Idle executes the kidlectl idle command with given args
func Wakeup ¶
func Wakeup(opts WakeupCommandOptions)
Wakeup executes the kidlectl wakeup command with given args
Types ¶
type CreateCommandOptions ¶
type CreateCommandOptions struct { Args struct { Name string `long:"name" env:"NAME" description:"idling resource name to wakeup"` } `positional-args:"yes" required:"1"` Namespace string `long:"namespace" env:"NAMESPACE" short:"n" description:"IdlingResource namespace"` Idle bool `long:"idle" env:"IDLE" short:"i" description:"the desired state of idling, defaults to false"` Ref string `long:"ref" env:"REF" short:"r" description:"the reference to the idle-able workload"` }
CreateCommandOptions are the options of the create command
type IdleCommandOptions ¶
type IdleCommandOptions struct { Args struct { Name string `long:"name" env:"NAME" description:"idling resource name to idle"` } `positional-args:"yes" required:"1"` Namespace string `long:"namespace" env:"NAMESPACE" short:"n" description:"IdlingResource namespace"` }
IdleCommandOptions are the options of the idle command
type VersionCommandOptions ¶
type VersionCommandOptions struct { }
VersionCommandOptions are the options of the version command
type WakeupCommandOptions ¶
type WakeupCommandOptions struct { Args struct { Name string `long:"name" env:"NAME" description:"idling resource name to wakeup"` } `positional-args:"yes" required:"1"` Namespace string `long:"namespace" env:"NAMESPACE" short:"n" description:"IdlingResource namespace"` }
WakeupCommandOptions are the options of the wakeup command
Click to show internal directories.
Click to hide internal directories.