Documentation
¶
Index ¶
- func AddBundleSpec(s *specs.Spec, bp *prefab.Blueprint, rootfs string) (err error)
- func DefaultRuntimeSpec() (s *specs.Spec)
- func NewCNI(containerID string, pid int, portMapping string) (*cni, error)
- func RootPath(root, path string) (string, error)
- func RunBundle(ctx context.Context, cfg TaskCRunConfig) (err error)
- func SetupIO(process *libcontainer.Process) (*tty, error)
- func WithAdditionalGIDs(s *specs.Spec, userstr string, root string) error
- func WithUser(s *specs.Spec, userstr string, root string) (err error)
- type Group
- type TaskCRunConfig
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBundleSpec ¶ added in v0.2.2
func DefaultRuntimeSpec ¶
These default spec settings are copied from https://github.com/containerd/containerd/tree/main/pkg/oci
func RootPath ¶
RootPath joins a path with a root, evaluating and bounding any symlink to the root directory.
func RunBundle ¶ added in v0.2.2
func RunBundle(ctx context.Context, cfg TaskCRunConfig) (err error)
func SetupIO ¶
func SetupIO(process *libcontainer.Process) (*tty, error)
func WithAdditionalGIDs ¶
WithAdditionalGIDs sets the OCI spec's additionalGids array to any additional groups listed for a particular user in the /etc/group file of the image's root filesystem The passed in user can be either a uid or a username.
Types ¶
type TaskCRunConfig ¶
Click to show internal directories.
Click to hide internal directories.