forked from wrenn/wrenn
Prototype with single host server and no admin panel (#2)
Reviewed-on: wrenn/sandbox#2 Co-authored-by: pptx704 <rafeed@omukk.dev> Co-committed-by: pptx704 <rafeed@omukk.dev>
This commit is contained in:
16
envd/internal/services/cgroups/iface.go
Normal file
16
envd/internal/services/cgroups/iface.go
Normal file
@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cgroups
|
||||
|
||||
type ProcessType string
|
||||
|
||||
const (
|
||||
ProcessTypePTY ProcessType = "pty"
|
||||
ProcessTypeUser ProcessType = "user"
|
||||
ProcessTypeSocat ProcessType = "socat"
|
||||
)
|
||||
|
||||
type Manager interface {
|
||||
GetFileDescriptor(procType ProcessType) (int, bool)
|
||||
Close() error
|
||||
}
|
||||
Reference in New Issue
Block a user