types

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvoyPatchPolicyStatuses added in v0.5.0

type EnvoyPatchPolicyStatuses []*ir.EnvoyPatchPolicyStatus

type GlobalResourceStatus added in v1.9.0

type GlobalResourceStatus struct {
	// SystemTrustStore indicates the system_ca_certificates secret was emitted.
	SystemTrustStore bool
}

GlobalResourceStatus tracks which shared global resources were emitted during translation.

type ResourceVersionTable

type ResourceVersionTable struct {
	XdsResources
	EnvoyPatchPolicyStatuses
	GlobalResourceStatus
	// contains filtered or unexported fields
}

ResourceVersionTable holds all the translated xds resources

func (*ResourceVersionTable) AddOrReplaceXdsResource added in v0.4.0

func (t *ResourceVersionTable) AddOrReplaceXdsResource(rType resourcev3.Type, resource types.Resource, matchFunc func(existing, new types.Resource) bool) error

AddOrReplaceXdsResource will update an existing resource of rType according to matchFunc or add as a new resource if none satisfy the match criteria. It will only update the first match it finds, regardless if multiple resources satisfy the match criteria.

func (*ResourceVersionTable) AddXdsResource

func (t *ResourceVersionTable) AddXdsResource(rType resourcev3.Type, xdsResource types.Resource) error

func (*ResourceVersionTable) DisableClusterIndex added in v1.10.0

func (t *ResourceVersionTable) DisableClusterIndex()

DisableClusterIndex releases the construction index before patches or extension hooks.

func (*ResourceVersionTable) EnableClusterIndex added in v1.10.0

func (t *ResourceVersionTable) EnableClusterIndex()

EnableClusterIndex caches cluster names during resource construction. Add, replace, and SetResources maintain the index. Disable it before mutating clusters in place.

func (*ResourceVersionTable) FindCluster added in v1.10.0

func (t *ResourceVersionTable) FindCluster(name string) *clusterv3.Cluster

FindCluster returns the first cluster with name, or nil if it does not exist.

func (*ResourceVersionTable) GetXdsResources

func (t *ResourceVersionTable) GetXdsResources() XdsResources

GetXdsResources retrieves the translated xds resources saved in the translator context.

func (*ResourceVersionTable) SetResources added in v0.4.0

func (t *ResourceVersionTable) SetResources(rType resourcev3.Type, xdsResources []types.Resource)

SetResources will update an entire entry of the XdsResources for a certain type to the provided resources

func (*ResourceVersionTable) ValidateAll added in v1.2.7

func (t *ResourceVersionTable) ValidateAll() error

ValidateAll validates all the xds resources in the ResourceVersionTable

type XdsResources

type XdsResources = map[resourcev3.Type][]types.Resource

XdsResources represents all the xds resources

Jump to

Keyboard shortcuts

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