version

package
v4.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Libpod supports Libpod endpoints
	Libpod = Tree(iota)
	// Compat supports Libpod endpoints
	Compat

	// CurrentAPI announces what is the current API level
	CurrentAPI = Level(iota)
	// MinimalAPI announces what is the oldest API level supported
	MinimalAPI
)

Variables

View Source
var APIVersion = map[Tree]map[Level]semver.Version{
	Libpod: {
		CurrentAPI: Version,
		MinimalAPI: semver.MustParse("4.0.0"),
	},
	Compat: {
		CurrentAPI: semver.MustParse("1.41.0"),
		MinimalAPI: semver.MustParse("1.24.0"),
	},
}

APIVersion provides the current and minimal API versions for compat and libpod endpoint trees Note: GET|HEAD /_ping is never versioned and provides the API-Version and Libpod-API-Version headers to allow

clients to shop for the Version they wish to support
View Source
var Version = semver.MustParse(rawversion.RawVersion)

Version is the version of the build. NOTE: remember to bump the version at the top of the top-level README.md file when this is bumped.

Functions

This section is empty.

Types

type Level

type Level int

Level determines which API level, current or something from the past

type Tree

type Tree int

Tree determines which API endpoint tree for version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL