Versions in this module Expand all Collapse all v0 v0.1.0 Mar 24, 2024 Changes in this version + const AnnotRefName + const AnnotReferrerConvert + const AnnotReferrerSubject + const HeaderDockerDigest + const LayoutVersion + const MediaTypeDocker2ForeignLayer + const MediaTypeDocker2ImageConfig + const MediaTypeDocker2Manifest + const MediaTypeDocker2ManifestList + const MediaTypeDockerPrefix + const MediaTypeOCI1Empty + const MediaTypeOCI1ForeignLayer + const MediaTypeOCI1ForeignLayerGzip + const MediaTypeOCI1ForeignLayerZstd + const MediaTypeOCI1ImageConfig + const MediaTypeOCI1Layer + const MediaTypeOCI1LayerGzip + const MediaTypeOCI1Manifest + const MediaTypeOCI1ManifestList + const MediaTypeOCIPrefix + var ErrBlobExists = errors.New("blob exists") + var ErrNotFound = errors.New("not found") + var ErrReadOnly = errors.New("read only storage") + var ErrRepoNotAllowed = errors.New("repository name is not permitted") + var RefTagRE = regexp.MustCompile(`^[a-zA-Z0-9_][a-zA-Z0-9._-]{0,127}$`) + func ErrRespJSON(w io.Writer, errList ...ErrorInfo) error + func ManifestReferrerDescriptor(raw []byte, d Descriptor) (Descriptor, Descriptor, error) + func MediaTypeAccepts(mt string, accepts []string) bool + func MediaTypeBase(orig string) string + func MediaTypeDetect(raw []byte) string + func MediaTypeForeign(mt string) bool + func MediaTypeImage(mt string) bool + func MediaTypeIndex(mt string) bool + type BytesReadCloser struct + func (brc BytesReadCloser) Close() error + type Descriptor struct + Annotations map[string]string + ArtifactType string + Data []byte + Digest digest.Digest + MediaType string + Platform *Platform + Size int64 + URLs []string + func (d Descriptor) Copy() Descriptor + type ErrorInfo struct + Code string + Detail string + Message string + func ErrInfoBlobUnknown(d string) ErrorInfo + func ErrInfoBlobUploadInvalid(d string) ErrorInfo + func ErrInfoBlobUploadUnknown(d string) ErrorInfo + func ErrInfoDenied(d string) ErrorInfo + func ErrInfoDigestInvalid(d string) ErrorInfo + func ErrInfoManifestBlobUnknown(d string) ErrorInfo + func ErrInfoManifestInvalid(d string) ErrorInfo + func ErrInfoManifestUnknown(d string) ErrorInfo + func ErrInfoNameInvalid(d string) ErrorInfo + func ErrInfoNameUnknown(d string) ErrorInfo + func ErrInfoSizeInvalid(d string) ErrorInfo + func ErrInfoTooManyRequests(d string) ErrorInfo + func ErrInfoUnauthorized(d string) ErrorInfo + func ErrInfoUnsupported(d string) ErrorInfo + type ErrorResp struct + Errors []ErrorInfo + type Index struct + Annotations map[string]string + ArtifactType string + Manifests []Descriptor + MediaType string + SchemaVersion int + Subject *Descriptor + func (i *Index) AddChildren(children []Descriptor) + func (i *Index) AddDesc(d Descriptor, opts ...IndexOpt) + func (i *Index) GetByAnnotation(key, val string) (Descriptor, error) + func (i *Index) RmDesc(d Descriptor) + func (i Index) Copy() Index + func (i Index) GetDesc(arg string) (Descriptor, error) + type IndexOpt func(*indexConf) + func IndexWithChildren(children []Descriptor) IndexOpt + type Layout struct + Version string + type Manifest struct + Annotations map[string]string + ArtifactType string + Config Descriptor + Layers []Descriptor + MediaType string + SchemaVersion int + Subject *Descriptor + type Platform struct + Architecture string + Features []string + OS string + OSFeatures []string + OSVersion string + Variant string + func (p Platform) Copy() Platform + type TagList struct + Name string + Tags []string