condition

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 107

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(f func() (runtime.Object, error)) error

func (Cond) DoUntilTrue

func (c Cond) DoUntilTrue(obj runtime.Object, f func() (runtime.Object, error)) 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) MatchesError

func (c Cond) MatchesError(obj runtime.Object, reason string, err error) bool

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)) error

func (Cond) Reason

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

func (Cond) SetError

func (c Cond) SetError(obj runtime.Object, reason string, 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) SetStatusBool

func (c Cond) SetStatusBool(obj runtime.Object, val bool)

func (Cond) True

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

func (Cond) Unknown

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

Jump to

Keyboard shortcuts

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