resourcemetadata

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package resourcemetadata validates publisher-supplied display information. It is never used to construct execution payloads or establish identity.

Index

Constants

View Source
const MaxBytes = 64 * 1024

Variables

This section is empty.

Functions

func DecodeObject

func DecodeObject(raw []byte, out any) error

DecodeObject rejects null, arrays, unknown fields, trailing JSON and oversized requests. Empty publication bodies are handled explicitly by the caller.

Types

type Filters

type Filters struct{ Provider, Capability, Tag, Sort string }

func ParseFilters

func ParseFilters(q url.Values, mcp bool) (Filters, error)

type Metadata

type Metadata struct {
	PublisherName string `json:"publisher_name,omitempty"`
	RepositoryURL string `json:"repository_url,omitempty"`
	License       string `json:"license,omitempty"`
	ReleaseNotes  string `json:"release_notes,omitempty"`
}

func Parse

func Parse(raw []byte) (Metadata, error)

Jump to

Keyboard shortcuts

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