Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker checks the health of a local experiment instance.
func NewChecker ¶
func NewChecker(pp *PortProbe, ec *EndpointClient) *Checker
NewChecker creates a new Checker.
func NewCheckerK8S ¶
func NewCheckerK8S(pp *PortProbe, k8s *KubernetesClient, ec *EndpointClient) *Checker
NewCheckerK8S creates a new Checker for Kubernetes deployments.
type EndpointClient ¶
EndpointClient is an http client to check the local /health endpoint.
func NewEndpointClient ¶
func NewEndpointClient(timeout time.Duration) *EndpointClient
NewEndpointClient returns a new *EndpointClient with the specified request timeout.
type GCEClient ¶
type GCEClient interface {
GetHealth(context.Context, *computepb.GetHealthRegionBackendServiceRequest, ...gax.CallOption) (*computepb.BackendServiceGroupHealth, error)
}
GCEClient queries the Compute API for health updates.
type GCPChecker ¶
type GCPChecker struct {
// contains filtered or unexported fields
}
GCPChecker queries the VM's load balancer to check its status.
func NewGCPChecker ¶
func NewGCPChecker(c GCEClient, md Metadata) *GCPChecker
NewGCPChecker returns a new instance of GCPChecker.
type KubernetesClient ¶
type KubernetesClient struct {
// contains filtered or unexported fields
}
KubernetesClient manages requests to the Kubernetes API server.
func MustNewKubernetesClient ¶
func MustNewKubernetesClient(url *url.URL, pod, node, namespace, auth string) *KubernetesClient
MustNewKubernetesClient creates a new KubenernetesClient instance. If the client cannot be instantiated, the function will exit.