Documentation ¶
Index ¶
- type EnvoyPatchPolicyStatuses
- type ResourceVersionTable
- func (t *ResourceVersionTable) AddOrReplaceXdsResource(rType resourcev3.Type, resource types.Resource, ...) error
- func (t *ResourceVersionTable) AddXdsResource(rType resourcev3.Type, xdsResource types.Resource) error
- func (t *ResourceVersionTable) DeepCopy() *ResourceVersionTable
- func (t *ResourceVersionTable) DeepCopyInto(out *ResourceVersionTable)
- func (t *ResourceVersionTable) GetXdsResources() XdsResources
- func (t *ResourceVersionTable) SetResources(rType resourcev3.Type, xdsResources []types.Resource)
- type XdsResources
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 ResourceVersionTable ¶
type ResourceVersionTable struct { XdsResources EnvoyPatchPolicyStatuses }
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 types.Resource, 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) DeepCopy ¶
func (t *ResourceVersionTable) DeepCopy() *ResourceVersionTable
DeepCopy generates a deep copy of the ResourceVersionTable object. This was generated by controller-gen and moved over from zz_generated.deepcopy.go to this file.
func (*ResourceVersionTable) DeepCopyInto ¶
func (t *ResourceVersionTable) DeepCopyInto(out *ResourceVersionTable)
DeepCopyInto copies the contents into the output object This was generated by controller-gen, moved from zz_generated.deepcopy.go and updated to use proto.Clone to deep copy the proto.Message
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
type XdsResources ¶
type XdsResources = map[resourcev3.Type][]types.Resource
XdsResources represents all the xds resources