Documentation ¶
Overview ¶
Package grpc provides a gRPC implementation of the Envoy v2 xDS API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPI ¶
func NewAPI(log logrus.FieldLogger, t *contour.Translator) *grpc.Server
NewAPI returns a *grpc.Server which responds to the Envoy v2 xDS gRPC API.
Types ¶
type CDS ¶
type CDS struct {
ClusterCache
}
CDS implements the CDS v2 gRPC API.
type ClusterCache ¶
type ClusterCache interface { // Values returns a copy of the contents of the cache. // The slice and its contents should be treated as read-only. Values() []proto.Message // Register registers ch to receive a value when Notify is called. Register(chan int, int) }
ClusterCache holds a set of computed v2.Cluster resources.
type ClusterLoadAssignmentCache ¶
type ClusterLoadAssignmentCache interface { // Values returns a copy of the contents of the cache. // The slice and its contents should be treated as read-only. Values() []proto.Message // Register registers ch to receive a value when Notify is called. Register(chan int, int) }
ClusterLoadAssignmentCache holds a set of computed v2.ClusterLoadAssignment resources.
type EDS ¶
type EDS struct {
ClusterLoadAssignmentCache
}
EDS implements the EDS v2 gRPC API.
type LDS ¶
type LDS struct {
ListenerCache
}
LDS implements the LDS v2 gRPC API.
type ListenerCache ¶
type ListenerCache interface { // Values returns a copy of the contents of the cache. // The slice and its contents should be treated as read-only. Values() []proto.Message // Register registers ch to receive a value when Notify is called. Register(chan int, int) }
ListenerCache holds a set of computed v2.Listener resources.
type RDS ¶
type RDS struct {
HTTP, HTTPS interface {
// Values returns a copy of the contents of the cache.
// The slice and its contents should be treated as read-only.
Values() []proto.Message
}
*contour.Cond
}
RDS implements the RDS v2 gRPC API.
Click to show internal directories.
Click to hide internal directories.