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
// ArtifactsInSingleDir represents the error code of artifacts place test
27
27
ArtifactsInSingleDir
28
28
29
-
// SpecVersion represents the error code of specfication version test
30
-
SpecVersion
31
-
32
-
// RootOnNonHyperV represents the error code of root setting test on non hyper-v containers
33
-
RootOnNonHyperV
34
-
// RootOnHyperV represents the error code of root setting test on hyper-v containers
35
-
RootOnHyperV
36
-
// PathFormatOnWindows represents the error code of the path format test on Window
37
-
PathFormatOnWindows
38
-
// PathName represents the error code of the path name test
39
-
PathName
40
-
// PathExistence represents the error code of the path existence test
41
-
PathExistence
42
-
// ReadonlyFilesystem represents the error code of readonly test
43
-
ReadonlyFilesystem
44
-
// ReadonlyOnWindows represents the error code of readonly setting test on Windows
45
-
ReadonlyOnWindows
29
+
// SpecVersionInSemVer represents "* **`ociVersion`** (string, Required) MUST be in [SemVer v2.0.0][semver-v2.0.0] format and specifies the version of the Open Container Runtime Specification with which the bundle complies."
30
+
SpecVersionInSemVer
31
+
// RootOnWindowsRequired represents "On Windows, for Windows Server Containers, this field is REQUIRED."
32
+
RootOnWindowsRequired
33
+
// RootOnHyperVNotSet represents "For [Hyper-V Containers](config-windows.md#hyperv), this field MUST NOT be set."
34
+
RootOnHyperVNotSet
35
+
// RootOnNonHyperVRequired represents "On all other platforms, this field is REQUIRED."
36
+
RootOnNonHyperVRequired
37
+
// RootPathOnWindowsGUID represents "* On Windows, `path` MUST be a [volume GUID path][naming-a-volume]."
38
+
RootPathOnWindowsGUID
39
+
// RootPathOnPosixConvention represents "The value SHOULD be the conventional `rootfs`."
40
+
RootPathOnPosixConvention
41
+
// RootPathExist represents "A directory MUST exist at the path declared by the field."
42
+
RootPathExist
43
+
// RootReadonlyImplement represents "* **`readonly`** (bool, OPTIONAL) If true then the root filesystem MUST be read-only inside the container, defaults to false."
44
+
RootReadonlyImplement
45
+
// RootReadonlyOnWindowsFalse represents "* On Windows, this field MUST be omitted or false."
46
+
RootReadonlyOnWindowsFalse
47
+
// MountsInOrder represents "The runtime MUST mount entries in the listed order."
48
+
MountsInOrder
49
+
// MountsDestAbs represents "This value MUST be an absolute path."
50
+
MountsDestAbs
51
+
// MountsDestOnWindowsNotNested represents "* Windows: one mount destination MUST NOT be nested within another mount (e.g., c:\\foo and c:\\foo\\bar)."
52
+
MountsDestOnWindowsNotNested
53
+
// MountsOptionsOnWindowsROSupport represents "* Windows: runtimes MUST support `ro`, mounting the filesystem read-only when `ro` is given."
54
+
MountsOptionsOnWindowsROSupport
55
+
// ProcRequiredAtStart represents "This property is REQUIRED when [`start`](runtime.md#start) is called."
56
+
ProcRequiredAtStart
57
+
// ProcConsoleSizeIgnore represents "Runtimes MUST ignore `consoleSize` if `terminal` is `false` or unset."
58
+
ProcConsoleSizeIgnore
59
+
// ProcCwdAbs represents "This value MUST be an absolute path."
60
+
ProcCwdAbs
61
+
// ProcArgsOneEntryRequired represents "This specification extends the IEEE standard in that at least one entry is REQUIRED, and that entry is used with the same semantics as `execvp`'s *file*."
62
+
ProcArgsOneEntryRequired
63
+
// PosixProcRlimitsTypeError represents "The runtime MUST [generate an error](runtime.md#errors) for any values which cannot be mapped to a relevant kernel interface"
64
+
PosixProcRlimitsTypeError
65
+
// PosixProcRlimitsTypeGet represents "For each entry in `rlimits`, a [`getrlimit(3)`][getrlimit.3] on `type` MUST succeed."
66
+
PosixProcRlimitsTypeGet
67
+
// PosixProcRlimitsSoftMatchCur represents "`rlim.rlim_cur` MUST match the configured value."
68
+
PosixProcRlimitsSoftMatchCur
69
+
// PosixProcRlimitsHardMatchMax represents "`rlim.rlim_max` MUST match the configured value."
70
+
PosixProcRlimitsHardMatchMax
71
+
// PosixProcRlimitsErrorOnDup represents "If `rlimits` contains duplicated entries with same `type`, the runtime MUST [generate an error](runtime.md#errors)."
72
+
PosixProcRlimitsErrorOnDup
73
+
// LinuxProcCapError represents "Any value which cannot be mapped to a relevant kernel interface MUST cause an error."
74
+
LinuxProcCapError
75
+
// LinuxProcOomScoreAdjSet represents "If `oomScoreAdj` is set, the runtime MUST set `oom_score_adj` to the given value."
76
+
LinuxProcOomScoreAdjSet
77
+
// LinuxProcOomScoreAdjNotSet represents "If `oomScoreAdj` is not set, the runtime MUST NOT change the value of `oom_score_adj`."
78
+
LinuxProcOomScoreAdjNotSet
79
+
// PlatformSpecConfOnWindowsSet represents "This MUST be set if the target platform of this spec is `windows`."
80
+
PlatformSpecConfOnWindowsSet
81
+
// PosixHooksPathAbs represents "This specification extends the IEEE standard in that **`path`** MUST be absolute."
82
+
PosixHooksPathAbs
83
+
// PosixHooksTimeoutPositive represents "If set, `timeout` MUST be greater than zero."
84
+
PosixHooksTimeoutPositive
85
+
// PosixHooksCalledInOrder represents "Hooks MUST be called in the listed order."
86
+
PosixHooksCalledInOrder
87
+
// PosixHooksStateToStdin represents "The [state](runtime.md#state) of the container MUST be passed to hooks over stdin so that they may do work appropriate to the current state of the container."
88
+
PosixHooksStateToStdin
89
+
// PrestartTiming represents "The pre-start hooks MUST be called after the [`start`](runtime.md#start) operation is called but [before the user-specified program command is executed](runtime.md#lifecycle)."
90
+
PrestartTiming
91
+
// PoststartTiming represents "The post-start hooks MUST be called [after the user-specified process is executed](runtime.md#lifecycle) but before the [`start`](runtime.md#start) operation returns."
92
+
PoststartTiming
93
+
// PoststopTiming represents "The post-stop hooks MUST be called [after the container is deleted](runtime.md#lifecycle) but before the [`delete`](runtime.md#delete) operation returns."
94
+
PoststopTiming
95
+
// AnnotationsKeyValueMap represents "Annotations MUST be a key-value map."
96
+
AnnotationsKeyValueMap
97
+
// AnnotationsKeyString represents "Keys MUST be strings."
98
+
AnnotationsKeyString
99
+
// AnnotationsKeyRequired represents "Keys MUST NOT be an empty string."
100
+
AnnotationsKeyRequired
101
+
// AnnotationsKeyReversedDomain represents "Keys SHOULD be named using a reverse domain notation - e.g. `com.example.myKey`."
102
+
AnnotationsKeyReversedDomain
103
+
// AnnotationsKeyReservedNS represents "Keys using the `org.opencontainers` namespace are reserved and MUST NOT be used by subsequent specifications."
104
+
AnnotationsKeyReservedNS
105
+
// AnnotationsKeyIgnoreUnknown represents "Implementations that are reading/processing this configuration file MUST NOT generate an error if they encounter an unknown annotation key."
106
+
AnnotationsKeyIgnoreUnknown
107
+
// AnnotationsValueString represents "Values MUST be strings."
108
+
AnnotationsValueString
109
+
// ExtensibilityIgnoreUnknownProp represents "Runtimes that are reading or processing this configuration file MUST NOT generate an error if they encounter an unknown property."
110
+
ExtensibilityIgnoreUnknownProp
111
+
// ValidValuesError represents "Runtimes that are reading or processing this configuration file MUST generate an error when invalid or unsupported values are encountered."
112
+
ValidValuesError
46
113
47
114
// DefaultFilesystems represents the error code of default filesystems test
specerror.NewError(specerror.SpecVersion, fmt.Errorf("%q is not valid SemVer: %s", version, err.Error()), rspec.Version))
253
+
specerror.NewError(specerror.SpecVersionInSemVer, fmt.Errorf("%q is not valid SemVer: %s", version, err.Error()), rspec.Version))
254
254
}
255
255
ifversion!=rspec.Version {
256
256
errs=multierror.Append(errs, fmt.Errorf("validate currently only handles version %s, but the supplied configuration targets %s", rspec.Version, version))
0 commit comments