Documentation ¶
Index ¶
Constants ¶
View Source
const ErrAuthorizationFailed = "authorization failed"
Variables ¶
View Source
var ( ErrMinPodsNotAvailable = errors.New("there should be at least one pod available") ErrPodEventsUnhealthy = errors.New("pod has unhealthy events") )
Functions ¶
This section is empty.
Types ¶
type AppHandler ¶
type AppHandler struct {
// contains filtered or unexported fields
}
AppHandler contains the route handlers for the application
func NewAppHandler ¶
func NewAppHandler(client *kubernetes.Clientset, authToken string, rateLimiter *limiter.Limiter) *AppHandler
func (*AppHandler) Serve ¶
func (app *AppHandler) Serve(addr string) error
type HealthChecker ¶
type HealthChecker interface { // HealthCheck checks if a given component is healthy HealthCheck(context.Context, string) error // Ping checks if the health checker is running properly Ping() error }
HealthChecker defines a health check interface
type K8sHealthChecker ¶
type K8sHealthChecker struct { // Cluster namespace to use Namespace string // Kubernetes client ClientSet *kubernetes.Clientset }
HealthChecker defines a health check interface
func NewK8sHealthChecker ¶
func NewK8sHealthChecker(namespace string, clientset *kubernetes.Clientset) *K8sHealthChecker
func (*K8sHealthChecker) HealthCheck ¶
func (k *K8sHealthChecker) HealthCheck(ctx context.Context, name string) error
HealthCheck is a HealthChecker implementation for a kubernetes deployment
func (*K8sHealthChecker) Ping ¶
func (k *K8sHealthChecker) Ping() error
Ping checks if the K8S api is available
Click to show internal directories.
Click to hide internal directories.