Documentation ¶
Overview ¶
Package specutils contains utility functions for working with OCI runtime specs.
Index ¶
- func BinPath() (string, error)
- func Capabilities(specCaps *specs.LinuxCapabilities) (*auth.TaskCapabilities, error)
- func GetExecutablePath(exec, root string, env []string) (string, error)
- func Is9PMount(m specs.Mount) bool
- func LogSpec(spec *specs.Spec)
- func ReadSpec(bundleDir string) (*specs.Spec, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinPath ¶
BinPath returns the real path to self, resolving symbolink links. This is done to make the process name appears as 'runsc', instead of 'exe'.
func Capabilities ¶
func Capabilities(specCaps *specs.LinuxCapabilities) (*auth.TaskCapabilities, error)
Capabilities takes in spec and returns a TaskCapabilities corresponding to the spec.
func GetExecutablePath ¶
GetExecutablePath returns the absolute path to the executable, relative to the root. It searches the environment PATH for the first file that exists with the given name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.