embedded

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package embedded exposes the verified compiled catalog as a versioned, lowest-authority synchronization observation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	// contains filtered or unexported fields
}

Source observes one verified catalog compiled into the running binary.

func New

func New(catalog *catalogs.Catalog) *Source

New returns an embedded source over catalog.

func (*Source) Cleanup

func (s *Source) Cleanup() error

Cleanup releases source resources. The embedded source owns none.

func (*Source) Dependencies

func (s *Source) Dependencies() []sources.Dependency

Dependencies reports no external runtime dependencies.

func (*Source) ID

func (s *Source) ID() sources.ID

ID returns the stable embedded catalog source identity.

func (*Source) IsOptional

func (s *Source) IsOptional() bool

IsOptional reports that a selected embedded observation has no optional dependency that permits skipping it.

func (*Source) Name

func (s *Source) Name() string

Name returns the human-readable source name.

func (*Source) Observe

func (s *Source) Observe(ctx context.Context, _ ...sources.Option) (sources.Observation, error)

Observe returns the immutable embedded catalog with content-addressed revision evidence.

Jump to

Keyboard shortcuts

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