Documentation
¶
Index ¶
- Constants
- type NSEnter
- func (ne *NSEnter) AbsHostPath(command string) string
- func (ne *NSEnter) Command(cmd string, args ...string) exec.Cmd
- func (ne *NSEnter) CommandContext(ctx context.Context, cmd string, args ...string) exec.Cmd
- func (ne *NSEnter) Exec(cmd string, args []string) exec.Cmd
- func (ne *NSEnter) LookPath(file string) (string, error)
- func (ne *NSEnter) SupportsSystemd() (string, bool)
- type Nsenter
Constants ¶
View Source
const ( // DefaultHostRootFsPath is path to host's filesystem mounted into container // with kubelet. DefaultHostRootFsPath = "/rootfs" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NSEnter ¶
type NSEnter struct { // a map of commands to their paths on the host filesystem Paths map[string]string }
NSEnter is part of experimental support for running the kubelet in a container.
func (*NSEnter) AbsHostPath ¶
AbsHostPath returns the absolute runnable path for a specified command
func (*NSEnter) CommandContext ¶
CommandContext returns a CommandContext wrapped with nsenter
func (*NSEnter) SupportsSystemd ¶
SupportsSystemd checks whether command systemd-run exists
Click to show internal directories.
Click to hide internal directories.