engine

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package engine uses pkg/health to provide a quick way to start a health check

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine is a structure to hold the details about the deployment mode and the pods to be tested.

func New

func New(prefs map[string]string) Engine

New returns an Engine instance initialized with the supplied preferences

func (Engine) Init

func (e Engine) Init(path string) *kubernetes.Clientset

Init connects the application to the cluster's api-server

func (Engine) Start

func (e Engine) Start(client *kubernetes.Clientset)

Start runs the health check and checks for failures. It also attempts to fix any terminated pods.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL