config

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2015 License: BSD-4-Clause, MIT Imports: 17 Imported by: 48

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "1.0.0-rc1"

Functions

func GenTLSConfig

func GenTLSConfig(serverName string) *tls.Config

func HomeDir added in v1.1.0

func HomeDir() string

func LoadAuth added in v1.1.0

func LoadAuth() (*users.User, error)

func RemoveAuth added in v1.1.0

func RemoveAuth() error

func StoreAuth added in v1.1.0

func StoreAuth(user *users.User) error

Types

type AuthConfigData added in v1.1.0

type AuthConfigData struct {
	LastUpdate        time.Time              `json:"last_update"`
	AuthConfigPerHost map[string]*users.User `json:"auth_config_data"`
}

type Config added in v1.1.0

type Config struct {
	ApiUrl string

	ApiPrefix    string
	SshHost      string
	UnsecureSsl  bool
	RollbarToken string
	ConfigDir    string
	AuthFile     string
	LogFile      string

	Logger *log.Logger
	// contains filtered or unexported fields
}
var (
	C         Config
	TlsConfig *tls.Config
)

Jump to

Keyboard shortcuts

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