config

package
v0.0.0-...-eca221b Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	LogLevel:        "debug",
	Listen:          ":9494",
	EnableServerTLS: false,
	ContainerStore:  "/var/vcap/data/container-metadata/store.json",
	RunC:            "/var/vcap/packages/runc/bin/runc",
	RunCRoot:        "/run/containerd/runc/garden",
	Cert:            "",
	Key:             "",
	CaCert:          "",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel        string `yaml:"log_level"`
	Listen          string `yaml:"listen"`
	EnableServerTLS bool   `yaml:"enable_server_tls"`
	ContainerStore  string `yaml:"container_store"`
	RunC            string `yaml:"runc"`
	RunCRoot        string `yaml:"runc_root"`
	Cert            string `yaml:"cert"`
	Key             string `yaml:"key"`
	CaCert          string `yaml:"ca_cert"`
}

func NewConfigFromFile

func NewConfigFromFile(filename string) (*Config, error)

Jump to

Keyboard shortcuts

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