json

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const PredicateType attestation.PredicateType = "text/json"

Variables

This section is empty.

Functions

func New

func New(optsFn ...OptionFunc) (*generic.Predicate, error)

Types

type DataMap

type DataMap map[string]any

type OptionFunc

type OptionFunc func(*generic.Predicate) error

func WithJson

func WithJson(data []byte) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL