summaryrefslogtreecommitdiff
path: root/vendor/github.com/opencontainers/runtime-tools/specerror/config-windows.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2017-12-18 13:53:42 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-18 21:19:30 +0000
commit34572abc707f2684cfcbfb64222497aeb842d662 (patch)
tree53d6190c5cb9d9142bdd18627fda2437c5ae7f14 /vendor/github.com/opencontainers/runtime-tools/specerror/config-windows.go
parent5770dc2640c216525ab84031e3712fcc46b3b087 (diff)
downloadpodman-34572abc707f2684cfcbfb64222497aeb842d662.tar.gz
podman-34572abc707f2684cfcbfb64222497aeb842d662.tar.bz2
podman-34572abc707f2684cfcbfb64222497aeb842d662.zip
Vendor in latest storage, image and runtime-tools
Need to pull in the latest containers/storage and containers/image to fix lots of issues. Also want to update runtime-tools to take advantage of newer generate code. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #152 Approved by: rhatdan
Diffstat (limited to 'vendor/github.com/opencontainers/runtime-tools/specerror/config-windows.go')
-rw-r--r--vendor/github.com/opencontainers/runtime-tools/specerror/config-windows.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/github.com/opencontainers/runtime-tools/specerror/config-windows.go b/vendor/github.com/opencontainers/runtime-tools/specerror/config-windows.go
new file mode 100644
index 000000000..58765286b
--- /dev/null
+++ b/vendor/github.com/opencontainers/runtime-tools/specerror/config-windows.go
@@ -0,0 +1,32 @@
+package specerror
+
+import (
+ "fmt"
+
+ rfc2119 "github.com/opencontainers/runtime-tools/error"
+)
+
+// define error codes
+const (
+ // WindowsLayerFoldersRequired represents "`layerFolders` MUST contain at least one entry."
+ WindowsLayerFoldersRequired = "`layerFolders` MUST contain at least one entry."
+ // WindowsHyperVPresent represents "If present, the container MUST be run with Hyper-V isolation."
+ WindowsHyperVPresent = "If present, the container MUST be run with Hyper-V isolation."
+ // WindowsHyperVOmit represents "If omitted, the container MUST be run as a Windows Server container."
+ WindowsHyperVOmit = "If omitted, the container MUST be run as a Windows Server container."
+)
+
+var (
+ layerfoldersRef = func(version string) (reference string, err error) {
+ return fmt.Sprintf(referenceTemplate, version, "config-windows.md#layerfolders"), nil
+ }
+ hypervRef = func(version string) (reference string, err error) {
+ return fmt.Sprintf(referenceTemplate, version, "config-windows.md#hyperv"), nil
+ }
+)
+
+func init() {
+ register(WindowsLayerFoldersRequired, rfc2119.Must, layerfoldersRef)
+ register(WindowsHyperVPresent, rfc2119.Must, hypervRef)
+ register(WindowsHyperVOmit, rfc2119.Must, hypervRef)
+}