condition

package
v0.0.0-...-417dc14 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(reason string, err error) error

Types

type Cond

type Cond string

func (Cond) CreateUnknownIfNotExists

func (c Cond) CreateUnknownIfNotExists(obj runtime.Object)

func (Cond) Do

func (c Cond) Do(obj runtime.Object, f func() (runtime.Object, error)) (runtime.Object, error)

func (Cond) DoUntilTrue

func (c Cond) DoUntilTrue(obj runtime.Object, f func() (runtime.Object, error)) (runtime.Object, error)

func (Cond) False

func (c Cond) False(obj runtime.Object)

func (Cond) GetLastUpdated

func (c Cond) GetLastUpdated(obj runtime.Object) string

func (Cond) GetMessage

func (c Cond) GetMessage(obj runtime.Object) string

func (Cond) GetReason

func (c Cond) GetReason(obj runtime.Object) string

func (Cond) GetStatus

func (c Cond) GetStatus(obj runtime.Object) string

func (Cond) IsFalse

func (c Cond) IsFalse(obj runtime.Object) bool

func (Cond) IsTrue

func (c Cond) IsTrue(obj runtime.Object) bool

func (Cond) IsUnknown

func (c Cond) IsUnknown(obj runtime.Object) bool

func (Cond) LastUpdated

func (c Cond) LastUpdated(obj runtime.Object, ts string)

func (Cond) Message

func (c Cond) Message(obj runtime.Object, message string)

func (Cond) Once

func (c Cond) Once(obj runtime.Object, f func() (runtime.Object, error)) (runtime.Object, error)

func (Cond) Reason

func (c Cond) Reason(obj runtime.Object, reason string)

func (Cond) ReasonAndMessageFromError

func (c Cond) ReasonAndMessageFromError(obj runtime.Object, err error)

func (Cond) SetMessageIfBlank

func (c Cond) SetMessageIfBlank(obj runtime.Object, message string)

func (Cond) SetStatus

func (c Cond) SetStatus(obj runtime.Object, status string)

func (Cond) Track

func (c Cond) Track(obj runtime.Object, client ObjectClientGetter, f func() (runtime.Object, error)) (runtime.Object, error)

func (Cond) True

func (c Cond) True(obj runtime.Object)

func (Cond) Unknown

func (c Cond) Unknown(obj runtime.Object)

type GenericCondition

type GenericCondition struct {
	// Type of cluster condition.
	Type string `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition
	Message string `json:"message,omitempty"`
}

type ObjectClientGetter

type ObjectClientGetter interface {
	ObjectClient() *objectclient.ObjectClient
}

Jump to

Keyboard shortcuts

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