config

package
v0.0.0-...-0346970 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:        "config",
	Usage:       "configure SecurePass",
	ArgsUsage:   " ",
	Description: "Create or update SecurePass configuration.",
	Action:      ActionConfig,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "config, c",
			Usage: "Configuration file",
			Value: "/etc/securepass.conf",
		},
		cli.StringFlag{
			Name:  "appid, i",
			Usage: "Application ID",
		},
		cli.StringFlag{
			Name:  "endpoint, e",
			Usage: "Endpoint URL",
			Value: securepassctl.DefaultRemote,
		},
		cli.StringFlag{
			Name:  "appsecret, s",
			Usage: "App secret",
		},
		cli.StringFlag{
			Name:  "realm, r",
			Usage: "Default Domain/Realm (and allow NSS login)",
		},
		cli.StringFlag{
			Name:  "root",
			Usage: "Coma separated list of allowed root users",
		},
		cli.BoolFlag{
			Name:  "stdout",
			Usage: "Write to stdout instead of file",
		},
	},
}

Command holds the config command

Functions

func ActionConfig

func ActionConfig(c *cli.Context)

ActionConfig is the config command handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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