istio

package
v0.0.0-...-de354b7 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIstioClient

func NewIstioClient(cluster string) (*versionedClient.Clientset, error)

Types

type VSHttpRouteInterface

type VSHttpRouteInterface interface {
	GetVS(ctx context.Context, name string) (*v1beta1.VirtualService, error)
	UpdateVS(ctx context.Context, virtualService *v1beta1.VirtualService) (*v1beta1.VirtualService, error)
	List(ctx context.Context, vsName, appName string) (*v1beta1.VirtualService, error)
	Get(ctx context.Context, vsName, routeName string) (*v1beta1.VirtualService, error)
	Create(ctx context.Context, vsName string, vr *VSRoute) (*v1beta1.VirtualService, error)
	Update(ctx context.Context, vsName, routeName string, vr *VSRoute) (*v1beta1.VirtualService, error)
	Delete(ctx context.Context, vsName, routeName string, vr *VSRoute) (*v1beta1.VirtualService, error)
}

func NewVSHttpRouteOperation

func NewVSHttpRouteOperation(cs *versionedClient.Clientset, namespace string) VSHttpRouteInterface

type VSHttpRouteOperation

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

func (VSHttpRouteOperation) Create

func (VSHttpRouteOperation) Delete

func (o VSHttpRouteOperation) Delete(ctx context.Context, vsName, routeName string, vr *VSRoute) (*v1beta1.VirtualService, error)

func (VSHttpRouteOperation) Get

func (o VSHttpRouteOperation) Get(ctx context.Context, vsName, routeName string) (*v1beta1.VirtualService, error)

func (VSHttpRouteOperation) GetVS

func (VSHttpRouteOperation) List

func (o VSHttpRouteOperation) List(ctx context.Context, vsName, appName string) (*v1beta1.VirtualService, error)

func (VSHttpRouteOperation) Update

func (o VSHttpRouteOperation) Update(ctx context.Context, vsName, routeName string, vr *VSRoute) (*v1beta1.VirtualService, error)

func (VSHttpRouteOperation) UpdateVS

type VSRoute

type VSRoute struct {
	AppName            string                                `json:"appName,omitempty"`
	Version            string                                `json:"version,omitempty"`
	Category           string                                `json:"category,omitempty"`
	DeployNamespace    string                                `json:"deployNamespace,omitempty"`
	CanaryWeight       int32                                 `json:"weight,omitempty"`
	CanaryWeightSwitch bool                                  `json:"switch,omitempty"`
	HttpMatch          []*networkingV1beta1.HTTPMatchRequest `json:"match,omitempty"`
}

Jump to

Keyboard shortcuts

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