Documentation
¶
Index ¶
- Constants
- func IsCosignArtifact(ref string) bool
- func SemVerTagsFromAttestations(ctx context.Context, tag name.Tag, sourceAttestations ...attestTypes.Statement) []name.Tag
- type ArtefactInfo
- type Client
- func (c *Client) BuildArtefact(artifactPath, sourceDir string, output io.Writer) error
- func (c *Client) BuildAttestations(statements []attestTypes.Statement) (Layer, error)
- func (c *Client) Copy(ctx context.Context, srcRef, dstRef, digest string) error
- func (c *Client) Digest(ctx context.Context, ref string) (string, error)
- func (c *Client) Fetch(ctx context.Context, ref string, mediaTypes ...MediaType) ([]*ArtefactInfo, error)
- func (c *Client) FetchFromIndexOrImage(ctx context.Context, imageIndex ImageIndex, indexManifest *IndexManifest, ...) ([]*ArtefactInfo, map[Hash]*Manifest, error)
- func (c *Client) GetIndexOrImage(ctx context.Context, ref string) (v1.ImageIndex, *v1.IndexManifest, v1.Image, error)
- func (c *Client) GetSingleArtefact(ctx context.Context, ref string) (*ArtefactInfo, error)
- func (c *Client) ListRelated(ctx context.Context, ref, digest string) ([]Metadata, error)
- func (c *Client) Pull(ctx context.Context, ref string) (v1.Image, error)
- func (c *Client) PushArtefact(ctx context.Context, destinationRef, sourceDir string, timestamp *time.Time, ...) (*PackageRefs, error)
- type Descriptor
- type Hash
- type Image
- type ImageIndex
- type IndexManifest
- type Layer
- type Manifest
- type MediaType
- type Metadata
- type PackageRefs
- type Platform
Constants ¶
View Source
const ( ConfigMediaType MediaType = mediaTypePrefix + ".config.v1alpha1+json" ContentMediaType MediaType = mediaTypePrefix + ".content.v1alpha1.tar+gzip" AttestMediaType MediaType = mediaTypePrefix + ".attest.v1alpha1.jsonl+gzip" ContentInterpreterAnnotation = mediaTypePrefix + ".content-interpreter.v1alpha1" ContentInterpreterKubectlApply = mediaTypePrefix + ".kubectl-apply.v1alpha1.tar+gzip" AttestationsSummaryAnnotation = mediaTypePrefix + ".attestations-summary.v1alpha1" OCIManifestSchema1 = typesv1.OCIManifestSchema1 )
View Source
const (
UserAgent = "tape/v1"
)
Variables ¶
This section is empty.
Functions ¶
func IsCosignArtifact ¶
Types ¶
type ArtefactInfo ¶
type Client ¶
func (*Client) BuildArtefact ¶
based on https://github.com/fluxcd/pkg/blob/2a323d771e17af02dee2ccbbb9b445b78ab048e5/oci/client/build.go
func (*Client) BuildAttestations ¶
func (c *Client) BuildAttestations(statements []attestTypes.Statement) (Layer, error)
func (*Client) FetchFromIndexOrImage ¶
func (c *Client) FetchFromIndexOrImage(ctx context.Context, imageIndex ImageIndex, indexManifest *IndexManifest, image Image, mediaTypes ...MediaType) ([]*ArtefactInfo, map[Hash]*Manifest, error)
func (*Client) GetIndexOrImage ¶
func (*Client) GetSingleArtefact ¶
func (*Client) ListRelated ¶
func (*Client) PushArtefact ¶
func (c *Client) PushArtefact(ctx context.Context, destinationRef, sourceDir string, timestamp *time.Time, sourceAttestations ...attestTypes.Statement) (*PackageRefs, error)
based on https://github.com/fluxcd/pkg/blob/2a323d771e17af02dee2ccbbb9b445b78ab048e5/oci/client/push.go
type Descriptor ¶
type Descriptor = v1.Descriptor
type ImageIndex ¶
type ImageIndex = v1.ImageIndex
type IndexManifest ¶
type IndexManifest = v1.IndexManifest
type PackageRefs ¶
func (*PackageRefs) String ¶
func (p *PackageRefs) String() string
Click to show internal directories.
Click to hide internal directories.