podman

package
v0.1.115 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option = func(rt *PodmanRuntime)

func WithBroker

func WithBroker(broker broker.Broker) Option

func WithMounter

func WithMounter(mounter runtime.Mounter) Option

type PodmanRuntime

type PodmanRuntime struct {
	// contains filtered or unexported fields
}

PodmanRuntime is a runtime that uses podman to run tasks in containers on the host machine using podman as the container runtime engine and the podman CLI to manage containers.

func NewPodmanRuntime

func NewPodmanRuntime(opts ...Option) *PodmanRuntime

func (*PodmanRuntime) HealthCheck

func (d *PodmanRuntime) HealthCheck(ctx context.Context) error

func (*PodmanRuntime) Run

func (d *PodmanRuntime) Run(ctx context.Context, t *tork.Task) error

func (*PodmanRuntime) Stop

func (d *PodmanRuntime) Stop(ctx context.Context, t *tork.Task) error

type VolumeMounter

type VolumeMounter struct {
}

func NewVolumeMounter

func NewVolumeMounter() *VolumeMounter

func (*VolumeMounter) Mount

func (m *VolumeMounter) Mount(ctx context.Context, mn *tork.Mount) error

func (*VolumeMounter) Unmount

func (m *VolumeMounter) Unmount(ctx context.Context, mn *tork.Mount) error

Jump to

Keyboard shortcuts

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