Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// ResponseHeaders is the list of response headers the snapper will record
ResponseHeaders []string
}
type ParseOptions ¶
type SnapperImplementation ¶
type Snapshot ¶
type Snapshot struct {
ID string `json:"id"`
Type string `json:"type"`
Metadata Metadata `json:"metadata"`
Headers map[string][]string `json:"headers"`
Values map[string]any `json:"values"`
}
func (*Snapshot) AsStatement ¶
func (s *Snapshot) AsStatement() attestation.Statement
AsStatement converts the snapshot to an intoto attestation
func (*Snapshot) GetType ¶
func (s *Snapshot) GetType() attestation.PredicateType
func (*Snapshot) SetType ¶
func (s *Snapshot) SetType(t attestation.PredicateType) error
type Spec ¶
type SpecParser ¶
type SpecParser struct{}
func (*SpecParser) ParseWithOptions ¶
func (sp *SpecParser) ParseWithOptions(r io.Reader, opts *ParseOptions) (*Spec, error)
Click to show internal directories.
Click to hide internal directories.