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:
19
envd/internal/services/cgroups/noop.go
Normal file
19
envd/internal/services/cgroups/noop.go
Normal file
@ -0,0 +1,19 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cgroups
|
||||
|
||||
type NoopManager struct{}
|
||||
|
||||
var _ Manager = (*NoopManager)(nil)
|
||||
|
||||
func NewNoopManager() *NoopManager {
|
||||
return &NoopManager{}
|
||||
}
|
||||
|
||||
func (n NoopManager) GetFileDescriptor(ProcessType) (int, bool) {
|
||||
return 0, false
|
||||
}
|
||||
|
||||
func (n NoopManager) Close() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user