Documentation ¶
Index ¶
- func DiscoveryResourcesAsMap(clusters *discoveryv3.DiscoveryResponse) (map[string]interface{}, error)
- func FetchClusters(ctx context.Context, client *XDSClient) (*discoveryv3.DiscoveryResponse, error)
- func FetchClustersAsMap(ctx context.Context, client *XDSClient) (map[string]interface{}, error)
- func FetchRoutes(ctx context.Context, client *XDSClient) (*discoveryv3.DiscoveryResponse, error)
- func FetchRoutesAsMap(ctx context.Context, client *XDSClient) (map[string]interface{}, error)
- type EnvoyCPResource
- type EnvoyCPSnapshot
- type XDSClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoveryResourcesAsMap ¶
func DiscoveryResourcesAsMap(clusters *discoveryv3.DiscoveryResponse) (map[string]interface{}, error)
func FetchClusters ¶ added in v0.0.3
func FetchClusters(ctx context.Context, client *XDSClient) (*discoveryv3.DiscoveryResponse, error)
func FetchClustersAsMap ¶ added in v0.0.3
func FetchRoutes ¶ added in v0.0.3
func FetchRoutes(ctx context.Context, client *XDSClient) (*discoveryv3.DiscoveryResponse, error)
Types ¶
type EnvoyCPResource ¶
type EnvoyCPSnapshot ¶
type EnvoyCPSnapshot struct { VersionMap interface{} Resources []EnvoyCPResource }
type XDSClient ¶
type XDSClient struct {
// contains filtered or unexported fields
}
func NewXDSClient ¶
func NewXDSClient( url string, callOptions []grpc.CallOption, dialOptions []grpc.DialOption, nodeId string, ) *XDSClient
func NewXDSClientFromConfig ¶ added in v0.0.5
func (*XDSClient) FetchClusters ¶
func (c *XDSClient) FetchClusters(ctx context.Context) (*discoveryv3.DiscoveryResponse, error)
func (*XDSClient) FetchRoutes ¶
func (c *XDSClient) FetchRoutes(ctx context.Context) (*discoveryv3.DiscoveryResponse, error)
Click to show internal directories.
Click to hide internal directories.