mirror of
https://github.com/containerd/containerd.git
synced 2026-08-11 17:47:07 +00:00
reference/docker: remove deprecated SplitHostname
This function is deprecated in distribution/reference, and removed in distribution/reference v0.6; reference.Domain or reference.Path should be used instead. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -128,16 +128,6 @@ func Path(named reference.Named) (name string) {
|
||||
return reference.Path(named)
|
||||
}
|
||||
|
||||
// SplitHostname splits a named reference into a
|
||||
// hostname and name string. If no valid hostname is
|
||||
// found, the hostname is empty and the full value
|
||||
// is returned as name
|
||||
//
|
||||
// Deprecated: Use [reference.Domain] or [reference.Path].
|
||||
func SplitHostname(named reference.Named) (string, string) {
|
||||
return reference.SplitHostname(named)
|
||||
}
|
||||
|
||||
// Parse parses s and returns a syntactically valid Reference.
|
||||
// If an error was encountered it is returned, along with a nil Reference.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user