util

package
v0.0.0-...-ad423bc Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func LoadConfig(cfgDir string, ref interface{}) error

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
}

Jump to

Keyboard shortcuts

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