cmd

package
v0.0.0-...-928f0cf Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v0.0.1"

Variables

View Source
var Revision = "development"

Functions

func Execute

func Execute() int

func NewAddCommand

func NewAddCommand(o *AddOption) *cobra.Command

func NewNodesCommand

func NewNodesCommand(o *NodesOption) *cobra.Command

func NewRemoveCommand

func NewRemoveCommand(o *RemoveOption) *cobra.Command

func NewRootCommand

func NewRootCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

Types

type AddOption

type AddOption struct {
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Host             string `yaml:"url"`
	Port             int    `yaml:"port"`
	AutoScalingGroup string `yaml:"autoScalingGroup"`
}

func GetConfig

func GetConfig(configFile string) (*Config, error)

type ErrFileNotExist

type ErrFileNotExist struct {
	// contains filtered or unexported fields
}

func (ErrFileNotExist) Error

func (e ErrFileNotExist) Error() string

type NodesOption

type NodesOption struct {
	// contains filtered or unexported fields
}

type RemoveOption

type RemoveOption struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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