cmd/gitbay-runner/cgroup_other.go

6521399c1c78577eb00f1bcf8947c0900b9cb62e
gitbay/cmd/gitbay-runner/cgroup_other.go

23 lines · 461 bytes

 1//go:build !linux
 2
 3package main
 4
 5import (
 6	"errors"
 7	"os"
 8	"os/exec"
 9)
10
11type buildCgroups struct{}
12
13func prepareBuildCgroups() (*buildCgroups, error) {
14	return nil, errors.New("build cgroups need Linux")
15}
16
17func (c *buildCgroups) create(id int64, trusted bool, memory, cpus string) (string, *os.File, error) {
18	return "", nil, errors.New("build cgroups need Linux")
19}
20
21func (c *buildCgroups) remove(dir string) {}
22
23func intoCgroup(cmd *exec.Cmd, f *os.File) {}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form