extclient

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareClient

func PrepareClient(stopCh <-chan struct{})

Types

type IstioClient

type IstioClient struct {
	// contains filtered or unexported fields
}
var Istio *IstioClient

func NewIstioClient

func NewIstioClient(clientset versionedClient.Interface, stopCh <-chan struct{}) *IstioClient

func (*IstioClient) AddHTTPFault

func (c *IstioClient) AddHTTPFault(ctx context.Context,
	namespace string,
	name string,
	faultyRouteNamePrefix string,
	fault *networkingv1beta1.HTTPFaultInjection, sourceLabels map[string]string, headers map[string]*networkingv1beta1.StringMatch) error

func (*IstioClient) GetVirtualServices

func (c *IstioClient) GetVirtualServices() []*beta1.VirtualService

func (*IstioClient) RemoveAllFaults

func (c *IstioClient) RemoveAllFaults(ctx context.Context, namespace string, name string, faultyRouteNamePrefix string) error

Jump to

Keyboard shortcuts

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