Documentation ¶
Index ¶
- func ExecuteCmdInitNS(w http.ResponseWriter, cmdName string, args []string) error
- func ExecuteCmdNamespace(w http.ResponseWriter, cmdName string, args []string, ns Namespaces) error
- func ExecuteCmdSelfNS(w http.ResponseWriter, cmdName string, args []string) error
- func LoadConfig(cfgDir string, ref interface{}) error
- type Namespaces
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCmdInitNS ¶
func ExecuteCmdInitNS(w http.ResponseWriter, cmdName string, args []string) error
func ExecuteCmdNamespace ¶
func ExecuteCmdNamespace(w http.ResponseWriter, cmdName string, args []string, ns Namespaces) error
func ExecuteCmdSelfNS ¶
func ExecuteCmdSelfNS(w http.ResponseWriter, cmdName string, args []string) error
func LoadConfig ¶
LoadConfig takes a directory and a pointer to a slice of types. For every file in the directory which ends in .yaml or .yml it will decode that file into and append the results to the slice provided
Types ¶
type Namespaces ¶
type Namespaces struct { Mount int // /proc/pid/ns/mnt Uts int // /proc/pid/ns/uts IPC int // /proc/pid/ns/ipc Net int // /proc/pid/ns/net Pid int // /proc/pid/ns/pid // The RHEL7 version of nsenter does not support User or Cgroup // User int // /proc/pid/ns/user // Cgroup int // /proc/pid/ns/cgroup Root int // /proc/pid/root Cwd int // /proc/pid/cwd }
Click to show internal directories.
Click to hide internal directories.