Documentation
¶
Index ¶
- func GetBlobList(blobListJSON distribution.Manifest) ([]digest.Digest, error)
- func GetImageManifestDigest(payload []byte, plat v1.Platform) (digest.Digest, error)
- func Login(ctx context.Context, authConfig *types.AuthConfig) error
- func NewRepository(ctx context.Context, authConfig types.AuthConfig, repoName string, ...) (distribution.Repository, error)
- func NewV2Repository(named reference.Named, actions ...string) (distribution.Repository, error)
- func PlatformSpecFromOCI(p *v1.Platform) *manifestlist.PlatformSpec
- type BlobList
- type Config
- type ImageManifest
- type ImagePuller
- type ImagePusher
- type ManifestList
- type Puller
- type Pusher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlobList ¶
func GetBlobList(blobListJSON distribution.Manifest) ([]digest.Digest, error)
func GetImageManifestDigest ¶
func NewRepository ¶
func NewRepository(ctx context.Context, authConfig types.AuthConfig, repoName string, config registryConfig, actions ...string) (distribution.Repository, error)
func NewV2Repository ¶
func NewV2Repository(named reference.Named, actions ...string) (distribution.Repository, error)
func PlatformSpecFromOCI ¶
func PlatformSpecFromOCI(p *v1.Platform) *manifestlist.PlatformSpec
PlatformSpecFromOCI creates a platform spec from OCI platform
Types ¶
type BlobList ¶
type BlobList struct {
Layers []distribution.Descriptor `json:"layers"`
Config distribution.Descriptor `json:"config"`
MediaType string `json:"mediaType"`
Schema int `json:"schemaVersion"`
}
BlobList this package unmarshal blobs from json into a BlobList struct then return a slice of blob digest
type ImageManifest ¶
type ImagePuller ¶
type ImagePuller struct {
// contains filtered or unexported fields
}
type ImagePusher ¶
type ImagePusher struct {
// contains filtered or unexported fields
}
type ManifestList ¶
type ManifestList struct {
List []ImageManifest `json:"manifests"`
MediaType string `json:"mediaType"`
Schema int `json:"schemaVersion"`
}
ManifestList this package unmarshal manifests from json into a ManifestList struct then choose corresponding manifest by platform
Click to show internal directories.
Click to hide internal directories.