From f9c392f50a631a181bc2aa194b9c46504506d657 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Mon, 18 May 2020 18:05:02 -0700 Subject: V2 API Version Support * Update blang/semver to allow ParseTolerant() support * Provide helper functions for API handlers to obtain client's 'version' path variable focused on API endpoint tree: libpod vs. compat * Introduce new errors: * version not given in path, endpoints may determine if this is a hard error (ErrVersionNotGiven) * given version not supported (ErrVersionNotSupported), only a soft error if the handler is going to hijack the connection * Added unit tests for version parsing * bindings check version on connect: * client <= Server API version connection is continued * client >= Server API version connection fails Signed-off-by: Jhon Honce --- pkg/bindings/version.go | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 pkg/bindings/version.go (limited to 'pkg/bindings/version.go') diff --git a/pkg/bindings/version.go b/pkg/bindings/version.go deleted file mode 100644 index c833a644c..000000000 --- a/pkg/bindings/version.go +++ /dev/null @@ -1,3 +0,0 @@ -package bindings - -func (c Connection) Version() {} -- cgit v1.2.3-54-g00ecf