commands

package
Version: v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandArgAttach = "[--instanceid INSTANCE_ID] [--deviceindex DEVICE_INDEX] [--max-attempts MAX_ATTEMPTS] [--interval INTERVAL] ENI_ID"
View Source
var CommandArgDetach = "[--max-attempts MAX_ATTEMPTS] [--interval INTERVAL] ENI_ID"
View Source
var CommandArgGrab = "[--instanceid INSTANCE_ID] [--deviceindex DEVICE_INDEX] [--max-attempts MAX_ATTEMPTS] [--interval INTERVAL] ENI_ID"
View Source
var CommandArgList = ""
View Source
var CommandArgStatus = "ENI_ID"
View Source
var CommandAttach = cli.Command{
	Name:   "attach",
	Usage:  "Attach ENI",
	Action: fatalOnError(doAttach),
	Flags: []cli.Flag{
		cli.IntFlag{Name: "d, deviceindex", Value: 1, Usage: "device index number"},
		cli.StringFlag{Name: "I, instanceid", Usage: "attach-targeted instance id"},
		cli.IntFlag{Name: "n, max-attempts", Value: 10, Usage: "the maximum number of attempts to poll the change of ENI status (default: 10)"},
		cli.IntFlag{Name: "i, interval", Value: 2, Usage: "the interval in seconds to poll the change of ENI status (default: 2)"},
		cli.BoolFlag{Name: "f, force", Usage: "run without y/n acknowledgement (default: false)"},
	},
}
View Source
var CommandDetach = cli.Command{
	Name:   "detach",
	Usage:  "Detach ENI",
	Action: fatalOnError(doDetach),
	Flags: []cli.Flag{
		cli.IntFlag{Name: "n, max-attempts", Value: 10, Usage: "the maximum number of attempts to poll the change of ENI status (default: 10)"},
		cli.IntFlag{Name: "i, interval", Value: 2, Usage: "the interval in seconds to poll the change of ENI status (default: 2)"},
		cli.BoolFlag{Name: "f, force", Usage: "run without y/n acknowledgement (default: false)"},
	},
}
View Source
var CommandGrab = cli.Command{
	Name:   "grab",
	Usage:  "Detach and attach ENI whether the eni has already attached or not.",
	Action: fatalOnError(doGrab),
	Flags: []cli.Flag{
		cli.IntFlag{Name: "d, deviceindex", Value: 1, Usage: "device index number"},
		cli.StringFlag{Name: "I, instanceid", Usage: "attach-targeted instance id"},
		cli.IntFlag{Name: "n, max-attempts", Value: 10, Usage: "the maximum number of attempts to poll the change of ENI status (default: 10)"},
		cli.IntFlag{Name: "i, interval", Value: 2, Usage: "the interval in seconds to poll the change of ENI status (default: 2)"},
		cli.BoolFlag{Name: "f, force", Usage: "run without y/n acknowledgement (default: false)"},
	},
}
View Source
var CommandList = cli.Command{
	Name:    "list",
	Aliases: []string{"ls"},
	Usage:   "List ENIs",
	Action:  fatalOnError(doList),
}
View Source
var CommandStatus = cli.Command{
	Name:    "status",
	Aliases: []string{"st"},
	Usage:   "Show ENI status",
	Action:  fatalOnError(doStatus),
}

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