conditions

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetFailed

func SetFailed(conditions *nmstatev1alpha1.ConditionList, reason nmstatev1alpha1.ConditionReason, message string)

func SetFailedToConfigure

func SetFailedToConfigure(conditions *nmstatev1alpha1.ConditionList, message string)

func SetMatching

func SetMatching(conditions *nmstatev1alpha1.ConditionList, message string)

func SetNodeSelectorNotMatching

func SetNodeSelectorNotMatching(conditions *nmstatev1alpha1.ConditionList, message string)

func SetNotMatching

func SetNotMatching(conditions *nmstatev1alpha1.ConditionList, reason nmstatev1alpha1.ConditionReason, message string)

func SetProgressing

func SetProgressing(conditions *nmstatev1alpha1.ConditionList, message string)

func SetSuccess

func SetSuccess(conditions *nmstatev1alpha1.ConditionList, message string)

Types

type CountByConditionType

type CountByConditionType map[nmstatev1alpha1.ConditionType]int

func (CountByConditionType) Available

func (c CountByConditionType) Available() int

func (CountByConditionType) Failed

func (c CountByConditionType) Failed() int

func (CountByConditionType) Progressing

func (c CountByConditionType) Progressing() int

func (CountByConditionType) String

func (c CountByConditionType) String() string

type EnactmentConditions

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

func New

func New(client client.Client, enactmentKey types.NamespacedName) EnactmentConditions

func (*EnactmentConditions) NotifyFailedToConfigure

func (ec *EnactmentConditions) NotifyFailedToConfigure(failedErr error)

func (*EnactmentConditions) NotifyMatching

func (ec *EnactmentConditions) NotifyMatching()

func (*EnactmentConditions) NotifyNodeSelectorFailure

func (ec *EnactmentConditions) NotifyNodeSelectorFailure(err error)

func (*EnactmentConditions) NotifyNodeSelectorNotMatching

func (ec *EnactmentConditions) NotifyNodeSelectorNotMatching(unmatchingLabels map[string]string)

func (*EnactmentConditions) NotifyProgressing

func (ec *EnactmentConditions) NotifyProgressing()

func (*EnactmentConditions) NotifySuccess

func (ec *EnactmentConditions) NotifySuccess()

func (*EnactmentConditions) Reset

func (ec *EnactmentConditions) Reset()

Jump to

Keyboard shortcuts

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