linkerd

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PrometheusURL   string            `yaml:"prometheusUrl"`
	ResourceQueries map[string]string `yaml:"resourceQueries"`
	EdgeQueries     map[string]string `yaml:"edgeQueries"`
}

type Linkerd

type Linkerd struct {
	// contains filtered or unexported fields
}

func NewLinkerdProvider

func NewLinkerdProvider(config Config) (*Linkerd, error)

func (*Linkerd) GetEdgeMetrics

func (l *Linkerd) GetEdgeMetrics(ctx context.Context,
	query mesh.Query,
	interval *metrics.Interval,
	details *mesh.ResourceDetails) (*metrics.TrafficMetricsList, error)

func (*Linkerd) GetResourceMetrics

func (l *Linkerd) GetResourceMetrics(ctx context.Context,
	query mesh.Query,
	interval *metrics.Interval) (*metrics.TrafficMetricsList, error)

func (*Linkerd) GetSupportedResources

func (l *Linkerd) GetSupportedResources(ctx context.Context) (*metav1.APIResourceList, error)

type Suite

type Suite struct {
	suite.Suite
	// contains filtered or unexported fields
}

Suite is a testing suite with a mock client and a handler instance

func (*Suite) SetupTest

func (s *Suite) SetupTest()

SetupTest sets up the tests suite with a handler and a mock client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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