Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
Artifact represents an OCI artifact/repository. It can either be a single manifest or an index (manifest list).
func NewIndexArtifact ¶
NewIndexArtifact creates a new OCI artifact of type index
func NewManifestArtifact ¶
NewManifestArtifact creates a new OCI artifact of type manifest
func (*Artifact) GetManifest ¶
GetManifest returns the manifest property
func (*Artifact) IsManifest ¶
func (*Artifact) MarshalJSON ¶
func (*Artifact) SetIndex ¶
SetIndex sets the index property. If the OCI artifact is of type manifest, an error is returned.
func (*Artifact) SetManifest ¶
SetManifest sets the manifest property. If the OCI artifact is of type index, an error is returned.
type Manifest ¶
type Manifest struct {
Descriptor ocispecv1.Descriptor
Data *ocispecv1.Manifest
}
Manifest represents am OCI image manifest
type RefSpec ¶
type RefSpec struct {
// Host is the hostname of a oci ref.
Host string
// Repository is the part of a reference without its hostname
Repository string
// +optional
Tag *string
// +optional
Digest *digest.Digest
}
RefSpec is a go internal representation of a oci reference.
Click to show internal directories.
Click to hide internal directories.