config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SHELL_LIST = []string{"/bin/bash", "/bin/ash", "/bin/sh"}

Functions

This section is empty.

Types

type BackendConfig

type BackendConfig struct {
	Type      string // docker or kubectl (for now)
	Docker    DockerConfig
	Kube      KubeConfig
	ExtraArgs []string // extra args pass to docker or kubectl
}

type Config

type Config struct {
	Port     int
	LogLevel string
	Control  ControlConfig
	Backend  BackendConfig
	Servers  []string // for proxy mode
}

type ControlConfig added in v0.1.4

type ControlConfig struct {
	Enable  bool
	Start   bool
	Stop    bool
	Restart bool
}

type DockerConfig

type DockerConfig struct {
	DockerPath string // default is /usr/bin/docker
	DockerHost string // default is /var/run/docker.sock
}

type KubeConfig added in v0.1.4

type KubeConfig struct {
	KubectlPath string // default is /usr/bin/kubectl
	ConfigPath  string // normally is $HOME/.kube/config
}

Jump to

Keyboard shortcuts

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