cmd

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2017 Elliott Polk. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2017 Elliott Polk. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2017 Elliott Polk. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2017 Elliott Polk. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Copyright 2017 Elliott Polk. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Index

Constants

View Source
const (
	DefaultStdPort string = "8080"
	DefaultTlsPort string = "8443"

	EnvStdPort string = "CONFGR_STD_PORT"
	EnvTlsPort string = "CONFGR_TLS_PORT"
)

Variables

View Source
var (
	AppFlag = cli.StringFlag{
		Name:  "a, app",
		Usage: "app name of config",
	}

	EnvFlag = cli.StringFlag{
		Name:  "e, env",
		Usage: "environment of configuration (e.g. PROD, DEV, TEST, etc.)",
	}

	ConfFlag = cli.StringFlag{
		Name:  "c, cfg, conf, config",
		Usage: "config to be stored",
	}

	EncryptFlag = cli.BoolFlag{
		Name:  "encrypt",
		Usage: "encrypt configuration",
	}

	DecryptFlag = cli.BoolFlag{
		Name:  "decrypt",
		Usage: "decrypt configuration",
	}

	TokenFlag = cli.StringFlag{
		Name:  "t, token",
		Usage: "token used to encrypt / decrypt configuration",
	}

	AddrFlag = cli.StringFlag{
		Name:   "addr",
		Usage:  "confgr service address",
		EnvVar: "CONFGR_ADDR",
	}

	TlsCertFlag = cli.StringFlag{
		Name:   "tls-cert",
		Usage:  "TLS certificate file",
		EnvVar: "CONFGR_TLS_CERT",
	}

	TlsKeyFlag = cli.StringFlag{
		Name:   "tls-key",
		Usage:  "TLS key file",
		EnvVar: "CONFGR_TLS_KEY",
	}

	DatastoreFlag = cli.StringFlag{
		Name:   "dsf, datastore-file",
		Value:  "/var/lib/confgr/confgr.db",
		Usage:  "name / location of file for storing content",
		EnvVar: "CONFGR_DS_FILE",
	}
)

Functions

func Get

func Get(context *cli.Context)

func Remove

func Remove(context *cli.Context)

func Serve

func Serve(context *cli.Context)

func Set

func Set(context *cli.Context)

func Simplify

func Simplify(name string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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