MCPcopy Create free account
hub / github.com/cli/cli / dumpTlogs

Function dumpTlogs

pkg/cmd/attestation/inspect/inspect.go:305–323  ·  view source on GitHub ↗
(entity *bundle.Bundle)

Source from the content-addressed store, hash-verified

303}
304
305func dumpTlogs(entity *bundle.Bundle) ([]TlogEntryInspection, error) {
306 inspectedTlogEntries := []TlogEntryInspection{}
307
308 entries, err := entity.TlogEntries()
309 if err != nil {
310 return nil, err
311 }
312
313 for _, entry := range entries {
314 inspectedEntry := TlogEntryInspection{
315 IntegratedTime: entry.IntegratedTime(),
316 LogID: entry.LogKeyID(),
317 }
318
319 inspectedTlogEntries = append(inspectedTlogEntries, inspectedEntry)
320 }
321
322 return inspectedTlogEntries, nil
323}
324
325func dumpSignedTimestamps(entity *bundle.Bundle) ([]time.Time, error) {
326 timestamps := []time.Time{}

Callers 1

runInspectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected