mirror of
https://github.com/criyle/go-judge.git
synced 2025-09-26 22:39:12 +08:00
17 lines
392 B
Go
17 lines
392 B
Go
package linuxcontainer
|
|
|
|
import (
|
|
"github.com/criyle/go-sandbox/container"
|
|
"github.com/criyle/go-sandbox/pkg/cgroup"
|
|
)
|
|
|
|
// EnvironmentBuilder defines the abstract builder for container environment
|
|
type EnvironmentBuilder interface {
|
|
Build() (container.Environment, error)
|
|
}
|
|
|
|
// CgroupBuilder builds cgroup for runner
|
|
type CgroupBuilder interface {
|
|
Build() (cg *cgroup.Cgroup, err error)
|
|
}
|