Skip to content

Commit b63820a

Browse files
authored
Merge pull request #3135 from sondavidb/add-dummy-file
pkg/defaults: add defaults_darwin.go
2 parents 389ab4f + c493afc commit b63820a

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

pkg/defaults/defaults_darwin.go

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
Copyright The containerd Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
// This is a dummy file to allow usage of library functions
18+
// on Darwin-based systems.
19+
// All functions and variables are empty/no-ops
20+
21+
package defaults
22+
23+
func CNIPath() string {
24+
return ""
25+
}
26+
27+
func CNINetConfPath() string {
28+
return ""
29+
}
30+
31+
func DataRoot() string {
32+
return ""
33+
}
34+
35+
func CgroupManager() string {
36+
return ""
37+
}
38+
39+
func HostsDirs() []string {
40+
return []string{}
41+
}
42+
43+
func HostGatewayIP() string {
44+
return ""
45+
}

0 commit comments

Comments
 (0)