cmd

package
v0.0.0-...-5544660 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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 Version

func Version()

Version executes the kidlectl version command

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL