Skip to content

Commit

Permalink
extend signing list component descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianburth committed Sep 12, 2024
1 parent 65466c4 commit 7cef537
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/ocm/tools/signing/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,12 @@ func Apply(printer common.Printer, state *WalkingState, cv ocm.ComponentVersionA
return dc.Digest, nil
}

func ListComponentDescriptors(state *WalkingState) []*compdesc.ComponentDescriptor {
func ListComponentDescriptors(cv ocm.ComponentVersionAccess, state *WalkingState) []*compdesc.ComponentDescriptor {
if cv == nil || state == nil {
return nil
}
c := state.WalkingState.Closure
nv := state.WalkingState.Context.Key
nv := common.VersionedElementKey(cv)
return maputils.TransformedValues(c, func(in *VersionInfo) *compdesc.ComponentDescriptor {
return in.digestingContexts[nv].Descriptor
})
Expand Down

0 comments on commit 7cef537

Please sign in to comment.