Documentation ¶
Index ¶
- func NewIstioClient(cluster string) (*versionedClient.Clientset, error)
- type VSHttpRouteInterface
- type VSHttpRouteOperation
- func (o VSHttpRouteOperation) Create(ctx context.Context, vsName string, vr *VSRoute) (*v1beta1.VirtualService, error)
- func (o VSHttpRouteOperation) Delete(ctx context.Context, vsName, routeName string, vr *VSRoute) (*v1beta1.VirtualService, error)
- func (o VSHttpRouteOperation) Get(ctx context.Context, vsName, routeName string) (*v1beta1.VirtualService, error)
- func (o VSHttpRouteOperation) GetVS(ctx context.Context, name string) (*v1beta1.VirtualService, error)
- func (o VSHttpRouteOperation) List(ctx context.Context, vsName, appName string) (*v1beta1.VirtualService, error)
- func (o VSHttpRouteOperation) Update(ctx context.Context, vsName, routeName string, vr *VSRoute) (*v1beta1.VirtualService, error)
- func (o VSHttpRouteOperation) UpdateVS(ctx context.Context, vs *v1beta1.VirtualService) (*v1beta1.VirtualService, error)
- type VSRoute
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 (o VSHttpRouteOperation) Create(ctx context.Context, vsName string, vr *VSRoute) (*v1beta1.VirtualService, error)
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 (o VSHttpRouteOperation) GetVS(ctx context.Context, name string) (*v1beta1.VirtualService, error)
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 ¶
func (o VSHttpRouteOperation) UpdateVS(ctx context.Context, vs *v1beta1.VirtualService) (*v1beta1.VirtualService, error)
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"` }
Click to show internal directories.
Click to hide internal directories.