Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetFullURL = func(u string) (string, error) { tokens := strings.Split(u, "@") if len(tokens) == 0 { return "", fmt.Errorf("GetFullURL: Invalid URL (%s)", u) } tokens = strings.Split(tokens[0], ":") if len(tokens) == 0 { return "", fmt.Errorf("GetFullURL: Invalid URL (%s)", u) } digest, err := crane.Digest(u) if err != nil { return "", errors.Wrap(err, "Getting digest from url failed") } return fmt.Sprintf("%s@%s", tokens[0], digest), nil }
GetFullURL gets the fully qualified container repository url
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.