condition

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 4 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 interface{})

func (Cond) False

func (c Cond) False(obj interface{})

func (Cond) GetLastUpdated

func (c Cond) GetLastUpdated(obj interface{}) string

func (Cond) GetMessage

func (c Cond) GetMessage(obj interface{}) string

func (Cond) GetReason

func (c Cond) GetReason(obj interface{}) string

func (Cond) GetStatus

func (c Cond) GetStatus(obj interface{}) string

func (Cond) IsFalse

func (c Cond) IsFalse(obj interface{}) bool

func (Cond) IsTrue

func (c Cond) IsTrue(obj interface{}) bool

func (Cond) IsUnknown

func (c Cond) IsUnknown(obj interface{}) bool

func (Cond) LastUpdated

func (c Cond) LastUpdated(obj interface{}, ts string)

func (Cond) MatchesError

func (c Cond) MatchesError(obj interface{}, reason string, err error) bool

func (Cond) Message

func (c Cond) Message(obj interface{}, message string)

func (Cond) Reason

func (c Cond) Reason(obj interface{}, reason string)

func (Cond) SetError

func (c Cond) SetError(obj interface{}, reason string, err error)

func (Cond) SetMessageIfBlank

func (c Cond) SetMessageIfBlank(obj interface{}, message string)

func (Cond) SetStatus

func (c Cond) SetStatus(obj interface{}, status string)

func (Cond) SetStatusBool

func (c Cond) SetStatusBool(obj interface{}, val bool)

func (Cond) True

func (c Cond) True(obj interface{})

func (Cond) Unknown

func (c Cond) Unknown(obj interface{})

Jump to

Keyboard shortcuts

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