condition

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package condition provides functions to more easily work with kubernetes node conditions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeCondition

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

NodeCondition is used to maintain state over individual conditions

func New

func New(initial bool, condition corev1.NodeConditionType) NodeCondition

New returns a new condition struct

func (*NodeCondition) Get

Get returns the NodeCondition

func (*NodeCondition) Update

func (c *NodeCondition) Update(condition bool) corev1.NodeCondition

Update returns the correct node condition based on the given condition

Jump to

Keyboard shortcuts

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