mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-05-22 00:53:26 +00:00
* pull back in ocil * updates to OCIL funcs to handle cosign changes * add cosign logic * adjust Makefile to be a little more generic * cli updates to accomodate the cosign additions * add cosign drop-in funcs * impl for cosign functions for images & store copy * fixes and logging for cosign verify <iamge> * fix cosign verify logging * update go.mod Signed-off-by: Adam Martin <adam.martin@rancherfederal.com>
22 lines
608 B
Go
22 lines
608 B
Go
package artifacts
|
|
|
|
import "github.com/google/go-containerregistry/pkg/v1"
|
|
|
|
// OCI is the bare minimum we need to represent an artifact in an oci layout
|
|
// At a high level, it is not constrained by an Image's config, manifests, and layer ordinality
|
|
// This specific implementation fully encapsulates v1.Layer's within a more generic form
|
|
type OCI interface {
|
|
MediaType() string
|
|
|
|
Manifest() (*v1.Manifest, error)
|
|
|
|
RawConfig() ([]byte, error)
|
|
|
|
Layers() ([]v1.Layer, error)
|
|
}
|
|
|
|
type OCICollection interface {
|
|
// Contents returns the list of contents in the collection
|
|
Contents() (map[string]OCI, error)
|
|
}
|