|
|
@ -19,6 +19,7 @@ package repo // import "helm.sh/helm/v3/pkg/repo"
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"crypto/rand"
|
|
|
|
"crypto/rand"
|
|
|
|
"encoding/base64"
|
|
|
|
"encoding/base64"
|
|
|
|
|
|
|
|
"encoding/json"
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"io/ioutil"
|
|
|
|
"io/ioutil"
|
|
|
|
"net/url"
|
|
|
|
"net/url"
|
|
|
@ -262,3 +263,8 @@ func ResolveReferenceURL(baseURL, refURL string) (string, error) {
|
|
|
|
parsedBaseURL.Path = strings.TrimSuffix(parsedBaseURL.Path, "/") + "/"
|
|
|
|
parsedBaseURL.Path = strings.TrimSuffix(parsedBaseURL.Path, "/") + "/"
|
|
|
|
return parsedBaseURL.ResolveReference(parsedRefURL).String(), nil
|
|
|
|
return parsedBaseURL.ResolveReference(parsedRefURL).String(), nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (e *Entry) String() string {
|
|
|
|
|
|
|
|
buf, _ := json.Marshal(e)
|
|
|
|
|
|
|
|
return string(buf)
|
|
|
|
|
|
|
|
}
|
|
|
|