func unpackAuthToken(auth string) (username string, password string, err error) {
	content, err := base64.StdEncoding.DecodeString(auth)
	if err != nil {
		return "", "", errors.Annotate(err, "doing base64 decode on the auth token")
	}
	parts := strings.Split(string(content), ":")
	if len(parts) < 2 {
		return "", "", errors.NotValidf("registry auth token")
	}
	return parts[0], parts[1], nil
}
// unpackAuthToken returns the unpacked username and password.
unpackAuthToken returns the unpacked username and password.
// unpackAuthToken returns the unpacked username and password .
func unpackAuthToken(auth string) (username string, password string, err error) {
	content, err := base64.StdEncoding.DecodeString(auth)
	if err != nil {
		return "", "", errors.Annotate(err, "doing base64 decode on the auth token")
	}
	parts := strings.Split(string(content), ":")
	if len(parts) < 2 {
		return "", "", errors.NotValidf("registry auth token")
	}
	return parts[0], parts[1], nil
}
func unpackAuthToken ( auth string ) ( username string , password string , err error ) { content , err := base64 . StdEncoding . DecodeString ( auth ) if err != nil { return " " , " " , errors . Annotate ( err , " " ) } parts := strings . Split ( string ( content ) , " " ) if len ( parts ) < 2 { return " " , " " , errors . NotValidf ( " " ) } return parts [ 0 ] , parts [ 1 ] , nil }
unpackAuthToken returns the unpacked username and password.
unpackAuthToken returns the unpacked username and password .