snapshots

package
v0.0.0-...-03e2b80 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultNodeID

type DefaultNodeID struct{}

DefaultNodeID ... uses the default nodeID to let all clients relies on the same version of resources

func (DefaultNodeID) ID

func (DefaultNodeID) ID(node *corev3.Node) string

ID ...

type Snapshot

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

Snapshot ...

func New

func New() *Snapshot

New ... create a new instance of snapshot to capture and hold the discovery information at a point of time

func (*Snapshot) MuxCache

func (s *Snapshot) MuxCache() *cachev3.MuxCache

func (*Snapshot) Set

func (s *Snapshot) Set(ctx context.Context, version string, src []types.Resource)

Set ... set the mixed snapshot(multiplex of LDS, RDS, CDS) and a separate snapshot for eds if the src is EDS then set the EDS snapshot, otherwise, set the resource into mixed snapshot

type SnapshotSetter

type SnapshotSetter interface {
	Set(ctx context.Context, version string, src []types.Resource)
}

Jump to

Keyboard shortcuts

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