seed

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportBuiltinSeedData

func ImportBuiltinSeedData(ctx context.Context, registry service.RegistryService) error

func Key

func Key(serverName, version string) string

Key builds the standard key format for README seed entries (name@version).

Types

type ReadmeEntry

type ReadmeEntry struct {
	Content     string `json:"content"`
	ContentType string `json:"content_type,omitempty"`
	SizeBytes   int    `json:"size_bytes,omitempty"`
	Sha256      string `json:"sha256,omitempty"`
}

ReadmeEntry represents a README blob stored in a seed file.

func EncodeReadme

func EncodeReadme(content []byte, contentType string) ReadmeEntry

EncodeReadme produces a ReadmeEntry from raw README bytes and content type.

func (ReadmeEntry) Decode

func (e ReadmeEntry) Decode() ([]byte, string, error)

Decode returns the README bytes and content type from a seed entry.

type ReadmeFile

type ReadmeFile map[string]ReadmeEntry

ReadmeFile is the JSON structure persisted for README seeds. Each entry is keyed by server name and version.

Jump to

Keyboard shortcuts

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