Documentation
¶
Index ¶
- Variables
- func New() resource.Driver
- type T
- func (t *T) ApplyPG(ctx context.Context) error
- func (t *T) DriverID() driver.ID
- func (t *T) GetContainerDetached() restaskocibase.ContainerTasker
- func (t *T) HostGID(id uint32) (uint32, error)
- func (t *T) HostUID(id uint32) (uint32, error)
- func (t *T) Manifest() *manifest.T
- func (t *T) ResetPG(ctx context.Context) error
- func (t *T) Status(ctx context.Context) status.T
Constants ¶
This section is empty.
Variables ¶
var (
DrvID = driver.NewID(driver.GroupTask, "podman")
)
Functions ¶
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 ¶
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) 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 ¶
HostGID implements resource.IDMapper: the host gid the gid id of the task container runs as.
func (*T) HostUID ¶
HostUID implements resource.IDMapper: the host uid the uid id of the task container runs as.