Documentation
¶
Index ¶
Constants ¶
View Source
const PredicateType attestation.PredicateType = "text/json"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OptionFunc ¶
func WithJson ¶
func WithJson(data []byte) OptionFunc
func WithType ¶
func WithType(pt attestation.PredicateType) OptionFunc
type Parser ¶
type Parser struct{}
func (*Parser) Parse ¶
func (p *Parser) Parse(data []byte) (attestation.Predicate, error)
Parse generates a generic JSON predicate object from any JSON it gets.
func (*Parser) SupportsType ¶
func (p *Parser) SupportsType(testTypes ...attestation.PredicateType) bool
SupportsType always returns true because the json parser is a catchall predicate parser.
Click to show internal directories.
Click to hide internal directories.