Documentation ¶ Index ¶ func GeneratePolicy(ctx context.Context, opts Options) (*policy.Policy, error) func WritePolicy(w io.Writer, pol *policy.Policy) error type Options 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 PreferECRPublic bool // Prefer AWS ECR Public Gallery (public.ecr.aws) when available } Options configures the pin operation Source Files ¶ View all Source files pin.go Click to show internal directories. Click to hide internal directories.