Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string = "v0.0.1"
Functions ¶
This section is empty.
Types ¶
type APIServerOptions ¶
type APIServerOptions struct { Listen string `yaml:"listen"` Token string `yaml:"token"` RBAC RBACOptions `yaml:"rbac"` Etcd EtcdOptions `yaml:"etcd"` Metrics MetricsOptions `yaml:"metrics"` }
type CoreOptions ¶
type CoreOptions struct { Mode string `yaml:"mode"` Threads int `yaml:"threads"` Log LogOptions `yaml:"log"` }
type EtcdOptions ¶
type EtcdOptions struct { Endpoints []string `yaml:"endpoints"` DialTimeout int `yaml:"dial_timeout"` Tls EtcdTlsOptions `yaml:"tls"` Prefix string `yaml:"prefix"` }
type EtcdTlsOptions ¶
type LogOptions ¶
type MetricsOptions ¶
type Options ¶
type Options struct { Core CoreOptions `yaml:"core"` APIServer APIServerOptions `yaml:"apiserver"` }
func NewOptions ¶
func NewOptions() (opts Options)
type RBACOptions ¶
type RBACOptions struct {
Model string `yaml:"model"`
}
Click to show internal directories.
Click to hide internal directories.