manifest

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: BSD-3-Clause-Clear Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidJson = Error("manifest json invalid")
	ErrUnmarshal   = Error("manifest unmarshal")
)

Variables

This section is empty.

Functions

func Valid

func Valid(m []byte) error

Valid validates a manifest.json well-formed JSON validate against spec version validate all values in manifest check integrity of signatures, JWT validate URLs can be found

Types

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type Object

type Object struct {
	EncryptionInformation tdf3.EncryptionInformation `json:"encryptionInformation"`
	Payload               Payload                    `json:"payload"`
	SchemaVersion         string                     `json:"schemaVersion,omitempty"`
}

type Payload

type Payload struct {
	IsEncrypted bool   `json:"isEncrypted"`
	MimeType    string `json:"mimeType"`
	Protocol    string `json:"protocol"`
	Type        string `json:"type"`
	URL         string `json:"url"`
}

Jump to

Keyboard shortcuts

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