mirror of https://github.com/docker/cli.git
cli/context/store: remove deprecated error-utilities
These were deprecated in de6020a240
, which
is part of docker 23.0, so users should have had a chance to migrate.
This removes IsErrContextDoesNotExist() and IsErrTLSDataDoesNotExist()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
3405eb1f41
commit
8b418be6d0
|
@ -494,20 +494,6 @@ func importEndpointTLS(tlsData *ContextTLSData, path string, data []byte) error
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsErrContextDoesNotExist checks if the given error is a "context does not exist" condition.
|
|
||||||
//
|
|
||||||
// Deprecated: use github.com/docker/docker/errdefs.IsNotFound()
|
|
||||||
func IsErrContextDoesNotExist(err error) bool {
|
|
||||||
return errdefs.IsNotFound(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
// IsErrTLSDataDoesNotExist checks if the given error is a "context does not exist" condition
|
|
||||||
//
|
|
||||||
// Deprecated: use github.com/docker/docker/errdefs.IsNotFound()
|
|
||||||
func IsErrTLSDataDoesNotExist(err error) bool {
|
|
||||||
return errdefs.IsNotFound(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
type contextdir string
|
type contextdir string
|
||||||
|
|
||||||
func contextdirOf(name string) contextdir {
|
func contextdirOf(name string) contextdir {
|
||||||
|
|
Loading…
Reference in New Issue