MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / stop_state_proto

Function stop_state_proto

libatomic/src/daemon/services_provenance.rs:195–209  ·  view source on GitHub ↗
(stop: &StopState)

Source from the content-addressed store, hash-verified

193}
194
195fn stop_state_proto(stop: &StopState) -> PbStopState {
196 PbStopState {
197 cause: match stop.cause {
198 StopCause::UserRequested => PbStopCause::UserRequested,
199 StopCause::LeaseExpired => PbStopCause::LeaseExpired,
200 StopCause::ProcessExited => PbStopCause::ProcessExited,
201 StopCause::HookFailure => PbStopCause::HookFailure,
202 StopCause::SystemShutdown => PbStopCause::SystemShutdown,
203 StopCause::Abandoned => PbStopCause::Abandoned,
204 } as i32,
205 observed_at: Some(timestamp(stop.observed_at)),
206 last_event_seq: stop.last_event_seq,
207 resumable: stop.resumable,
208 }
209}
210
211fn checkpoint_source_proto(source: &ProvenanceCheckpointSource) -> CheckpointSource {
212 CheckpointSource {

Callers 1

stored_turn_protoFunction · 0.85

Calls 1

timestampFunction · 0.70

Tested by

no test coverage detected