util

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 FetchClustersAsMap(ctx context.Context, client *XDSClient) (map[string]interface{}, error)

func FetchRoutes added in v0.0.3

func FetchRoutes(ctx context.Context, client *XDSClient) (*discoveryv3.DiscoveryResponse, error)

func FetchRoutesAsMap added in v0.0.3

func FetchRoutesAsMap(ctx context.Context, client *XDSClient) (map[string]interface{}, error)

Types

type EnvoyCPResource

type EnvoyCPResource struct {
	Items   map[string]interface{}
	Version string
}

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 NewXDSClientFromConfig(
	url string,
) *XDSClient

func (*XDSClient) Close

func (c *XDSClient) Close() error

func (*XDSClient) Connect

func (c *XDSClient) Connect() error

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)

Jump to

Keyboard shortcuts

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