github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/client/lib/resources/containment.go (about) 1 package resources 2 3 // A Containment will cleanup resources created by an executor. 4 type Containment interface { 5 // Apply enables containment on pid. 6 Apply(pid int) error 7 8 // Cleanup will purge executor resources like cgroups. 9 Cleanup() error 10 11 // GetPIDs will return the processes overseen by the Containment 12 GetPIDs() PIDs 13 }