specutils

package
v0.0.0-...-23e6066 Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package specutils contains utility functions for working with OCI runtime specs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinPath

func BinPath() (string, error)

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

func GetExecutablePath(exec, root string, env []string) (string, error)

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.

func Is9PMount

func Is9PMount(m specs.Mount) bool

Is9PMount returns true if the given mount can be mounted as an external gofer.

func LogSpec

func LogSpec(spec *specs.Spec)

LogSpec logs the spec in a human-friendly way.

func ReadSpec

func ReadSpec(bundleDir string) (*specs.Spec, error)

ReadSpec reads an OCI runtime spec from the given bundle directory.

TODO: This should validate the spec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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