oci

package
v0.0.0-...-ab06b26 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSpec

func GenerateSpec(ctx context.Context, meta executor.Meta, mounts []executor.Mount, id, resolvConf, hostsFile string, opts ...oci.SpecOpts) (*specs.Spec, func(), error)

GenerateSpec generates spec using containerd functionality.

func GetHostsFile

func GetHostsFile(ctx context.Context, stateDir string) (string, error)

func GetResolvConf

func GetResolvConf(ctx context.Context, stateDir string) (string, error)

func GetUser

func GetUser(ctx context.Context, root, username string) (uint32, uint32, error)

func ParseUser

func ParseUser(str string) (uid uint32, gid uint32, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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