cli

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSimulatorCmd

func NewSimulatorCmd(opts ...SimulatorCmdOptions) *cobra.Command

Types

type SimulatorCmdOptions

type SimulatorCmdOptions func(command *cobra.Command)

func WithAMICmd

func WithAMICmd(opts ...SimulatorCmdOptions) SimulatorCmdOptions

func WithAMIDeleteCmd

func WithAMIDeleteCmd(manager aws.AMIManager) SimulatorCmdOptions

func WithAMIListCmd

func WithAMIListCmd(manager aws.AMIManager) SimulatorCmdOptions

func WithAmiBuildCmd

func WithAmiBuildCmd(builder tools.AMIBuilder) SimulatorCmdOptions

func WithBucketCmd

func WithBucketCmd(opts ...SimulatorCmdOptions) SimulatorCmdOptions

func WithConfigCmd

func WithConfigCmd(conf config.Config) SimulatorCmdOptions

func WithContainerCmd

func WithContainerCmd(opts ...SimulatorCmdOptions) SimulatorCmdOptions

func WithContainerPullCmd

func WithContainerPullCmd(config config.Config, client *docker.Client) SimulatorCmdOptions

func WithCreateBucketCmd

func WithCreateBucketCmd(config config.Config, manager aws.BucketManager) SimulatorCmdOptions

func WithDeleteBucketCmd

func WithDeleteBucketCmd(config config.Config, manager aws.BucketManager) SimulatorCmdOptions

func WithFlag

func WithFlag(name, value, usage string) SimulatorCmdOptions

func WithInfraCmd

func WithInfraCmd(opts ...SimulatorCmdOptions) SimulatorCmdOptions

func WithInfraCreateCmd

func WithInfraCreateCmd(manager tools.InfraManager, opts ...SimulatorCmdOptions) SimulatorCmdOptions

func WithInfraDestroyCmd

func WithInfraDestroyCmd(manager tools.InfraManager, opts ...SimulatorCmdOptions) SimulatorCmdOptions

func WithScenarioCmd

func WithScenarioCmd(opts ...SimulatorCmdOptions) SimulatorCmdOptions

func WithScenarioDescribeCmd

func WithScenarioDescribeCmd() SimulatorCmdOptions

func WithScenarioInstallCmd

func WithScenarioInstallCmd(manager tools.ScenarioManager) SimulatorCmdOptions

func WithScenarioListCmd

func WithScenarioListCmd() SimulatorCmdOptions

func WithScenarioUninstallCmd

func WithScenarioUninstallCmd(manager tools.ScenarioManager) SimulatorCmdOptions

func WithVersionCmd

func WithVersionCmd(ver VersionInfo) SimulatorCmdOptions

WithVersionCmd creates a new version command

type VersionInfo

type VersionInfo struct {
	Version   string // the semantic version, grabbed from git tags during build
	AppName   string // name of the application
	GitHash   string // the git hash of the build
	BuildDate string // build date, will be injected by the build system
}

VersionInfo contains the version information.

Jump to

Keyboard shortcuts

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