Documentation ¶
Index ¶
- type DatadogClient
- type IstioClient
- func (c *IstioClient) CreateVirtualService(ctx context.Context, host string, internalWeight, bufferWeight int) error
- func (c *IstioClient) DeleteVirtualService(ctx context.Context, host string) error
- func (c *IstioClient) ListVirtualService(ctx context.Context) (*v1alpha3.VirtualServiceList, error)
- func (c *IstioClient) UpdateVirtualService(ctx context.Context, host, currentResourceVersion string, ...) error
- type KubernetesClient
- type RequestCountsResult
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 (*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 ¶
type KubernetesClient ¶
type KubernetesClient struct {
// contains filtered or unexported fields
}
func NewKubernetesClient ¶
func NewKubernetesClient(namespace string, config *rest.Config) (*KubernetesClient, error)
func (*KubernetesClient) ListHPA ¶
func (c *KubernetesClient) ListHPA(ctx context.Context) (*v1.HorizontalPodAutoscalerList, error)
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
Click to show internal directories.
Click to hide internal directories.