powercmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(rootConfig *rootcmd.Config) *ffcli.Command

Types

type Config

type Config struct {
	Action string `validate:"oneof=on off cycle reset"`
	// contains filtered or unexported fields
}

Config for the create subcommand, including a reference to the API client.

func (*Config) Exec

func (c *Config) Exec(ctx context.Context, args []string) error

Exec function for this command.

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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