Versions in this module Expand all Collapse all v1 v1.4.1 Sep 11, 2020 Changes in this version + type ApplyGlobalTrafficPolicyRequest struct + ConnectionPool *v1alpha3.ConnectionPoolSettings + Name string + Namespace string + OutlierDetection *v1alpha3.OutlierDetection + type ApplyGlobalTrafficPolicyResponse bool + type ApplyHTTPRouteRequest struct + Rule HTTPRules + Selector HTTPRouteSelector + type ApplyHTTPRouteResponse bool + type ApplyMeshPolicyInput struct + ControlPlane string + MTLSMode *MTLSModeInput + type ApplyPolicyPeersInput struct + Peers []*PeerAuthenticationMethodInput + Selector *PolicySelectorInput + type ApplySidecarEgressInput struct + Egress Egress + Selector SidecarEgressSelector + type ApplySidecarEgressResponse bool + type AttachPeerClusterRequest struct + CertificateAuthorityData string + IstioControlPlaneRef *v1beta1.NamespacedName + Name string + ServiceAccountToken string + URL string + type AuthPortSelectorInput struct + Name *string + Number *int + type AuthTLSModeInput string + const AuthTLSModeInputPermissive + const AuthTLSModeInputStrict + func AuthTLSModeInputToPointer(mode AuthTLSModeInput) *AuthTLSModeInput + type Client interface + ApplyGlobalTrafficPolicy func(req ApplyGlobalTrafficPolicyRequest) (ApplyGlobalTrafficPolicyResponse, error) + ApplyHTTPRoute func(req ApplyHTTPRouteRequest) (ApplyHTTPRouteResponse, error) + ApplyMeshPolicy func(input ApplyMeshPolicyInput) (bool, error) + ApplyPolicyPeers func(input ApplyPolicyPeersInput) (bool, error) + ApplySidecarEgress func(input ApplySidecarEgressInput) (ApplySidecarEgressResponse, error) + AttachPeerCluster func(req AttachPeerClusterRequest) (bool, error) + Close func() + Clusters func() (ClustersResponse, error) + DetachPeerCluster func(name string) (bool, error) + DisableAutoSidecarInjection func(req DisableAutoSidecarInjectionRequest) (DisableAutoSidecarInjectionResponse, error) + DisableGlobalTrafficPolicy func(req DisableGlobalTrafficPolicyRequest) (DisableGlobalTrafficPolicyResponse, error) + DisableHTTPRoute func(req DisableHTTPRouteRequest) (DisableHTTPRouteResponse, error) + DisablePolicyPeers func(input DisablePolicyPeersInput) (bool, error) + DisableSidecarEgress func(input DisableSidecarEgressInput) (DisableSidecarEgressResponse, error) + EnableAutoSidecarInjection func(req EnableAutoSidecarInjectionRequest) (EnableAutoSidecarInjectionResponse, error) + GenerateLoad func(req GenerateLoadRequest) (GenerateLoadResponse, error) + GetNamespace func(name string) (NamespaceResponse, error) + GetNamespaceWithMTLS func(revision, namespace string) (NamespaceResponse, error) + GetNamespaceWithSidecar func(name string) (NamespaceResponse, error) + GetNamespaceWithSidecarRecommendation func(name string, isolationLevel string) (NamespaceResponse, error) + GetNamespaces func() (NamespacesResponse, error) + GetPod func(namespace, name string) (*Pod, error) + GetService func(namespace, name string) (*MeshService, error) + GetServiceWithMTLS func(controlPlaneID, namespace, name string) (*MeshService, error) + GetWorkload func(namespace, name string) (*MeshWorkload, error) + GetWorkloadWithSidecar func(namespace, name string) (*MeshWorkloadSidecar, error) + GetWorkloadWithSidecarRecommendation func(namespace, name string, isolationLevel string, labelWhitelist []string) (*MeshWorkloadSidecar, error) + NewSubscribeRequest func(q string) *Request + Overview func(evaluationDurationSeconds uint) (OverviewResponse, error) + SetJWTToken func(string) + SubscribeToAccessLogs func(ctx context.Context, req *GetAccessLogsInput, resp chan interface{}, ...) + WSClient func() *WSClient + func NewClient(endpoint endpoint.Endpoint, path string) Client + type ClientOption func(*WSClient) + func WithHTTPClient(httpclient *http.Client) ClientOption + type Cluster struct + ID string + IstioControlPlane IstioControlPlaneRef + Name string + Namespace string + Status ClusterStatus + Type string + type ClusterStatus struct + ErrorMessage string + GatewayAddress []string + Status string + type ClustersResponse []Cluster + func (cr ClustersResponse) GetClusterByName(name string) (bool, *Cluster) + func (cr ClustersResponse) GetHostCluster() (bool, *Cluster) + type DisableAutoSidecarInjectionRequest struct + Name string + type DisableAutoSidecarInjectionResponse struct + NameSpaces []corev1.Namespace + type DisableGlobalTrafficPolicyRequest struct + Name string + Namespace string + Rules []string + type DisableGlobalTrafficPolicyResponse bool + type DisableHTTPRouteRequest struct + Rules []string + Selector HTTPRouteSelector + type DisableHTTPRouteResponse bool + type DisablePolicyPeersInput struct + Selector *PolicySelectorInput + type DisableSidecarEgressInput struct + Selector SidecarEgressSelector + type DisableSidecarEgressResponse bool + type Egress struct + Bind *string + Hosts []string + Port *v1alpha3.Port + type EnableAutoSidecarInjectionRequest struct + Name string + type EnableAutoSidecarInjectionResponse struct + NameSpaces []corev1.Namespace + type GenerateLoadRequest struct + Duration int + Endpoint string + Frequency int + Headers map[string]string + Method string + Namespace string + Port int + Service string + type GenerateLoadResponse map[string]int + type GetAccessLogsInput struct + Authority string + DestinationName string + DestinationNamespace string + DestinationType string + Direction string + MaxRPS uint + Method string + Path string + ReporterName string + ReporterNamespace string + ReporterType string + RequestHeaderMatch []HTTPHeaderMatch + ResponseHeaderMatch []HTTPHeaderMatch + Scheme string + SourceName string + SourceNamespace string + SourceType string + StatusCode IntRange + type HTTPHeaderMatch struct + Name string + Type StringMatchType + Value string + type HTTPRouteSelector struct + Matches []*v1alpha3.HTTPMatchRequest + Name string + Namespace string + type HTTPRules struct + FaultInjection *v1alpha3.HTTPFaultInjection + Matches []*v1alpha3.HTTPMatchRequest + Mirror *v1alpha3.Destination + Redirect *v1alpha3.HTTPRedirect + Retries *v1alpha3.HTTPRetry + Rewrite *v1alpha3.HTTPRewrite + Route []*v1alpha3.HTTPRouteDestination + Timeout *string + type IntRange struct + Max uint + Min uint + type IstioControlPlaneRef struct + Name string + Namespace string + type IstioEgressListener struct + Bind string + CaptureMode v1alpha3.CaptureMode + Hosts []string + Port *v1alpha3.Port + type IstioIngressListener struct + Bind string + CaptureMode v1alpha3.CaptureMode + DefaultEndpoint string + Port *v1alpha3.Port + type IstioNamespace struct + Name string + Policy Policy + RecommendedSidecars []Sidecar + Sidecars []Sidecar + type MTLSModeInput string + const MTLSModeInputDISABLED + const MTLSModeInputPermissive + const MTLSModeInputStrict + type MeshService struct + DestinationRules []v1alpha3.DestinationRule + ID string + Name string + Namespace string + Policies []Policy + VirtualServices []v1alpha3.VirtualService + type MeshWorkload struct + ID string + Labels map[string]string + Name string + Namespace string + type MeshWorkloadSidecar struct + RecommendedSidecars []Sidecar + Sidecars []Sidecar + type MutualTLSInput struct + Mode *AuthTLSModeInput + type NamespaceResponse struct + Namespace IstioNamespace + type NamespacesResponse struct + Namespaces []IstioNamespace + type OverviewResponse struct + Clusters int + End time.Time + ErrorRate float32 + Latency float32 + Pods int + PodsInMesh int + RPS float32 + Services int + ServicesInMesh int + Start time.Time + Workloads int + WorkloadsInMesh int + type PeerAuthenticationMethodInput struct + Mtls *MutualTLSInput + type Pod struct + Name string + Namespace string + type Policy struct + Name string + Namespace string + type PolicySelectorInput struct + Namespace string + Target *TargetSelectorInput + type Request struct + func (r *Request) GetHeader() http.Header + func (r *Request) GetQuery() string + func (r *Request) GetVars() map[string]interface{} + func (r *Request) Query(query string) + func (r *Request) Var(key string, value interface{}) + type Sidecar struct + Name string + Namespace string + Spec SidecarSpec + type SidecarEgressSelector struct + Bind *string + Namespace string + Port *v1alpha3.Port + WorkloadLabels *map[string]string + type SidecarSpec struct + Egress []*IstioEgressListener + Ingress []*IstioIngressListener + OutboundTrafficPolicy *v1alpha3.OutboundTrafficPolicy + WorkloadSelector *WorkloadSelector + type StringMatchType string + const StringMatchTypeExact + const StringMatchTypeExists + const StringMatchTypePrefix + const StringMatchTypeRegex + const StringMatchTypeSuffix + type TargetSelectorInput struct + Name string + Port *AuthPortSelectorInput + type WSClient struct + func NewWSClient(endpoint string, opts ...ClientOption) *WSClient + func (c *WSClient) Subscribe(ctx context.Context, req *Request, resp chan interface{}) error + type WorkloadSelector struct + Labels map[string]string