Merge pull request #8500 from AkihiroSuda/runtime-spec-v1.1.0-rc.2
go.mod: github.com/opencontainers/runtime-spec v1.1.0-rc.2
This commit is contained in:
		
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -46,7 +46,7 @@ require ( | ||||
| 	github.com/opencontainers/go-digest v1.0.0 | ||||
| 	github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b | ||||
| 	github.com/opencontainers/runc v1.1.7 | ||||
| 	github.com/opencontainers/runtime-spec v1.1.0-rc.1 | ||||
| 	github.com/opencontainers/runtime-spec v1.1.0-rc.2 | ||||
| 	github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626 | ||||
| 	github.com/opencontainers/selinux v1.11.0 | ||||
| 	github.com/pelletier/go-toml v1.9.5 | ||||
|   | ||||
							
								
								
									
										4
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								go.sum
									
									
									
									
									
								
							| @@ -792,8 +792,8 @@ github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/ | ||||
| github.com/opencontainers/runtime-spec v1.0.3-0.20200929063507-e6143ca7d51d/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-spec v1.0.3-0.20220825212826-86290f6a00fb/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-spec v1.1.0-rc.1 h1:wHa9jroFfKGQqFHj0I1fMRKLl0pfj+ynAqBxo3v6u9w= | ||||
| github.com/opencontainers/runtime-spec v1.1.0-rc.1/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-spec v1.1.0-rc.2 h1:ucBtEms2tamYYW/SvGpvq9yUN0NEVL6oyLEwDcTSrk8= | ||||
| github.com/opencontainers/runtime-spec v1.1.0-rc.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-tools v0.0.0-20181011054405-1d69bd0f9c39/go.mod h1:r3f7wjNzSs2extwzU3Y+6pKfobzPh+kKFJ3ofN+3nfs= | ||||
| github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626 h1:DmNGcqH3WDbV5k8OJ+esPWbqUOX5rMLR2PMvziDMJi0= | ||||
| github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626/go.mod h1:BRHJJd0E+cx42OybVYSgUvZmU0B8P9gZuRXlZUP7TKI= | ||||
|   | ||||
| @@ -14,7 +14,7 @@ require ( | ||||
| 	github.com/containerd/typeurl/v2 v2.1.1 | ||||
| 	github.com/opencontainers/go-digest v1.0.0 | ||||
| 	github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b | ||||
| 	github.com/opencontainers/runtime-spec v1.1.0-rc.1 | ||||
| 	github.com/opencontainers/runtime-spec v1.1.0-rc.2 | ||||
| 	github.com/stretchr/testify v1.8.2 | ||||
| 	go.opentelemetry.io/otel v1.14.0 | ||||
| 	go.opentelemetry.io/otel/sdk v1.14.0 | ||||
|   | ||||
| @@ -1186,8 +1186,8 @@ github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/ | ||||
| github.com/opencontainers/runtime-spec v1.0.3-0.20200929063507-e6143ca7d51d/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-spec v1.0.3-0.20220825212826-86290f6a00fb/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-spec v1.1.0-rc.1 h1:wHa9jroFfKGQqFHj0I1fMRKLl0pfj+ynAqBxo3v6u9w= | ||||
| github.com/opencontainers/runtime-spec v1.1.0-rc.1/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-spec v1.1.0-rc.2 h1:ucBtEms2tamYYW/SvGpvq9yUN0NEVL6oyLEwDcTSrk8= | ||||
| github.com/opencontainers/runtime-spec v1.1.0-rc.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= | ||||
| github.com/opencontainers/runtime-tools v0.0.0-20181011054405-1d69bd0f9c39/go.mod h1:r3f7wjNzSs2extwzU3Y+6pKfobzPh+kKFJ3ofN+3nfs= | ||||
| github.com/opencontainers/runtime-tools v0.9.0/go.mod h1:r3f7wjNzSs2extwzU3Y+6pKfobzPh+kKFJ3ofN+3nfs= | ||||
| github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626/go.mod h1:BRHJJd0E+cx42OybVYSgUvZmU0B8P9gZuRXlZUP7TKI= | ||||
|   | ||||
							
								
								
									
										23
									
								
								vendor/github.com/opencontainers/runtime-spec/specs-go/config.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								vendor/github.com/opencontainers/runtime-spec/specs-go/config.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -191,6 +191,8 @@ type Linux struct { | ||||
| 	IntelRdt *LinuxIntelRdt `json:"intelRdt,omitempty"` | ||||
| 	// Personality contains configuration for the Linux personality syscall | ||||
| 	Personality *LinuxPersonality `json:"personality,omitempty"` | ||||
| 	// TimeOffsets specifies the offset for supporting time namespaces. | ||||
| 	TimeOffsets map[string]LinuxTimeOffset `json:"timeOffsets,omitempty"` | ||||
| } | ||||
|  | ||||
| // LinuxNamespace is the configuration for a Linux namespace | ||||
| @@ -220,6 +222,8 @@ const ( | ||||
| 	UserNamespace LinuxNamespaceType = "user" | ||||
| 	// CgroupNamespace for isolating cgroup hierarchies | ||||
| 	CgroupNamespace LinuxNamespaceType = "cgroup" | ||||
| 	// TimeNamespace for isolating the clocks | ||||
| 	TimeNamespace LinuxNamespaceType = "time" | ||||
| ) | ||||
|  | ||||
| // LinuxIDMapping specifies UID/GID mappings | ||||
| @@ -232,6 +236,14 @@ type LinuxIDMapping struct { | ||||
| 	Size uint32 `json:"size"` | ||||
| } | ||||
|  | ||||
| // LinuxTimeOffset specifies the offset for Time Namespace | ||||
| type LinuxTimeOffset struct { | ||||
| 	// Secs is the offset of clock (in secs) in the container | ||||
| 	Secs int64 `json:"secs,omitempty"` | ||||
| 	// Nanosecs is the additional offset for Secs (in nanosecs) | ||||
| 	Nanosecs uint32 `json:"nanosecs,omitempty"` | ||||
| } | ||||
|  | ||||
| // POSIXRlimit type and restrictions | ||||
| type POSIXRlimit struct { | ||||
| 	// Type of the rlimit to set | ||||
| @@ -242,12 +254,13 @@ type POSIXRlimit struct { | ||||
| 	Soft uint64 `json:"soft"` | ||||
| } | ||||
|  | ||||
| // LinuxHugepageLimit structure corresponds to limiting kernel hugepages | ||||
| // LinuxHugepageLimit structure corresponds to limiting kernel hugepages. | ||||
| // Default to reservation limits if supported. Otherwise fallback to page fault limits. | ||||
| type LinuxHugepageLimit struct { | ||||
| 	// Pagesize is the hugepage size | ||||
| 	// Format: "<size><unit-prefix>B' (e.g. 64KB, 2MB, 1GB, etc.) | ||||
| 	// Pagesize is the hugepage size. | ||||
| 	// Format: "<size><unit-prefix>B' (e.g. 64KB, 2MB, 1GB, etc.). | ||||
| 	Pagesize string `json:"pageSize"` | ||||
| 	// Limit is the limit of "hugepagesize" hugetlb usage | ||||
| 	// Limit is the limit of "hugepagesize" hugetlb reservations (if supported) or usage. | ||||
| 	Limit uint64 `json:"limit"` | ||||
| } | ||||
|  | ||||
| @@ -382,7 +395,7 @@ type LinuxResources struct { | ||||
| 	Pids *LinuxPids `json:"pids,omitempty"` | ||||
| 	// BlockIO restriction configuration | ||||
| 	BlockIO *LinuxBlockIO `json:"blockIO,omitempty"` | ||||
| 	// Hugetlb limit (in bytes) | ||||
| 	// Hugetlb limits (in bytes). Default to reservation limits if supported. | ||||
| 	HugepageLimits []LinuxHugepageLimit `json:"hugepageLimits,omitempty"` | ||||
| 	// Network restriction configuration | ||||
| 	Network *LinuxNetwork `json:"network,omitempty"` | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/github.com/opencontainers/runtime-spec/specs-go/version.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/opencontainers/runtime-spec/specs-go/version.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -11,7 +11,7 @@ const ( | ||||
| 	VersionPatch = 0 | ||||
|  | ||||
| 	// VersionDev indicates development branch. Releases will be empty string. | ||||
| 	VersionDev = "-rc.1" | ||||
| 	VersionDev = "-rc.2" | ||||
| ) | ||||
|  | ||||
| // Version is the specification version that the package types support. | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							| @@ -343,7 +343,7 @@ github.com/opencontainers/image-spec/specs-go/v1 | ||||
| ## explicit; go 1.17 | ||||
| github.com/opencontainers/runc/libcontainer/devices | ||||
| github.com/opencontainers/runc/libcontainer/user | ||||
| # github.com/opencontainers/runtime-spec v1.1.0-rc.1 | ||||
| # github.com/opencontainers/runtime-spec v1.1.0-rc.2 | ||||
| ## explicit | ||||
| github.com/opencontainers/runtime-spec/specs-go | ||||
| # github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Estes
					Phil Estes