~/bend-docscommunity

src/cond.bend checks

raw source on the hub · import bend-kube-runtime@0.5.2.0/src/cond.bend as Cond

3 imports
import Base
import ./json.bend as J
import ./core.bend as C

Definitions

def Cond.list source · line 19 · raw

@o:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>

The conditions an object's status carries.

def Cond.type_of source · line 22 · raw

@c:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> String

def Cond.status_of source · line 25 · raw

@c:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> String

def Cond.get.go source · line 28 · raw

@+c:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @+t:String -> @hit:Bool -> @rest:Maybe<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> Maybe<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>

def Cond.get source · line 36 · raw

@cs:List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> @+t:String -> Maybe<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>

The condition of a type, if present.

def Cond.is.go source · line 43 · raw

@m:Maybe<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> @+status:String -> Bool

def Cond.is source · line 51 · raw

@cs:List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> @+t:String -> @+status:String -> Bool

Whether the condition of a type has this status ("True", "False").

def Cond.is_true source · line 54 · raw

@cs:List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> @+t:String -> Bool

def Cond.gen source · line 57 · raw

@+gen:String -> @none:Bool -> 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json

def Cond.make source · line 66 · raw

@t:String -> @status:String -> @reason:String -> @message:String -> @+gen:String -> @now:String -> 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json

A condition; gen is metadata.generation as the object carries it (its number text, "" for none), now an RFC 3339 time (T.Wall.rfc3339).

def Cond.keep.go source · line 73 · raw

@+old:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @+new:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @keep:Bool -> 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json

def Cond.keep source · line 82 · raw

@+old:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @+new:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @same:Bool -> 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json

The new condition, keeping the old one's transition time when the status is unchanged.

def Cond.set.put source · line 85 · raw

@+c:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @+new:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @hit:Bool -> @rest:List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> @done:Bool -> Pair(List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>, Bool)

def Cond.set.step source · line 93 · raw

@+c:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @+new:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @r:Pair(List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>, Bool) -> Pair(List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>, Bool)

def Cond.set.go source · line 98 · raw

@cs:List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> @+new:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> Pair(List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>, Bool)

def Cond.set.fin source · line 105 · raw

@r:Pair(List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>, Bool) -> @+new:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>

def Cond.set source · line 115 · raw

@cs:List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> @+new:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>

Sets a condition (meta.SetStatusCondition): replaces the one of its type, keeping lastTransitionTime when the status is unchanged, or appends it.

def Cond.del.put source · line 118 · raw

@+c:0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json -> @+t:String -> @rest:List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> @hit:Bool -> List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>

def Cond.del source · line 126 · raw

@cs:List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> @+t:String -> List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json>

Removes the condition of a type.

def Cond.patch source · line 134 · raw

@cs:List<&2, 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json> -> 0x2c4c1c49bdb5ccfc58560ac0a132da8e/src/json.Json

A status patch body setting conditions: {"status": {"conditions": cs}}.