Documentation
¶
Index ¶
- Constants
- func ExtractEnvelopes(manifest *attestation.AttestationManifest, predicateType string) ([]*att.Envelope, error)
- func FetchAttestationManifest(ctx context.Context, image string, platform *v1.Platform) (*attestation.AttestationManifest, error)
- func HttpTransport() http.RoundTripper
- func MultiKeychainAll() authn.Keychain
- func MultiKeychainOption() remote.Option
- func ParsePlatform(platformStr string) (*v1.Platform, error)
- func RefToPURL(ref string, platform *v1.Platform) (string, bool, error)
- func SplitDigest(digest string) (common.DigestSet, error)
- func WithOptions(ctx context.Context, platform *v1.Platform) []remote.Option
- func WithReferrersRepo(repo string) func(*ReferrersResolver) error
- func WithoutTag(image string) (string, error)
- type AttestationOptions
- type AttestationResolver
- type ImageDetailsResolver
- type ImageSpec
- type ImageSpecOption
- type NamedIndex
- type OCILayoutResolver
- func (r *OCILayoutResolver) Attestations(ctx context.Context, predicateType string) ([]*att.Envelope, error)
- func (r *OCILayoutResolver) ImageDescriptor(ctx context.Context) (*v1.Descriptor, error)
- func (r *OCILayoutResolver) ImageName(ctx context.Context) (string, error)
- func (r *OCILayoutResolver) ImagePlatform(ctx context.Context) (*v1.Platform, error)
- type Option
- type ReferrersResolver
- type RegistryImageDetailsResolver
- type RegistryResolver
- type SourceType
Constants ¶
View Source
const ( OciReferenceTarget = "org.opencontainers.image.ref.name" LocalPrefix = "oci://" RegistryPrefix = "docker://" OCI SourceType = "OCI" Docker SourceType = "Docker" )
Variables ¶
This section is empty.
Functions ¶
func ExtractEnvelopes ¶
func ExtractEnvelopes(manifest *attestation.AttestationManifest, predicateType string) ([]*att.Envelope, error)
func FetchAttestationManifest ¶
func FetchAttestationManifest(ctx context.Context, image string, platform *v1.Platform) (*attestation.AttestationManifest, error)
func HttpTransport ¶
func HttpTransport() http.RoundTripper
func MultiKeychainAll ¶ added in v0.1.6
func MultiKeychainOption ¶ added in v0.1.6
func ParsePlatform ¶ added in v0.1.5
ParsePlatform parses the provided platform string or attempts to obtain the platform of the current host system
func WithOptions ¶ added in v0.1.5
func WithReferrersRepo ¶ added in v0.1.5
func WithReferrersRepo(repo string) func(*ReferrersResolver) error
func WithoutTag ¶ added in v0.1.5
Types ¶
type AttestationOptions ¶ added in v0.1.5
type AttestationResolver ¶
type ImageDetailsResolver ¶ added in v0.1.5
type ImageSpec ¶ added in v0.1.5
type ImageSpec struct { // OCI or Docker Type SourceType // without oci:// or docker:// (name or path) Identifier string Platform *v1.Platform }
func ParseImageSpec ¶ added in v0.1.5
func ParseImageSpec(img string, options ...ImageSpecOption) (*ImageSpec, error)
func ParseImageSpecs ¶ added in v0.1.5
func ReplaceTagInSpec ¶ added in v0.1.8
type ImageSpecOption ¶ added in v0.1.5
func WithPlatform ¶ added in v0.1.5
func WithPlatform(platform string) ImageSpecOption
type NamedIndex ¶ added in v0.1.7
type NamedIndex struct { Index v1.ImageIndex Name string }
func IndexFromPath ¶ added in v0.1.7
func IndexFromPath(path string) (*NamedIndex, error)
func IndexFromRemote ¶ added in v0.1.7
func IndexFromRemote(image string) (*NamedIndex, error)
func LoadIndex ¶ added in v0.1.7
func LoadIndex(input *ImageSpec) (*NamedIndex, error)
type OCILayoutResolver ¶
type OCILayoutResolver struct { *attestation.AttestationManifest *ImageSpec }
implementation of AttestationResolver that closes over attestations from an oci layout
func NewOCILayoutAttestationResolver ¶ added in v0.1.5
func NewOCILayoutAttestationResolver(src *ImageSpec) (*OCILayoutResolver, error)
func (*OCILayoutResolver) Attestations ¶
func (*OCILayoutResolver) ImageDescriptor ¶ added in v0.1.8
func (r *OCILayoutResolver) ImageDescriptor(ctx context.Context) (*v1.Descriptor, error)
func (*OCILayoutResolver) ImageName ¶
func (r *OCILayoutResolver) ImageName(ctx context.Context) (string, error)
func (*OCILayoutResolver) ImagePlatform ¶ added in v0.1.5
type ReferrersResolver ¶ added in v0.1.5
type ReferrersResolver struct { ImageDetailsResolver // contains filtered or unexported fields }
func NewReferrersAttestationResolver ¶ added in v0.1.5
func NewReferrersAttestationResolver(src ImageDetailsResolver, options ...func(*ReferrersResolver) error) (*ReferrersResolver, error)
func (*ReferrersResolver) Attestations ¶ added in v0.1.5
type RegistryImageDetailsResolver ¶ added in v0.1.5
type RegistryImageDetailsResolver struct { *ImageSpec // contains filtered or unexported fields }
func NewRegistryImageDetailsResolver ¶ added in v0.1.5
func NewRegistryImageDetailsResolver(src *ImageSpec) (*RegistryImageDetailsResolver, error)
func (*RegistryImageDetailsResolver) ImageDescriptor ¶ added in v0.1.8
func (r *RegistryImageDetailsResolver) ImageDescriptor(ctx context.Context) (*v1.Descriptor, error)
func (*RegistryImageDetailsResolver) ImageName ¶ added in v0.1.5
func (r *RegistryImageDetailsResolver) ImageName(ctx context.Context) (string, error)
func (*RegistryImageDetailsResolver) ImagePlatform ¶ added in v0.1.5
type RegistryResolver ¶
type RegistryResolver struct { *RegistryImageDetailsResolver *attestation.AttestationManifest }
func NewRegistryAttestationResolver ¶ added in v0.1.5
func NewRegistryAttestationResolver(src *RegistryImageDetailsResolver) (*RegistryResolver, error)
func (*RegistryResolver) Attestations ¶
type SourceType ¶ added in v0.1.5
type SourceType string
Click to show internal directories.
Click to hide internal directories.