iosnapshot

package
v0.11.5-merged-prereqs Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History

type History interface {
	// SetApiSnapshot sets the latest ApiSnapshot
	SetApiSnapshot(latestInput *v1snap.ApiSnapshot)
	// SetKubeGatewayClient sets the client to use for Kubernetes CRUD operations
	SetKubeGatewayClient(client client.Client)
	// GetRedactedApiSnapshot gets an in-memory copy of the ApiSnapshot
	// Any sensitive data contained in the Snapshot will either be explicitly redacted
	// or entirely excluded
	GetRedactedApiSnapshot(ctx context.Context) *v1snap.ApiSnapshot
	// GetInputSnapshot gets the input snapshot for all components.
	GetInputSnapshot(ctx context.Context) ([]byte, error)
	// GetProxySnapshot returns the Proxies generated for all components.
	GetProxySnapshot(ctx context.Context) ([]byte, error)
	// GetXdsSnapshot returns the entire cache of xDS snapshots
	// NOTE: This contains sensitive data, as it is the exact inputs that used by Envoy
	GetXdsSnapshot(ctx context.Context) ([]byte, error)
}

History represents an object that maintains state about the running system The ControlPlane will use the Setters to update the last known state, and the Getters will be used by the Admin Server

func NewHistory

func NewHistory(cache cache.SnapshotCache) History

NewHistory returns an implementation of the History interface

Jump to

Keyboard shortcuts

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