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
Click to show internal directories.
Click to hide internal directories.