You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specerror/bundle.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ import (
9
9
// define error codes
10
10
const (
11
11
// ConfigInRootBundleDir represents "This REQUIRED file MUST reside in the root of the bundle directory"
12
-
ConfigInRootBundleDir="This REQUIRED file MUST reside in the root of the bundle directory."
12
+
ConfigInRootBundleDirCode=0xa001+iota
13
13
// ConfigConstName represents "This REQUIRED file MUST be named `config.json`."
14
-
ConfigConstName="This REQUIRED file MUST be named `config.json`."
14
+
ConfigConstName
15
15
// ArtifactsInSingleDir represents "When supplied, while these artifacts MUST all be present in a single directory on the local filesystem, that directory itself is not part of the bundle."
16
-
ArtifactsInSingleDir="When supplied, while these artifacts MUST all be present in a single directory on the local filesystem, that directory itself is not part of the bundle."
Copy file name to clipboardExpand all lines: specerror/config-linux.go
+27-27Lines changed: 27 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -9,59 +9,59 @@ import (
9
9
// define error codes
10
10
const (
11
11
// DefaultFilesystems represents "The following filesystems SHOULD be made available in each container's filesystem:"
12
-
DefaultFilesystems="The following filesystems SHOULD be made available in each container's filesystem:"
12
+
DefaultFilesystemsCode=0xc001+iota
13
13
// NSPathAbs represents "This value MUST be an absolute path in the runtime mount namespace."
14
-
NSPathAbs="This value MUST be an absolute path in the runtime mount namespace."
14
+
NSPathAbs
15
15
// NSProcInPath represents "The runtime MUST place the container process in the namespace associated with that `path`."
16
-
NSProcInPath="The runtime MUST place the container process in the namespace associated with that `path`."
16
+
NSProcInPath
17
17
// NSPathMatchTypeError represents "The runtime MUST generate an error if `path` is not associated with a namespace of type `type`."
18
-
NSPathMatchTypeError="The runtime MUST generate an error if `path` is not associated with a namespace of type `type`."
18
+
NSPathMatchTypeError
19
19
// NSNewNSWithoutPath represents "If `path` is not specified, the runtime MUST create a new container namespace of type `type`."
20
-
NSNewNSWithoutPath="If `path` is not specified, the runtime MUST create a new container namespace of type `type`."
20
+
NSNewNSWithoutPath
21
21
// NSInheritWithoutType represents "If a namespace type is not specified in the `namespaces` array, the container MUST inherit the runtime namespace of that type."
22
-
NSInheritWithoutType="If a namespace type is not specified in the `namespaces` array, the container MUST inherit the runtime namespace of that type."
22
+
NSInheritWithoutType
23
23
// NSErrorOnDup represents "If a `namespaces` field contains duplicated namespaces with same `type`, the runtime MUST generate an error."
24
-
NSErrorOnDup="If a `namespaces` field contains duplicated namespaces with same `type`, the runtime MUST generate an error."
24
+
NSErrorOnDup
25
25
// UserNSMapOwnershipRO represents "The runtime SHOULD NOT modify the ownership of referenced filesystems to realize the mapping."
26
-
UserNSMapOwnershipRO="The runtime SHOULD NOT modify the ownership of referenced filesystems to realize the mapping."
26
+
UserNSMapOwnershipRO
27
27
// DevicesAvailable represents "devices (array of objects, OPTIONAL) lists devices that MUST be available in the container."
28
-
DevicesAvailable="devices (array of objects, OPTIONAL) lists devices that MUST be available in the container."
28
+
DevicesAvailable
29
29
// DevicesFileNotMatch represents "If a file already exists at `path` that does not match the requested device, the runtime MUST generate an error."
30
-
DevicesFileNotMatch="If a file already exists at `path` that does not match the requested device, the runtime MUST generate an error."
30
+
DevicesFileNotMatch
31
31
// DevicesMajMinRequired represents "`major, minor` (int64, REQUIRED unless `type` is `p`) - major, minor numbers for the device."
32
-
DevicesMajMinRequired="`major, minor` (int64, REQUIRED unless `type` is `p`) - major, minor numbers for the device."
32
+
DevicesMajMinRequired
33
33
// DevicesErrorOnDup represents "The same `type`, `major` and `minor` SHOULD NOT be used for multiple devices."
34
-
DevicesErrorOnDup="The same `type`, `major` and `minor` SHOULD NOT be used for multiple devices."
34
+
DevicesErrorOnDup
35
35
// DefaultDevices represents "In addition to any devices configured with this setting, the runtime MUST also supply default devices."
36
-
DefaultDevices="In addition to any devices configured with this setting, the runtime MUST also supply default devices."
36
+
DefaultDevices
37
37
// CgroupsPathAbsOrRel represents "The value of `cgroupsPath` MUST be either an absolute path or a relative path."
38
-
CgroupsPathAbsOrRel="The value of `cgroupsPath` MUST be either an absolute path or a relative path."
38
+
CgroupsPathAbsOrRel
39
39
// CgroupsAbsPathRelToMount represents "In the case of an absolute path (starting with `/`), the runtime MUST take the path to be relative to the cgroups mount point."
40
-
CgroupsAbsPathRelToMount="In the case of an absolute path (starting with `/`), the runtime MUST take the path to be relative to the cgroups mount point."
40
+
CgroupsAbsPathRelToMount
41
41
// CgroupsPathAttach represents "If the value is specified, the runtime MUST consistently attach to the same place in the cgroups hierarchy given the same value of `cgroupsPath`."
42
-
CgroupsPathAttach="If the value is specified, the runtime MUST consistently attach to the same place in the cgroups hierarchy given the same value of `cgroupsPath`."
42
+
CgroupsPathAttach
43
43
// CgroupsPathError represents "Runtimes MAY consider certain `cgroupsPath` values to be invalid, and MUST generate an error if this is the case."
44
-
CgroupsPathError="Runtimes MAY consider certain `cgroupsPath` values to be invalid, and MUST generate an error if this is the case."
44
+
CgroupsPathError
45
45
// DevicesApplyInOrder represents "The runtime MUST apply entries in the listed order."
46
-
DevicesApplyInOrder="The runtime MUST apply entries in the listed order."
46
+
DevicesApplyInOrder
47
47
// BlkIOWeightOrLeafWeightExist represents "You MUST specify at least one of `weight` or `leafWeight` in a given entry, and MAY specify both."
48
-
BlkIOWeightOrLeafWeightExist="You MUST specify at least one of `weight` or `leafWeight` in a given entry, and MAY specify both."
48
+
BlkIOWeightOrLeafWeightExist
49
49
// IntelRdtPIDWrite represents "If `intelRdt` is set, the runtime MUST write the container process ID to the `<container-id>/tasks` file in a mounted `resctrl` pseudo-filesystem, using the container ID from `start` and creating the `container-id` directory if necessary."
50
-
IntelRdtPIDWrite="If `intelRdt` is set, the runtime MUST write the container process ID to the `<container-id>/tasks` file in a mounted `resctrl` pseudo-filesystem, using the container ID from `start` and creating the `<container-id>` directory if necessary."
50
+
IntelRdtPIDWrite
51
51
// IntelRdtNoMountedResctrlError represents "If no mounted `resctrl` pseudo-filesystem is available in the runtime mount namespace, the runtime MUST generate an error."
52
-
IntelRdtNoMountedResctrlError="If no mounted `resctrl` pseudo-filesystem is available in the runtime mount namespace, the runtime MUST generate an error."
52
+
IntelRdtNoMountedResctrlError
53
53
// NotManipResctrlWithoutIntelRdt represents "If `intelRdt` is not set, the runtime MUST NOT manipulate any `resctrl` pseudo-filesystems."
54
-
NotManipResctrlWithoutIntelRdt="If `intelRdt` is not set, the runtime MUST NOT manipulate any `resctrl` pseudo-filesystems."
54
+
NotManipResctrlWithoutIntelRdt
55
55
// IntelRdtL3CacheSchemaWrite represents "If `l3CacheSchema` is set, runtimes MUST write the value to the `schemata` file in the `<container-id>` directory discussed in `intelRdt`."
56
-
IntelRdtL3CacheSchemaWrite="If `l3CacheSchema` is set, runtimes MUST write the value to the `schemata` file in the `<container-id>` directory discussed in `intelRdt`."
56
+
IntelRdtL3CacheSchemaWrite
57
57
// IntelRdtL3CacheSchemaNotWrite represents "If `l3CacheSchema` is not set, runtimes MUST NOT write to `schemata` files in any `resctrl` pseudo-filesystems."
58
-
IntelRdtL3CacheSchemaNotWrite="If `l3CacheSchema` is not set, runtimes MUST NOT write to `schemata` files in any `resctrl` pseudo-filesystems."
58
+
IntelRdtL3CacheSchemaNotWrite
59
59
// SeccSyscallsNamesRequired represents "`names` MUST contain at least one entry."
60
-
SeccSyscallsNamesRequired="`names` MUST contain at least one entry."
60
+
SeccSyscallsNamesRequired
61
61
// MaskedPathsAbs represents "maskedPaths (array of strings, OPTIONAL) will mask over the provided paths inside the container so that they cannot be read. The values MUST be absolute paths in the container namespace."
62
-
MaskedPathsAbs="maskedPaths (array of strings, OPTIONAL) will mask over the provided paths inside the container so that they cannot be read. The values MUST be absolute paths in the container namespace."
62
+
MaskedPathsAbs
63
63
// ReadonlyPathsAbs represents "readonlyPaths (array of strings, OPTIONAL) will set the provided paths as readonly inside the container. The values MUST be absolute paths in the container namespace."
64
-
ReadonlyPathsAbs="readonlyPaths (array of strings, OPTIONAL) will set the provided paths as readonly inside the container. The values MUST be absolute paths in the container namespace."
0 commit comments