cmd

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package cmd contains various files for adding commands and subcommands to romana command line tools.

Each file in the package directory contains exactly one command and multiple sub-commands for it, except the root.go file which initializes the config and cli package and sets various command line parameters.

The package used for configuration is called viper and it allows configuration to be read from configuration files or to be set from command line parameters.

The package used for command line interface is called cobra and it is the main library behind providing usage, flag support and various other command line features.

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cli.Command{
	Use:   "romana",
	Short: "Command line tools for romana services.",
	Long: `Command line tools for romana services.

For more information, please check http://romana.io
`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. Here commands/subcommand mapping is added where control is passed around from main() to commands/subcommands evoked.

Types

type Policies

type Policies struct {
	SecurityPolicies    []common.Policy
	AppliedSuccessfully []bool
}

Policies structure is used to keep track of security policies and their status, as to if they were applied successfully or not.

Jump to

Keyboard shortcuts

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