package roots

import "github.com/moby/policy-helpers/roots"

Index

Variables

var EmbeddedTUF embed.FS

Types

type SigstoreRootsConfig

type SigstoreRootsConfig struct {
	CachePath      string
	UpdateInterval time.Duration
	RequireOnline  bool
}

type Status

type Status struct {
	Error       error      `json:"error,omitempty"`
	LastUpdated *time.Time `json:"lastUpdated,omitempty"`
}

type TrustProvider

type TrustProvider struct {
	// contains filtered or unexported fields
}

func NewTrustProvider

func NewTrustProvider(cfg SigstoreRootsConfig) (*TrustProvider, error)

func (*TrustProvider) TrustedRoot

func (tp *TrustProvider) TrustedRoot(ctx context.Context) (*root.TrustedRoot, Status, error)

Source Files

embedded.go roots.go

Directories

PathSynopsis
roots/dhi
Version
v0.0.0-20260324161837-b7c0b994300b (latest)
Published
Mar 24, 2026
Platform
linux/amd64
Imports
17 packages
Last checked
1 hour ago

Tools for package owners.