Documentation
¶
Index ¶
- Constants
- func ClearAllMetrics(clusterIPs map[string]string, smObj ServiceMesh)
- func ClearMetrics(hostname string, port string) error
- func GetClusterIPs(kubeClient client.Client, namespace string) (map[string]string, error)
- func GetHTTPClient() http.Client
- type Failure
- type Istio
- type Linkerd
- func (sm Linkerd) SvcAGetInternalName(namespace string) string
- func (sm Linkerd) SvcAGetPort() string
- func (sm Linkerd) SvcBGetInternalName(namespace string) string
- func (sm Linkerd) SvcBGetPort() string
- func (sm Linkerd) SvcCGetInternalName(namespace string) string
- func (sm Linkerd) SvcCGetPort() string
- type Maesh
- type MetricResponse
- type OSM
- type Results
- type SMIConformance
- type ServiceMesh
- type URLstruct
Constants ¶
View Source
const ( SvcNameA = "app-a" SvcNameB = "app-b" SvcNameC = "app-c" )
App service names
View Source
const ( METRICS = "metrics" CALL = "call" ECHO = "echo" )
App API endpoints
Variables ¶
This section is empty.
Functions ¶
func ClearAllMetrics ¶
func ClearAllMetrics(clusterIPs map[string]string, smObj ServiceMesh)
ClearAllMetrics aggregate all the svc metrics
func ClearMetrics ¶
ClearMetrics remove all the resources
func GetClusterIPs ¶
GetClusterIPs returns the ClusterIPs of various services exposed in the namespace
func GetHTTPClient ¶
GetHTTPClient returns a configured HTTP client
Types ¶
type Istio ¶
func (Istio) SvcAGetInternalName ¶
func (Istio) SvcAGetPort ¶
func (Istio) SvcBGetInternalName ¶
func (Istio) SvcBGetPort ¶
func (Istio) SvcCGetInternalName ¶
func (Istio) SvcCGetPort ¶
type Linkerd ¶
func (Linkerd) SvcAGetInternalName ¶
func (Linkerd) SvcAGetPort ¶
func (Linkerd) SvcBGetInternalName ¶
func (Linkerd) SvcBGetPort ¶
func (Linkerd) SvcCGetInternalName ¶
func (Linkerd) SvcCGetPort ¶
type Maesh ¶
func (Maesh) SvcAGetInternalName ¶
func (Maesh) SvcAGetPort ¶
func (Maesh) SvcBGetInternalName ¶
func (Maesh) SvcBGetPort ¶
func (Maesh) SvcCGetInternalName ¶
func (Maesh) SvcCGetPort ¶
type MetricResponse ¶
type MetricResponse struct { ReqReceived []string RespSucceeded []URLstruct RespFailed []URLstruct }
MetricResponse is a part of the metrics exposed by the app
func GetMetrics ¶
func GetMetrics(hostname string, port string) (*MetricResponse, error)
GetMetrics return a type MetricResponse
type OSM ¶
func (OSM) SvcAGetInternalName ¶
func (OSM) SvcAGetPort ¶
func (OSM) SvcBGetInternalName ¶
func (OSM) SvcBGetPort ¶
func (OSM) SvcCGetInternalName ¶
func (OSM) SvcCGetPort ¶
type Results ¶
type Results struct { Name string `json:"name,omitempty"` Tests int `json:"tests,omitempty"` Failures int `json:"failures,omitempty"` Time string `json:"time,omitempty"` Testsuite []struct { Tests int `json:"tests,omitempty"` Failures int `json:"failures,omitempty"` Time string `json:"time,omitempty"` Name string `json:"name,omitempty"` Testcase []struct { Classname string `json:"classname,omitempty"` Name string `json:"name,omitempty"` Time string `json:"time,omitempty"` Assertions int `json:"assertions,omitempty"` Failure Failure `json:"failure,omitempty"` } `json:"testcase,omitempty"` } `json:"testsuite,omitempty"` }
type SMIConformance ¶
type SMIConformance struct {
SMObj ServiceMesh
}
SMIConformance holds the SMI conformance tests
func (*SMIConformance) TrafficAccessGetTests ¶
func (smi *SMIConformance) TrafficAccessGetTests() map[string]test.CustomTest
func (*SMIConformance) TrafficSpecGetTests ¶
func (smi *SMIConformance) TrafficSpecGetTests() map[string]test.CustomTest
func (*SMIConformance) TrafficSplitGetTests ¶
func (smi *SMIConformance) TrafficSplitGetTests() map[string]test.CustomTest
TrafficSplitGetTests return type of map[string]test.CustomTest
type ServiceMesh ¶
type ServiceMesh interface { SvcAGetInternalName(string) string SvcBGetInternalName(string) string SvcCGetInternalName(string) string SvcAGetPort() string SvcBGetPort() string SvcCGetPort() string }
ServiceMesh provides an abstract interface for different service meshes. This is required as each service mesh has different ways to expose their internals.
Click to show internal directories.
Click to hide internal directories.