Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
ef5f97a4
Commit
ef5f97a4
authored
3 years ago
by
Seth Hoenig
Browse files
Options
Download
Email Patches
Plain Diff
wip functions for nonlinux
parent
a34d6198
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/lib/cgutil/cgutil_noop.go
+7
-2
client/lib/cgutil/cgutil_noop.go
with
7 additions
and
2 deletions
+7
-2
client/lib/cgutil/cgutil_noop.go
+
7
-
2
View file @
ef5f97a4
...
...
@@ -15,8 +15,8 @@ const (
// This is a read-only value.
var
UseV2
=
false
//
NewCpus
etManager creates a no-op CpusetManager for non-Linux operating systems.
func
NewCpus
etManager
(
string
,
hclog
.
Logger
)
CpusetManager
{
//
CreateCPUS
etManager creates a no-op CpusetManager for non-Linux operating systems.
func
CreateCPUS
etManager
(
string
,
hclog
.
Logger
)
CpusetManager
{
return
new
(
NoopCpusetManager
)
}
...
...
@@ -29,3 +29,8 @@ func FindCgroupMountpointDir() (string, error) {
func
GetCgroupParent
(
string
)
string
{
return
DefaultCgroupParent
}
// GetCPUsFromCgroup returns nothing for non-Linux operating systems.
func
GetCPUsFromCgroup
(
string
)
([]
uint16
,
error
)
{
return
nil
,
nil
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment