Documentation
¶
Index ¶
- Constants
- type Implementation
- type MergeOptions
- type Options
- type VexCtl
- func (vexctl *VexCtl) Apply(r *sarif.Report, vexDocs []*vex.VEX) (finalReport *sarif.Report, err error)
- func (vexctl *VexCtl) ApplyFiles(r *sarif.Report, files []string) (*sarif.Report, error)
- func (vexctl *VexCtl) Attach(ctx context.Context, att *attestation.Attestation, imageRefs []string) (err error)
- func (vexctl *VexCtl) Attest(vexDataPath string, imageRefs []string) (*attestation.Attestation, error)
- func (vexctl *VexCtl) Merge(ctx context.Context, opts *MergeOptions, vexes []*vex.VEX) (*vex.VEX, error)
- func (vexctl *VexCtl) MergeFiles(ctx context.Context, opts *MergeOptions, filePaths []string) (*vex.VEX, error)
- func (vexctl *VexCtl) VexFromURI(ctx context.Context, uri string) (vexData *vex.VEX, err error)
Constants ¶
View Source
const IntotoPayloadType = "application/vnd.in-toto+json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementation ¶
type Implementation interface { ApplySingleVEX(*sarif.Report, *vex.VEX) (*sarif.Report, error) SortDocuments([]*vex.VEX) []*vex.VEX OpenVexData(Options, []string) ([]*vex.VEX, error) Sort(docs []*vex.VEX) []*vex.VEX AttestationBytes(*attestation.Attestation) ([]byte, error) Attach(context.Context, *attestation.Attestation, string) error SourceType(uri string) (string, error) ReadImageAttestations(context.Context, Options, string) ([]*vex.VEX, error) Merge(context.Context, *MergeOptions, []*vex.VEX) (*vex.VEX, error) LoadFiles(context.Context, []string) ([]*vex.VEX, error) }
type MergeOptions ¶ added in v0.1.0
type VexCtl ¶
type VexCtl struct { Options Options // contains filtered or unexported fields }
func (*VexCtl) Apply ¶
func (vexctl *VexCtl) Apply(r *sarif.Report, vexDocs []*vex.VEX) (finalReport *sarif.Report, err error)
Apply takes a sarif report and applies one or more vex documents
func (*VexCtl) ApplyFiles ¶
ApplyFiles takes a list of paths to vex files and applies them to a report
func (*VexCtl) Attach ¶
func (vexctl *VexCtl) Attach(ctx context.Context, att *attestation.Attestation, imageRefs []string) (err error)
Attach attaches an attestation to a list of images
func (*VexCtl) Attest ¶
func (vexctl *VexCtl) Attest(vexDataPath string, imageRefs []string) (*attestation.Attestation, error)
Generate an attestation from a VEX
func (*VexCtl) Merge ¶ added in v0.1.0
func (vexctl *VexCtl) Merge(ctx context.Context, opts *MergeOptions, vexes []*vex.VEX) (*vex.VEX, error)
Merge combines several documents into one
func (*VexCtl) MergeFiles ¶ added in v0.1.0
func (vexctl *VexCtl) MergeFiles(ctx context.Context, opts *MergeOptions, filePaths []string) (*vex.VEX, error)
MergeFiles is like Merge but takes filepaths instead of actual VEX documents
Click to show internal directories.
Click to hide internal directories.