config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Port         int           `short:"p" long:"port" description:"Port to listen on" default:"443" env:"BARYON_PORT"`
	Bind         string        `short:"b" long:"bind" description:"Ip address to bind to" default:"0.0.0.0" env:"BARYON_BIND"`
	Secret       string        `short:"s" long:"secret" description:"The web-hook secret" env:"BARYON_HOOK_SECRET"`
	Key          string        `short:"k" long:"key" description:"Specify a Key file to enable server to start TLS" env:"BARYON_KEY"`
	Cert         string        `short:"c" long:"cert" description:"Cert file for TLS" env:"BARYON_CERT"`
	Org          string        `short:"o" long:"org" description:"Github Org to find cookbooks" env:"BARYON_GITHUB_ORG"`
	Token        string        `short:"t" long:"token" description:"Github API token to use when connecting" env:"BARYON_GITHUB_TOKEN"`
	SyncInterval time.Duration `` /* 178-byte string literal not displayed */
	NoSync       bool          `` /* 127-byte string literal not displayed */
	BerksOnly    bool          `long:"berks-only" description:"Only use berks compatable version tags in the universe" env:"BARYON_BERKSONLY"`
	TLS          bool
}

CLI Options

var Opts Options

Opts is the application config struct

Jump to

Keyboard shortcuts

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