Documentation
¶
Index ¶
- type ApplyGlobalTrafficPolicyRequest
- type ApplyGlobalTrafficPolicyResponse
- type ApplyHTTPRouteRequest
- type ApplyHTTPRouteResponse
- type Client
- type Destination
- type DisableGlobalTrafficPolicyRequest
- type DisableGlobalTrafficPolicyResponse
- type DisableHTTPRouteRequest
- type DisableHTTPRouteResponse
- type GenerateLoadRequest
- type GenerateLoadResponse
- type HTTPRouteDestination
- type PortSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyGlobalTrafficPolicyRequest ¶
type ApplyGlobalTrafficPolicyRequest struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
ConnectionPool *v1alpha3.ConnectionPoolSettings `json:"connectionPoolSettings,omitempty"`
OutlierDetection *v1alpha3.OutlierDetection `json:"outlierDetection,omitempty"`
}
type ApplyGlobalTrafficPolicyResponse ¶
type ApplyGlobalTrafficPolicyResponse bool
type ApplyHTTPRouteRequest ¶
type ApplyHTTPRouteRequest struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Route []HTTPRouteDestination `json:"route,omitempty"`
}
type ApplyHTTPRouteResponse ¶
type ApplyHTTPRouteResponse bool
type Client ¶
type Client interface {
SetJWTToken(string)
GenerateLoad(req GenerateLoadRequest) (GenerateLoadResponse, error)
ApplyHTTPRoute(req ApplyHTTPRouteRequest) (ApplyHTTPRouteResponse, error)
DisableHTTPRoute(req DisableHTTPRouteRequest) (DisableHTTPRouteResponse, error)
ApplyGlobalTrafficPolicy(req ApplyGlobalTrafficPolicyRequest) (ApplyGlobalTrafficPolicyResponse, error)
DisableGlobalTrafficPolicy(req DisableGlobalTrafficPolicyRequest) (DisableGlobalTrafficPolicyResponse, error)
}
type Destination ¶
type Destination struct {
Host string `json:"host"`
Subset string `json:"subset,omitempty"`
Port *PortSelector `json:"port,omitempty"`
}
type DisableGlobalTrafficPolicyResponse ¶
type DisableGlobalTrafficPolicyResponse bool
type DisableHTTPRouteRequest ¶
type DisableHTTPRouteResponse ¶
type DisableHTTPRouteResponse bool
type GenerateLoadRequest ¶
type GenerateLoadResponse ¶
type HTTPRouteDestination ¶
type HTTPRouteDestination struct {
Destination Destination `json:"destination"`
Weight int `json:"weight"`
}
type PortSelector ¶
Click to show internal directories.
Click to hide internal directories.