Documentation
¶
Index ¶
- Constants
- Variables
- func CreateServerConfig(config string) error
- func GetDockerImageId(image string) string
- func InitConsoleConfig()
- func InitServerConfig()
- func LoadConsoleTLSCredentials() (credentials.TransportCredentials, error)
- func LoadServerTLSCredentials() (credentials.TransportCredentials, error)
- func ParseServerConfig(config string) error
- func SaveConsoleConfig() error
- type DockerConfigCommand
- type DockerConfiguration
- type DockerNodeConfig
- type NetemConsoleConfig
- type NetemServerConfig
- type TLSOptions
Constants ¶
View Source
const ( CONSOLE_CONFIG_FILENAME = "console.yaml" INITIAL_CONSOLE_CONFIG = `` /* 178-byte string literal not displayed */ )
View Source
const ( VERSION = "0.4.1" IMG_VERSION = "0.2.0" NETEM_ID = "ntm" SERVER_CONFIG_FILE = "/etc/gonetem/config.yaml" MINIMUM_SERVER_CONFIG = `` /* 277-byte string literal not displayed */ INITIAL_SERVER_CONFIG = `` /* 2790-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 GetDockerImageId ¶ added in v0.1.1
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 SaveConsoleConfig ¶ added in v0.1.1
func SaveConsoleConfig() error
Types ¶
type DockerConfigCommand ¶ added in v0.4.0
type DockerConfiguration ¶ added in v0.4.0
type DockerNodeConfig ¶ added in v0.4.0
type DockerNodeConfig struct { Type string Image string Volumes []string LogOutput bool Commands struct { Console string Shell string LoadConfig []DockerConfigCommand SaveConfig []DockerConfigCommand } ConfigurationFiles []DockerConfiguration ConfigurationFolders []DockerConfiguration }
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 { Timeoutop int Nodes struct { Router DockerNodeConfig Host DockerNodeConfig Server DockerNodeConfig } ExtraNodes []DockerNodeConfig OvsImage string } }
Click to show internal directories.
Click to hide internal directories.