resource

package
v0.36.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const DefaultAPIVersion = envoy_config_core_v3.ApiVersion_V3

DefaultAPIVersion is the api version

Variables

View Source
var (
	// ResponseTypes are supported response types.
	ResponseTypes = []string{
		types.EndpointTypeV3,
		types.ClusterTypeV3,
		types.RouteTypeV3,
		types.ListenerTypeV3,
	}
)

Functions

func GetResourceName

func GetResourceName(res cache.ResourceProto) string

GetResourceName returns the resource name for a valid xDS response type.

func GetResourceReferences

func GetResourceReferences(resources map[string]cache.Resource) map[string]cache.Resource

GetResourceReferences returns the names for dependent resources (EDS cluster names for CDS, RDS routes names for LDS).

Types

type EnvoyResource

type EnvoyResource struct {
	ProtoMessage cache.ResourceProto
}

func NewEnvoyResource

func NewEnvoyResource(r cache.ResourceProto) *EnvoyResource

func (*EnvoyResource) Name

func (e *EnvoyResource) Name() string

GetResourceName returns the resource name for a valid xDS response type.

func (*EnvoyResource) References

func (e *EnvoyResource) References() []cache.XdsResourceReference

func (*EnvoyResource) ResourceProto

func (e *EnvoyResource) ResourceProto() cache.ResourceProto

func (*EnvoyResource) Self

func (*EnvoyResource) Type

func (e *EnvoyResource) Type() string

Jump to

Keyboard shortcuts

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