client

package
v0.0.0-...-cef32d3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatadogClient

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

func NewDatadogClient

func NewDatadogClient(apiKey, appKey string) *DatadogClient

func (*DatadogClient) GetRequestCounts

func (c *DatadogClient) GetRequestCounts(ctx context.Context, monitoringRange int) (*RequestCountsResult, error)

type IstioClient

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

func NewIstioClient

func NewIstioClient(namespace, internalDestinationHost, externalDestinationHost string, config *rest.Config) (*IstioClient, error)

func (*IstioClient) CreateVirtualService

func (c *IstioClient) CreateVirtualService(ctx context.Context, host string, internalWeight, bufferWeight int) error

func (*IstioClient) DeleteVirtualService

func (c *IstioClient) DeleteVirtualService(ctx context.Context, host string) error

func (*IstioClient) ListVirtualService

func (c *IstioClient) ListVirtualService(ctx context.Context) (*v1alpha3.VirtualServiceList, error)

func (*IstioClient) UpdateVirtualService

func (c *IstioClient) UpdateVirtualService(ctx context.Context, host, currentResourceVersion string, internalWeight, bufferWeight int) error

type KubernetesClient

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

func NewKubernetesClient

func NewKubernetesClient(namespace string, config *rest.Config) (*KubernetesClient, error)

func (*KubernetesClient) ListHPA

type RequestCountsResult

type RequestCountsResult struct {
	TotalCounts float64
	MaxHost     string
	// contains filtered or unexported fields
}

func (*RequestCountsResult) GetCounts

func (r *RequestCountsResult) GetCounts(host string) float64

func (*RequestCountsResult) String

func (r *RequestCountsResult) String() string

Jump to

Keyboard shortcuts

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