Documentation
¶
Overview ¶
Package conformance runs the contract §12 checklist over an index or a manifest held in any OCI content source. hostweave, both guestweave CLIs and weaveoci run the same checks through this package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Child ¶
type Child struct {
Descriptor ocispec.Descriptor
Description spec.Description
Problems []spec.Problem
}
Child is the result for one manifest.
type Options ¶
type Options struct {
// Deep fetches every chunk and state blob and verifies content (rules 15 and 16).
Deep bool
}
Options select the optional checks.
type Report ¶
type Report struct {
Root ocispec.Descriptor
IndexProblems []spec.Problem
Children []Child
}
Report is the result of Check.
func Check ¶
func Check( ctx context.Context, f content.Fetcher, root ocispec.Descriptor, o Options, ) (Report, error)
Check validates root, which is either a contract index or a single contract manifest. The returned error reports a failure to read content, not a conformance failure; those are in the report.
Click to show internal directories.
Click to hide internal directories.