package schemaversion
import "github.com/Microsoft/hcsshim/internal/schemaversion"
Index ¶
- func DetermineSchemaVersion(requestedSV *hcsschema.Version) *hcsschema.Version
- func IsSupported(sv *hcsschema.Version) error
- func IsV10(sv *hcsschema.Version) bool
- func IsV21(sv *hcsschema.Version) bool
- func IsV25(sv *hcsschema.Version) bool
- func SchemaV10() *hcsschema.Version
- func SchemaV21() *hcsschema.Version
- func SchemaV25() *hcsschema.Version
- func String(sv *hcsschema.Version) string
Functions ¶
func DetermineSchemaVersion ¶
DetermineSchemaVersion works out what schema version to use based on build and requested option.
func IsSupported ¶
isSupported determines if a given schema version is supported
func IsV10 ¶
IsV10 determines if a given schema version object is 1.0. This was the only thing supported in RS1..3. It lives on in RS5, but will be deprecated in a future release.
func IsV21 ¶
IsV21 determines if a given schema version object is 2.0. This was introduced in RS4, but not fully implemented. Recommended for applications using HCS in RS5 onwards.
func IsV25 ¶
V25 schema introduced much later. Required to support SNP.
func SchemaV10 ¶
SchemaV10 makes it easy for callers to get a v1.0 schema version object
func SchemaV21 ¶
SchemaV21 makes it easy for callers to get a v2.1 schema version object
func SchemaV25 ¶
SchemaV25 makes it easy for callers to get a v2.5 schema version object.
func String ¶
String returns a JSON encoding of a schema version object
Source Files ¶
- Version
- v0.11.7
- Published
- Jun 27, 2024
- Platform
- windows/amd64
- Imports
- 5 packages
- Last checked
- 1 hour ago –
Tools for package owners.