Documentation ¶
Index ¶
Constants ¶
View Source
const ChefVersion = "11.0.8"
The chef version we're at least aiming for, even if it's not complete yet
View Source
const Version = "0.4.0"
The goiardi version
Variables ¶
View Source
var Config = InitConfig()
Functions ¶
func ParseConfigOptions ¶
func ParseConfigOptions() error
Read and apply arguments from the command line.
func ServerHostname ¶
func ServerHostname() string
The hostname and port goiardi is configured to use.
Types ¶
type Conf ¶
type Conf struct { Ipaddress string Port int Hostname string ConfFile string IndexFile string DataStoreFile string DebugLevel int FreezeInterval int FreezeData bool LogFile string UseAuth bool TimeSlew string TimeSlewDur time.Duration ConfRoot string UseSSL bool SslCert string SslKey string HttpsUrls bool }
Master struct for configuration.
func InitConfig ¶
func InitConfig() *Conf
type Options ¶
type Options struct { Version bool `short:"v" long:"version" description:"Print version info."` Verbose []bool `short:"V" long:"verbose" description:"Show verbose debug information. (not implemented)"` ConfFile string `short:"c" long:"config" description:"Specify a config file to use."` Ipaddress string `short:"I" long:"ipaddress" description:"Listen on a specific IP address."` Hostname string `short:"H" long:"hostname" description:"Hostname to use for this server. Defaults to hostname reported by the kernel."` Port int `short:"P" long:"port" description:"Port to listen on. If port is set to 443, SSL will be activated. (default: 4545)"` IndexFile string `short:"i" long:"index-file" description:"File to save search index data to."` DataStoreFile string `short:"D" long:"data-file" description:"File to save data store data to."` FreezeInterval int `` /* 208-byte string literal not displayed */ LogFile string `short:"L" long:"log-file" description:"Log to file X"` TimeSlew string `` /* 171-byte string literal not displayed */ ConfRoot string `` /* 138-byte string literal not displayed */ UseAuth bool `short:"A" long:"use-auth" description:"Use authentication. Default: false."` UseSSL bool `` /* 222-byte string literal not displayed */ SslCert string `long:"ssl-cert" description:"SSL certificate file."` SslKey string `long:"ssl-key" description:"SSL key file."` HttpsUrls bool `` /* 239-byte string literal not displayed */ }
Struct for command line options.
Click to show internal directories.
Click to hide internal directories.