Documentation ¶
Index ¶
- Variables
- type Blob
- type BlobStore
- func (s *BlobStore) Create(ctx context.Context, options ...distribution.BlobCreateOption) (distribution.BlobWriter, error)
- func (s *BlobStore) Delete(ctx context.Context, dgst digest.Digest) error
- func (s *BlobStore) Get(ctx context.Context, dgst digest.Digest) ([]byte, error)
- func (s *BlobStore) Open(ctx context.Context, dgst digest.Digest) (io.ReadSeekCloser, error)
- func (s *BlobStore) Put(ctx context.Context, mediaType string, p []byte) (distribution.Descriptor, error)
- func (s *BlobStore) Resume(ctx context.Context, id string) (distribution.BlobWriter, error)
- func (s *BlobStore) ServeBlob(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (s *BlobStore) Stat(ctx context.Context, dgst digest.Digest) (distribution.Descriptor, error)
- type ErrorCode
- type ErrorCodes
- type ManifestService
- func (s *ManifestService) Delete(ctx context.Context, dgst digest.Digest) error
- func (s *ManifestService) Exists(ctx context.Context, dgst digest.Digest) (bool, error)
- func (s *ManifestService) Get(ctx context.Context, dgst digest.Digest, ...) (distribution.Manifest, error)
- func (s *ManifestService) Put(ctx context.Context, manifest distribution.Manifest, ...) (digest.Digest, error)
- type Registry
- type Repository
- func (r *Repository) Blobs(ctx context.Context) distribution.BlobStore
- func (r *Repository) Manifests(ctx context.Context, options ...distribution.ManifestServiceOption) (distribution.ManifestService, error)
- func (r *Repository) Named() reference.Named
- func (r *Repository) PopulateImage() (reference.NamedTagged, distribution.Descriptor, distribution.Manifest)
- func (r *Repository) PopulateImageWithTag(tag string) (reference.NamedTagged, distribution.Descriptor, distribution.Manifest)
- func (r *Repository) PopulateLayer() distribution.Descriptor
- func (r *Repository) PopulateManifest() (distribution.Descriptor, *schema2.DeserializedManifest)
- func (r *Repository) PopulateManifestList() (distribution.Descriptor, *manifestlist.DeserializedManifestList)
- func (r *Repository) PopulateOciManifest() (distribution.Descriptor, *ocischema.DeserializedManifest)
- func (r *Repository) Tags(ctx context.Context) distribution.TagService
- type RepositoryStorage
- type Server
- type TagService
- func (s *TagService) All(ctx context.Context) ([]string, error)
- func (s *TagService) Get(ctx context.Context, tag string) (distribution.Descriptor, error)
- func (s *TagService) Lookup(ctx context.Context, digest distribution.Descriptor) ([]string, error)
- func (s *TagService) Tag(ctx context.Context, tag string, desc distribution.Descriptor) error
- func (s *TagService) Untag(ctx context.Context, tag string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCodeBlobUnknown = ErrorCode{Code: "BLOB_UNKNOWN", Message: "blob unknown to registry"} ErrCodeBlobUploadInvalid = ErrorCode{Code: "BLOB_UPLOAD_INVALID", Message: "blob upload invalid"} ErrCodeBlobUploadUnknown = ErrorCode{Code: "BLOB_UPLOAD_UNKNOWN", Message: "blob upload unknown to registry"} ErrCodeDigestInvalid = ErrorCode{Code: "DIGEST_INVALID", Message: "provided digest did not match uploaded content"} ErrCodeManifestBlobUnknown = ErrorCode{Code: "MANIFEST_BLOB_UNKNOWN", Message: "manifest references a manifest or blob unknown to registry"} ErrCodeManifestInvalid = ErrorCode{Code: "MANIFEST_INVALID", Message: "manifest invalid"} ErrCodeManifestUnknown = ErrorCode{Code: "MANIFEST_UNKNOWN", Message: "manifest unknown to registry"} ErrCodeNameInvalid = ErrorCode{Code: "NAME_INVALID", Message: "invalid repository name"} ErrCodeNameUnknown = ErrorCode{Code: "NAME_UNKNOWN", Message: "repository name not known to registry"} ErrCodeSizeInvalid = ErrorCode{Code: "SIZE_INVALID", Message: "provided length did not match content length"} ErrCodeDenied = ErrorCode{Code: "DENIED", Message: "requested access to the resource is denied"} ErrCodeUnsupported = ErrorCode{Code: "UNSUPPORTED", Message: "the operation is unsupported"} ErrCodeTooManyRequests = ErrorCode{Code: "TOOMANYREQUESTS", Message: "too many requests"} )
TODO use distribution/.../errcode
Functions ¶
This section is empty.
Types ¶
type Blob ¶
func (*Blob) References ¶
func (m *Blob) References() []distribution.Descriptor
type BlobStore ¶
type BlobStore struct {
Repo *Repository
}
type ErrorCodes ¶
type ErrorCodes struct {
Errors []ErrorCode `json:"errors"`
}
func NewErrorCodes ¶
func NewErrorCodes(ec ...ErrorCode) *ErrorCodes
func (*ErrorCodes) Error ¶
func (e *ErrorCodes) Error() string
type ManifestService ¶
type ManifestService struct {
Repo *Repository
}
func (*ManifestService) Delete ¶
func (s *ManifestService) Delete(ctx context.Context, dgst digest.Digest) error
func (*ManifestService) Exists ¶
func (s *ManifestService) Exists(ctx context.Context, dgst digest.Digest) (bool, error)
type Registry ¶
type Registry struct {
Repos map[string]*Repository
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) NewRepository ¶
func (r *Registry) NewRepository(named reference.Named) *Repository
type Repository ¶
type Repository struct { Storage *RepositoryStorage // contains filtered or unexported fields }
func NewRepository ¶
func NewRepository(named reference.Named) *Repository
func (*Repository) Blobs ¶
func (r *Repository) Blobs(ctx context.Context) distribution.BlobStore
func (*Repository) Manifests ¶
func (r *Repository) Manifests(ctx context.Context, options ...distribution.ManifestServiceOption) (distribution.ManifestService, error)
func (*Repository) Named ¶
func (r *Repository) Named() reference.Named
func (*Repository) PopulateImage ¶
func (r *Repository) PopulateImage() (reference.NamedTagged, distribution.Descriptor, distribution.Manifest)
func (*Repository) PopulateImageWithTag ¶
func (r *Repository) PopulateImageWithTag(tag string) (reference.NamedTagged, distribution.Descriptor, distribution.Manifest)
func (*Repository) PopulateLayer ¶
func (r *Repository) PopulateLayer() distribution.Descriptor
func (*Repository) PopulateManifest ¶
func (r *Repository) PopulateManifest() (distribution.Descriptor, *schema2.DeserializedManifest)
func (*Repository) PopulateManifestList ¶
func (r *Repository) PopulateManifestList() (distribution.Descriptor, *manifestlist.DeserializedManifestList)
func (*Repository) PopulateOciManifest ¶
func (r *Repository) PopulateOciManifest() (distribution.Descriptor, *ocischema.DeserializedManifest)
func (*Repository) Tags ¶
func (r *Repository) Tags(ctx context.Context) distribution.TagService
type RepositoryStorage ¶
type TagService ¶
type TagService struct {
Repo *Repository
}
func (*TagService) Get ¶
func (s *TagService) Get(ctx context.Context, tag string) (distribution.Descriptor, error)
func (*TagService) Lookup ¶
func (s *TagService) Lookup(ctx context.Context, digest distribution.Descriptor) ([]string, error)
Click to show internal directories.
Click to hide internal directories.