Documentation
¶
Index ¶
- func CheckRegistryMatch(a, b string) error
- func ExtractPathFromManifest(mf *v1.Manifest) (path string, isArchive bool, err error)
- func IsDigest(imageOrTag string) bool
- func NewCredentialsAggregate(opts ...func(aggregate *CredFuncAggregate)) auth.CredentialFunc
- func ParseManifestJSON(data io.Reader) (*v1.Manifest, error)
- func ParseOciImageString(r string) (repoName string, tag string, isDigest bool, err error)
- func ParseOciUrl(rawURL string) (*url.URL, error)
- func WithCredFunc(cf auth.CredentialFunc) func(*CredFuncAggregate)
- type CredFuncAggregate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRegistryMatch ¶
func ExtractPathFromManifest ¶
ExtractPathFromManifest returns the path information and whether the artifact contains an archive. The information is expected to be stored in the Manifest's annotations.
func NewCredentialsAggregate ¶ added in v0.5.0
func NewCredentialsAggregate(opts ...func(aggregate *CredFuncAggregate)) auth.CredentialFunc
NewCredentialsAggregate aggregates multiple auth.CredentialFunc into one function. Loads in the order they were added and returns an error if none are found.
func ParseManifestJSON ¶
ParseManifestJSON return the v1.manifest that is yielded by the reader.
func ParseOciImageString ¶
ParseOciImageString splits the image string into the repo, tag and indicates if it is an image that is identified by a digest.
func WithCredFunc ¶ added in v0.5.0
func WithCredFunc(cf auth.CredentialFunc) func(*CredFuncAggregate)
Types ¶
type CredFuncAggregate ¶ added in v0.5.0
type CredFuncAggregate struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.