catalog

package
v1.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpecVersion      = "1.0"
	A2AAgentCardType = "application/a2a-agent-card+json"
)

Variables

This section is empty.

Functions

func Marshal

func Marshal(value *Catalog) ([]byte, error)

func Validate

func Validate(value *Catalog) error

Types

type Catalog

type Catalog struct {
	SpecVersion string  `json:"specVersion"`
	Host        Host    `json:"host"`
	Entries     []Entry `json:"entries"`
}

func Build

func Build(module *manifest.Manifest, root, repository, ref string) (*Catalog, error)

type Entry

type Entry struct {
	Identifier  string         `json:"identifier"`
	DisplayName string         `json:"displayName"`
	Type        string         `json:"type"`
	URL         string         `json:"url,omitempty"`
	Data        map[string]any `json:"data,omitempty"`
}

type Host

type Host struct {
	DisplayName string `json:"displayName"`
	Identifier  string `json:"identifier,omitempty"`
}

Jump to

Keyboard shortcuts

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