Documentation ¶
Index ¶
- Constants
- type Cache
- type Catalog
- type Config
- type InternalDst
- func (f *InternalDst) Exists(ctx context.Context, target ocispec.Descriptor) (bool, error)
- func (f *InternalDst) Fetch(ctx context.Context, target ocispec.Descriptor) (io.ReadCloser, error)
- func (f *InternalDst) Push(ctx context.Context, expected ocispec.Descriptor, content io.Reader) error
- func (f *InternalDst) Resolve(ctx context.Context, reference string) (ocispec.Descriptor, error)
- func (f *InternalDst) Tag(ctx context.Context, desc ocispec.Descriptor, reference string) error
- type Manifest
- type Manifests
- func (m *Manifests) GetIndex(repoURLPath string) (*repo.IndexFile, error)
- func (m *Manifests) Handle(resp http.ResponseWriter, req *http.Request) error
- func (m *Manifests) HandleCatalog(resp http.ResponseWriter, req *http.Request) error
- func (m *Manifests) HandleTags(resp http.ResponseWriter, req *http.Request) error
- func (m *Manifests) Read(repo string, name string) (Manifest, error)
- func (m *Manifests) Write(repo string, name string, n Manifest) error
Constants ¶
View Source
const ( MediaTypeManifestList = "application/vnd.docker.distribution.manifest.list.v2+json" MediaTypeManifest = "application/vnd.docker.distribution.manifest.v2+json" )
View Source
const (
ProxyRefAnnotationPrefix = "com.container-registry.proxy-ref-"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalDst ¶
type InternalDst struct {
// contains filtered or unexported fields
}
func NewInternalDst ¶
func NewInternalDst(repo string, blobPutHandler handler.BlobPutHandler, manifests *Manifests) *InternalDst
func (*InternalDst) Exists ¶
func (f *InternalDst) Exists(ctx context.Context, target ocispec.Descriptor) (bool, error)
func (*InternalDst) Fetch ¶
func (f *InternalDst) Fetch(ctx context.Context, target ocispec.Descriptor) (io.ReadCloser, error)
func (*InternalDst) Push ¶
func (f *InternalDst) Push(ctx context.Context, expected ocispec.Descriptor, content io.Reader) error
Push no need lock
func (*InternalDst) Resolve ¶
func (f *InternalDst) Resolve(ctx context.Context, reference string) (ocispec.Descriptor, error)
func (*InternalDst) Tag ¶
func (f *InternalDst) Tag(ctx context.Context, desc ocispec.Descriptor, reference string) error
type Manifests ¶
type Manifests struct {
// contains filtered or unexported fields
}
func NewManifests ¶
func (*Manifests) Handle ¶
https://github.com/opencontainers/distribution-spec/blob/master/spec.md#pulling-an-image-manifest https://github.com/opencontainers/distribution-spec/blob/master/spec.md#pushing-an-image
func (*Manifests) HandleCatalog ¶
func (*Manifests) HandleTags ¶
Click to show internal directories.
Click to hide internal directories.