options

package
v0.0.0-...-74ff207 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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 EtcdTlsOptions struct {
	Cert               string `yaml:"cert"`
	Key                string `yaml:"key"`
	Ca                 string `yaml:"ca"`
	InsecureSkipVerify bool   `yaml:"insecure_skip_verify"`
}

type LogOptions

type LogOptions struct {
	Level string `yaml:"level"`
	Path  string `yaml:"path"`
}

type MetricsOptions

type MetricsOptions struct {
	Enable bool   `yaml:"enable"`
	Path   string `yaml:"path"`
}

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"`
}

Jump to

Keyboard shortcuts

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