~/bend-docscommunity

src/finalizer.bend checks

raw source on the hub · import bend-kube-runtime@0.9.0.0/src/finalizer.bend as Finalizer

4 imports
import Base
import ./json.bend as J
import ./core.bend as C
import ./queue.bend as Q

Types

type FState source · line 21 · raw

Data

Definitions

def Fin.op source · line 27 · raw

@op:String -> @path:String -> @v:0xc144f18a60e8e11038261a7ead2523c1/src/json.Json -> 0xc144f18a60e8e11038261a7ead2523c1/src/json.Json

def Fin.strs source · line 30 · raw

@xs:List<&2, String> -> List<&2, 0xc144f18a60e8e11038261a7ead2523c1/src/json.Json>

def Fin.add_patch.go source · line 37 · raw

@fs:List<&2, String> -> @name:String -> @empty:Bool -> 0xc144f18a60e8e11038261a7ead2523c1/src/json.Json

def Fin.add_patch source · line 47 · raw

@+fs:List<&2, String> -> @name:String -> 0xc144f18a60e8e11038261a7ead2523c1/src/json.Json

The patch that adds name to finalizers fs.

def Fin.remove_patch source · line 51 · raw

@+i:U32 -> @name:String -> 0xc144f18a60e8e11038261a7ead2523c1/src/json.Json

The patch that removes the finalizer at index i, if it is still name.

def Fin.index.if source · line 55 · raw

@+i:U32 -> @rest:Maybe<&2, U32> -> @hit:Bool -> Maybe<&2, U32>

def Fin.index source · line 63 · raw

@fs:List<&2, String> -> @+name:String -> @+i:U32 -> Maybe<&2, U32>

Where name sits among the finalizers, counting from i.

def Fin.state.go source · line 70 · raw

@+fs:List<&2, String> -> @+name:String -> @at:Maybe<&2, U32> -> @deleting:Bool -> FState

def Fin.state source · line 83 · raw

@+o:0xc144f18a60e8e11038261a7ead2523c1/src/json.Json -> @+name:String -> FState

What the object needs, for the finalizer called name.

def Fin.keeps source · line 90 · raw

@a:0xc144f18a60e8e11038261a7ead2523c1/src/queue.Action -> Bool

Whether a cleanup's answer keeps the finalizer: a failure (Retry, RetryIn) or an unfinished cleanup (Hold) does, so the object stays until the cleanup is done; any other answer means done, and the finalizer goes.