package validation
import "github.com/theupdateframework/notary/tuf/validation"
Index ¶
- type ErrBadHierarchy
- type ErrBadRoot
- type ErrBadSnapshot
- type ErrBadTargets
- type ErrValidation
- type SerializableError
Types ¶
type ErrBadHierarchy ¶
ErrBadHierarchy represents missing metadata. Currently: a missing snapshot at this current time. When delegations are implemented it will also represent a missing delegation parent
func (ErrBadHierarchy) Error ¶
func (err ErrBadHierarchy) Error() string
type ErrBadRoot ¶
type ErrBadRoot struct { Msg string }
ErrBadRoot represents a failure validating the root
func (ErrBadRoot) Error ¶
func (err ErrBadRoot) Error() string
type ErrBadSnapshot ¶
type ErrBadSnapshot struct { Msg string }
ErrBadSnapshot represents a failure to validate the snapshot
func (ErrBadSnapshot) Error ¶
func (err ErrBadSnapshot) Error() string
type ErrBadTargets ¶
type ErrBadTargets struct { Msg string }
ErrBadTargets represents a failure to validate a targets (incl delegations)
func (ErrBadTargets) Error ¶
func (err ErrBadTargets) Error() string
type ErrValidation ¶
type ErrValidation struct { Msg string }
ErrValidation represents a general validation error
func (ErrValidation) Error ¶
func (err ErrValidation) Error() string
type SerializableError ¶
SerializableError is a struct that can be used to serialize an error as JSON
func NewSerializableError ¶
func NewSerializableError(err error) (*SerializableError, error)
NewSerializableError serializes one of the above errors into JSON
func (*SerializableError) UnmarshalJSON ¶
func (s *SerializableError) UnmarshalJSON(text []byte) (err error)
UnmarshalJSON attempts to unmarshal the error into the right type
Source Files ¶
- Version
- v0.7.0 (latest)
- Published
- Jan 14, 2021
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 12 hours ago –
Tools for package owners.