Documentation ¶
Index ¶
- Constants
- func FindSnapshotByName(snapshots map[*model.Host]*cache.Snapshot, hostname string) (*cache.Snapshot, bool)
- func MakeEDSCluster(clusterName string, timeout time.Duration) *v2.Cluster
- func MakeEndpoint(clusterName string, addresses []model.Address) *v2.ClusterLoadAssignment
- func MakeHTTPListener(p *httpListenerParam) (*v2.Listener, error)
- func MakeRoute(routeName, clusterName string, traceSpan string) *v2.RouteConfiguration
- func MakeTCPListener(listenerName string, address model.Address, clusterName string, ...) (*v2.Listener, error)
- type HTTPHealthCheck
- type Hasher
- type SnapshotGen
- type XDSServer
Constants ¶
View Source
const (
// XdsCluster is the cluster name for the control server (used by non-ADS set-up)
XdsCluster = "xds_cluster"
)
Variables ¶
This section is empty.
Functions ¶
func FindSnapshotByName ¶
func FindSnapshotByName(snapshots map[*model.Host]*cache.Snapshot, hostname string) (*cache.Snapshot, bool)
FindSnapshotByName finds a snapshot by hostname from a snapshot map
func MakeEDSCluster ¶
MakeEDSCluster creates a EDS cluster.
func MakeEndpoint ¶
func MakeEndpoint(clusterName string, addresses []model.Address) *v2.ClusterLoadAssignment
MakeEndpoint creates a endpoint on a given address.
func MakeHTTPListener ¶
MakeHTTPListener creates a listener using either ADS or RDS for the route.
Types ¶
type HTTPHealthCheck ¶
type HTTPHealthCheck struct { Enabled bool PassThrough bool Endpoint string CacheTime time.Duration }
HTTPHealthCheck TODO: to be able to configure via ctlapi
func NewDefaultPassThroghHTTPHealthCheck ¶
func NewDefaultPassThroghHTTPHealthCheck() *HTTPHealthCheck
NewDefaultPassThroghHTTPHealthCheck creates default health check configuration.
func NewDisabledHTTPHealthCheck ¶
func NewDisabledHTTPHealthCheck() *HTTPHealthCheck
NewDisabledHTTPHealthCheck creates default health check configuration.
type SnapshotGen ¶
type SnapshotGen interface {
MakeSnapshotsOfService(serviceName string) (snapshots map[*model.Host]*cache.Snapshot, err error)
}
func NewSnapshotGen ¶
func NewSnapshotGen(is mcore.InventoryService, logger *logrus.Logger, vg mcore.VersionGenerator, envoyConf model.EnvoyConf) SnapshotGen
NewSnapshotGen creates snapshot generator instance.
type XDSServer ¶
func NewXDSServer ¶
func NewXDSServer(inventory mcore.InventoryService, vb mcore.VersionGenerator, conf model.MeshemConf, ctx context.Context, logger *logrus.Logger) XDSServer
NewXDSServer creates a xds server.
Click to show internal directories.
Click to hide internal directories.