Versions in this module Expand all Collapse all v0 v0.1.0 Jun 22, 2026 Changes in this version + func StartPodWatcher(ctx context.Context, cfg Config, builder *Builder) error + type Artifact struct + AccelerationKey string + Error string + ID int64 + ImageConfigDigest string + ImageDigestRef string + ImageManifestDigest string + IndexDigest string + IndexMediaType string + IndexSize int64 + Platform string + SourceImageRef string + Status string + type BuildAcceleration struct + PrefetchPathPatterns []string + Profile string + func (a BuildAcceleration) IndexAnnotations() map[string]string + func (a BuildAcceleration) Key() string + func (a BuildAcceleration) MinLayerSize(base int64) int64 + func (a BuildAcceleration) PrefetchMaxSpans() int + func (a BuildAcceleration) PrefetchPaths() []string + func (a BuildAcceleration) PrefetchProfile() string + func (a BuildAcceleration) SkipFileVerification() bool + func (a BuildAcceleration) WithImageConfig(config ocispec.ImageConfig) BuildAcceleration + type BuildTask struct + Acceleration BuildAcceleration + Platform string + PolicyNames []string + Reason string + RegistryAuths []RegistryAuth + SourceImageRef string + type Builder struct + func NewBuilder(cfg Config, store *Store, recorders ...PolicyStatusRecorder) *Builder + func (b *Builder) Build(ctx context.Context, task BuildTask) error + func (b *Builder) Enqueue(task BuildTask) bool + func (b *Builder) SetPolicyStatusRecorder(recorder PolicyStatusRecorder) + func (b *Builder) Start(ctx context.Context) + type Config struct + BuildTimeout time.Duration + ContainerdAddress string + ContainerdNS string + DBPath string + HermesRoot string + Kubeconfig string + ListenAddr string + MaxConcurrency int + MinLayerSize int64 + Optimizations []string + Platform string + PullImage bool + QueueSize int + SpanSize int64 + WatchKubernetes bool + WatchNamespace string + type HermesPolicyManager struct + func NewHermesPolicyManager(cfg *rest.Config) (*HermesPolicyManager, error) + func (m *HermesPolicyManager) MatchImage(image, defaultPlatform string) []PolicyBuildTarget + func (m *HermesPolicyManager) RecordBuild(ctx context.Context, policyNames []string, imageDigestRef, platform string, ...) + func (m *HermesPolicyManager) SetOnChange(fn func()) + func (m *HermesPolicyManager) Start(ctx context.Context) error + type HermesPolicyStore struct + func NewHermesPolicyStore() *HermesPolicyStore + func (s *HermesPolicyStore) Delete(name string) + func (s *HermesPolicyStore) MatchImage(image, defaultPlatform string) []PolicyBuildTarget + func (s *HermesPolicyStore) Upsert(policy *hermesv1.HermesPolicy) + type LayerArtifact struct + LayerDigest string + ZtocDigest string + ZtocSize int64 + type PolicyBuildTarget struct + Acceleration BuildAcceleration + Platform string + PolicyNames []string + type PolicyStatusRecorder interface + RecordBuild func(ctx context.Context, policyNames []string, imageDigestRef, platform string, ...) + type RegistryAuth struct + Host string + Secret string + Username string + type ResolveResponse struct + Image string + Platform string + SOCIIndex ocispec.Descriptor + Ztocs []ZtocResponse + type Server struct + func NewServer(cfg Config, store *Store) *Server + func (s *Server) ListenAndServe(ctx context.Context) error + type Store struct + func OpenStore(path string) (*Store, error) + func (s *Store) Close() error + func (s *Store) GetBlob(ctx context.Context, dgst string) (mediaType string, size int64, content []byte, err error) + func (s *Store) HasReady(ctx context.Context, imageDigestRef, platform, accelerationKey string) (bool, error) + func (s *Store) ListRecent(ctx context.Context, limit int) ([]Artifact, error) + func (s *Store) MarkBuilding(ctx context.Context, task BuildTask, imageDigestRef, manifestDigest string, ...) (bool, error) + func (s *Store) MarkFailed(ctx context.Context, ...) error + func (s *Store) PutReady(ctx context.Context, artifact Artifact, indexDesc ocispec.Descriptor, ...) error + func (s *Store) Resolve(ctx context.Context, imageDigestRef, platform, accelerationKey string) (*ResolveResponse, error) + type StringSet struct + func NewStringSet() *StringSet + func (s *StringSet) Add(v string) bool + func (s *StringSet) Delete(v string) + type ZtocResponse struct + LayerDigest string + Size int64 + ZtocDigest string v0.0.1-alpha.1 May 28, 2026