restaskpodman

package
v3.0.0-rc67 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DrvID = driver.NewID(driver.GroupTask, "podman")
)

Functions

func New

func New() resource.Driver

Types

type T

type T struct {
	restaskocibase.T

	// RootlessUser, when set, is the unprivileged user podman runs the
	// task container as.
	RootlessUser string `json:"rootless_user"`

	// RootlessGroup overrides the primary group of RootlessUser.
	RootlessGroup string `json:"rootless_group"`
}

T is the driver structure.

func (*T) ApplyPG

func (t *T) ApplyPG(ctx context.Context) error

ApplyPG caps the task container where podman places it, which is under the subtree systemd delegates to the user of a rootless container: the container of the task applies the groups of the task, which it shares.

func (*T) DriverID

func (t *T) DriverID() driver.ID

func (*T) GetContainerDetached

func (t *T) GetContainerDetached() restaskocibase.ContainerTasker

GetContainerDetached returns a ContainerTasker where the base container has the Detach value set to false (task are never detached).

func (*T) HostGID

func (t *T) HostGID(id uint32) (uint32, error)

HostGID implements resource.IDMapper: the host gid the gid id of the task container runs as.

func (*T) HostUID

func (t *T) HostUID(id uint32) (uint32, error)

HostUID implements resource.IDMapper: the host uid the uid id of the task container runs as.

func (*T) Manifest

func (t *T) Manifest() *manifest.T

Manifest ...

func (*T) ResetPG

func (t *T) ResetPG(ctx context.Context) error

ResetPG lifts the capping of the groups the task container is placed in.

func (*T) Status

func (t *T) Status(ctx context.Context) status.T

Status says what keeps the task from running rootless on this node, in the status of the task, beside the one of its last run.

Jump to

Keyboard shortcuts

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