~/bend-docscommunity

daemon/gather.bend relies on unsafe/foreign

raw source on the hub · import cswap-bend-cli@0.1.0.0/daemon/gather.bend as Gather

15 imports
import Base
import ../json.bend as Json
import ../fs.bend as Fs
import ../act.bend as Act
import ../store.bend as Store
import ../store/base.bend as SBase
import ../store/io.bend as SIo
import ../store/ops.bend as SOps
import ../store/seq.bend as SSeq
import ../usage.bend as Usage
import ../swlive.bend as L
import ../swbase.bend as SwB
import ../policy/types.bend as T
import ./rows.bend as Rows
import ./state.bend as St

Types

type Ent source · line 24 · raw

Data

type Snap source · line 27 · raw

Data

Definitions

def ActM source · line 30 · raw

@-A:Type -> Type

def ActM.pure source · line 33 · raw

@-A:Type -> @x:A -> 0x0717344745a30ebad1f19045228e8f18/act.of(A)

def ActM.bind source · line 36 · raw

@-A:Type -> @-B:Type -> @m:0x0717344745a30ebad1f19045228e8f18/act.of(A) -> @f:(@_:A -> 0x0717344745a30ebad1f19045228e8f18/act.of(B)) -> 0x0717344745a30ebad1f19045228e8f18/act.of(B)

def is_true source · line 39 · raw

@+m:Maybe<&2, 0x0717344745a30ebad1f19045228e8f18/json.Json> -> Bool

def refresh_of source · line 46 · raw

@+creds:String -> String

def kind2 source · line 49 · raw

@+api:Bool -> @+refresh:Bool -> 0x0717344745a30ebad1f19045228e8f18/policy/types.AcctKind

def kind_of source · line 58 · raw

@+api_rec:Bool -> @+creds:String -> 0x0717344745a30ebad1f19045228e8f18/policy/types.AcctKind

def ent_of source · line 61 · raw

@+slot:String -> @+rec:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+creds:String -> @+cfg_ok:Bool -> @+quarantined:Bool -> Ent

def mem_str source · line 66 · raw

@+x:String -> @+xs:List<&2, String> -> Bool

def has_config source · line 73 · raw

@+root:String -> @+seq:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+slot:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(Bool)

def cred_of source · line 78 · raw

@+root:String -> @+seq:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+slot:String -> 0x0717344745a30ebad1f19045228e8f18/act.of(String)

def ent_one source · line 81 · raw

@+root:String -> @+seq:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+slot:String -> @+st:0x0717344745a30ebad1f19045228e8f18/json.Json -> 0x0717344745a30ebad1f19045228e8f18/act.of(Ent)

def ents_of source · line 87 · raw

@+root:String -> @+seq:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+slots:List<&2, String> -> @+st:0x0717344745a30ebad1f19045228e8f18/json.Json -> 0x0717344745a30ebad1f19045228e8f18/act.of(List<&2, Ent>)

def rows3 source · line 97 · raw

@+v:String -> @+j:0x0717344745a30ebad1f19045228e8f18/json.Json -> 0x0717344745a30ebad1f19045228e8f18/json.Json

def rows2 source · line 100 · raw

@r:Result<&2, &2, String, 0x0717344745a30ebad1f19045228e8f18/json.Json> -> 0x0717344745a30ebad1f19045228e8f18/json.Json

def rows_of source · line 108 · raw

@r:0x0717344745a30ebad1f19045228e8f18/fs.Res(String) -> 0x0717344745a30ebad1f19045228e8f18/json.Json

The cached rows (accounts object); {} for a missing, torn or other-schema file.

def read_rows source · line 115 · raw

@+root:String -> IO(0x0717344745a30ebad1f19045228e8f18/json.Json)

def ents_for source · line 118 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> @+seq:0x0717344745a30ebad1f19045228e8f18/json.Json -> @+st:0x0717344745a30ebad1f19045228e8f18/json.Json -> 0x0717344745a30ebad1f19045228e8f18/act.of(List<&2, Ent>)

def state_of source · line 121 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> 0x0717344745a30ebad1f19045228e8f18/act.of(0x0717344745a30ebad1f19045228e8f18/json.Json)

def load source · line 124 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> @+seq:0x0717344745a30ebad1f19045228e8f18/json.Json -> 0x0717344745a30ebad1f19045228e8f18/act.of(Snap)

def some_snap source · line 132 · raw

@s:Snap -> 0x0717344745a30ebad1f19045228e8f18/act.of(Maybe<&2, Snap>)

def snapshot2 source · line 135 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> @+m:Maybe<&2, 0x0717344745a30ebad1f19045228e8f18/json.Json> -> 0x0717344745a30ebad1f19045228e8f18/act.of(Maybe<&2, Snap>)

def snapshot source · line 143 · raw

@+ctx:0x0717344745a30ebad1f19045228e8f18/store/base.Ctx -> 0x0717344745a30ebad1f19045228e8f18/act.of(Maybe<&2, Snap>)

Look the whole picture up.

def snap_ents source · line 148 · raw

@+s:Snap -> List<&2, Ent>

def snap_active source · line 153 · raw

@+s:Snap -> Maybe<&2, String>

def snap_state source · line 158 · raw

@+s:Snap -> 0x0717344745a30ebad1f19045228e8f18/json.Json

def snap_rows source · line 163 · raw

@+s:Snap -> 0x0717344745a30ebad1f19045228e8f18/json.Json

def in_skip source · line 168 · raw

@+slot:String -> @+skip:List<&2, String> -> Bool

def disable_ent source · line 171 · raw

@e:Ent -> @+skip:List<&2, String> -> Ent

def disable_ents source · line 176 · raw

@+es:List<&2, Ent> -> @+skip:List<&2, String> -> List<&2, Ent>

def skip_one source · line 183 · raw

@s:Snap -> @+skip:List<&2, String> -> Snap

def skip_snap source · line 189 · raw

@+m:Maybe<&2, Snap> -> @+skip:List<&2, String> -> Maybe<&2, Snap>

The snapshot with the given slots held out of the candidates.