k8s

package
v0.0.0-...-253972b Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesValidator

type KubernetesValidator interface {
	Validate() error
	WaitValid(context context.Context) error
}

KubernetesValidator - a validator to check periodically of cluster livenes.

type Utils

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

Utils - basic Kubernetes utils.

func NewK8sUtils

func NewK8sUtils(configPath string) (*Utils, error)

NewK8sUtils - Creates a new k8s utils with config file.

func (*Utils) GetNodes

func (u *Utils) GetNodes() ([]v1.Node, error)

GetNodes - return a list of kubernetes nodes.

type ValidationFactory

type ValidationFactory interface {
	// CreateValidator - return intanceof of validator with config and cluster config
	CreateValidator(config *config.ClusterProviderConfig, location string) (KubernetesValidator, error)
}

ValidationFactory - factory to create validator

func CreateFactory

func CreateFactory() ValidationFactory

CreateFactory - creates a validation factory.

Jump to

Keyboard shortcuts

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