federation

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package federation provides multi-cluster snapshot aggregation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(localName string, local store.Snapshot, remotes map[string]store.Snapshot) store.Snapshot

Merge combines a local snapshot with remote snapshots, adding the cluster label to all findings.

Types

type RemoteSource

type RemoteSource struct {
	Name string
	URL  string
}

RemoteSource fetches a snapshot from a remote trustwatch instance.

func (*RemoteSource) Fetch

func (r *RemoteSource) Fetch(ctx context.Context) (store.Snapshot, error)

Fetch retrieves the snapshot from the remote /api/v1/snapshot endpoint.

Jump to

Keyboard shortcuts

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