open-nomad/client/lib/resources/containment.go
2023-04-10 15:36:59 +00:00

17 lines
401 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package resources
// A Containment will cleanup resources created by an executor.
type Containment interface {
// Apply enables containment on pid.
Apply(pid int) error
// Cleanup will purge executor resources like cgroups.
Cleanup() error
// GetPIDs will return the processes overseen by the Containment
GetPIDs() PIDs
}