36b3af2e3d
PR Check / Code Quality: Format (push) Failing after 1s
PR Check / Code Quality: Lint (darwin) (push) Failing after 0s
PR Check / Code Quality: Lint (freebsd) (push) Failing after 1s
PR Check / Code Quality: Lint (windows) (push) Failing after 1s
PR Check / Code Quality: Lint (linux) (push) Failing after 1s
PR Check / Security: Vulnerability Scan (push) Failing after 0s
Update Documentation / update-docs (push) Failing after 2s
PR Check / Code Quality: Vendor (push) Failing after 1s
PR Check / Code Quality: Coverage (push) Failing after 0s
PR Check / Tests: Unit (macos-latest) (push) Has been cancelled
PR Check / Tests: Unit (ubuntu-24.04) (push) Has been cancelled
PR Check / Tests: Unit (ubuntu-24.04-arm) (push) Has been cancelled
PR Check / Tests: Unit (windows-latest) (push) Has been cancelled
14 lines
609 B
Go
14 lines
609 B
Go
package proc
|
|
|
|
import "github.com/pranshuparmar/witr/pkg/model"
|
|
|
|
func init() { registerRuntime(podmanRuntime{}) }
|
|
|
|
type podmanRuntime struct{}
|
|
|
|
func (podmanRuntime) Name() string { return "podman" }
|
|
func (podmanRuntime) Available() bool { return binAvailable("podman") }
|
|
func (podmanRuntime) List() []*model.ContainerMatch { return dockerLikeList("podman", "podman") }
|
|
func (podmanRuntime) HostPID(id string) int { return dockerLikeHostPID("podman", id) }
|
|
func (podmanRuntime) Enrich(match *model.ContainerMatch) { dockerLikeEnrich("podman", match) }
|