2016-07-14 03:50:54 +00:00
|
|
|
// Copyright 2016 CNI authors
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
package version
|
|
|
|
|
2016-08-22 06:48:04 +00:00
|
|
|
// Current reports the version of the CNI spec implemented by this library
|
|
|
|
func Current() string {
|
2016-09-06 19:24:12 +00:00
|
|
|
return "0.2.0"
|
2016-08-22 06:48:04 +00:00
|
|
|
}
|
|
|
|
|
2016-08-29 23:20:18 +00:00
|
|
|
// Legacy PluginInfo describes a plugin that is backwards compatible with the
|
|
|
|
// CNI spec version 0.1.0. In particular, a runtime compiled against the 0.1.0
|
|
|
|
// library ought to work correctly with a plugin that reports support for
|
|
|
|
// Legacy versions.
|
|
|
|
//
|
2016-09-06 19:24:12 +00:00
|
|
|
// Any future CNI spec versions which meet this definition should be added to
|
2016-08-29 23:20:18 +00:00
|
|
|
// this list.
|
2016-09-06 19:24:12 +00:00
|
|
|
var Legacy = PluginSupports("0.1.0", "0.2.0")
|