pin

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePolicy

func GeneratePolicy(ctx context.Context, opts Options) (*policy.Policy, error)

GeneratePolicy parses Dockerfiles and generates a source policy with pinned digests

func WritePolicy

func WritePolicy(w io.Writer, pol *policy.Policy) error

WritePolicy writes a policy to the given writer as JSON

Types

type Options

type Options struct {
	Dockerfiles []string
	PreferDHI   bool // Prefer Docker Hardened Images (dhi.io) when available
}

Options configures the pin operation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL