options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONSOLE_CONFIG_FILENAME = "console.yaml"
	INITIAL_CONSOLE_CONFIG  = `` /* 178-byte string literal not displayed */

)
View Source
const (
	VERSION               = "0.2.0"
	IMG_VERSION           = "0.2.0"
	NETEM_ID              = "ntm"
	SERVER_CONFIG_FILE    = "/etc/gonetem/config.yaml"
	INITIAL_SERVER_CONFIG = `` /* 234-byte string literal not displayed */

)

Variables

View Source
var (
	ConsoleConfig = NetemConsoleConfig{}
)
View Source
var (
	ServerConfig = NetemServerConfig{}
)

Functions

func CreateServerConfig added in v0.1.1

func CreateServerConfig(config string) error

func GetDockerImageId added in v0.1.1

func GetDockerImageId(imgType DockerImageT) string

func InitConsoleConfig added in v0.1.1

func InitConsoleConfig()

func InitServerConfig

func InitServerConfig()

func LoadConsoleTLSCredentials added in v0.2.0

func LoadConsoleTLSCredentials() (credentials.TransportCredentials, error)

func LoadServerTLSCredentials added in v0.2.0

func LoadServerTLSCredentials() (credentials.TransportCredentials, error)

func ParseServerConfig added in v0.1.1

func ParseServerConfig(config string) error

func SaveConsoleConfig added in v0.1.1

func SaveConsoleConfig() error

Types

type DockerImageT added in v0.1.1

type DockerImageT int
const (
	IMG_ROUTER DockerImageT = iota
	IMG_HOST
	IMG_SERVER
	IMG_OVS
)

type NetemConsoleConfig added in v0.1.1

type NetemConsoleConfig struct {
	Server   string
	Editor   string
	Terminal string
	Tls      TLSOptions
}

type NetemServerConfig

type NetemServerConfig struct {
	Listen  string
	Tls     TLSOptions
	Workdir string
	Docker  struct {
		Images struct {
			Server string
			Host   string
			Router string
			Ovs    string
		}
	}
}

type TLSOptions added in v0.2.0

type TLSOptions struct {
	Enabled bool
	Ca      string
	Cert    string
	Key     string
}

Jump to

Keyboard shortcuts

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