Skip to content

Commit 965e6f5

Browse files
committed
integrity: use generic marshaller interface
The TypedBuilder now uses TypedMarshaller interface instead of TypedYamlMarshaller to support more flexible marshalling options.
1 parent 8bc6857 commit 965e6f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

integrity/builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type TypedBuilder[T any] struct {
1919
hashers []hasher.Hasher
2020
signers []crypto.Signer
2121
verifiers []crypto.Verifier
22-
marshaller marshaller.TypedYamlMarshaller[T]
22+
marshaller marshaller.TypedMarshaller[T]
2323

2424
prefix string
2525
namerFunc NamerConstructor
@@ -90,7 +90,7 @@ func (s TypedBuilder[T]) WithVerifier(verifier crypto.Verifier) TypedBuilder[T]
9090
}
9191

9292
// WithMarshaller sets the marshaller for the builder.
93-
func (s TypedBuilder[T]) WithMarshaller(marshaller marshaller.TypedYamlMarshaller[T]) TypedBuilder[T] {
93+
func (s TypedBuilder[T]) WithMarshaller(marshaller marshaller.TypedMarshaller[T]) TypedBuilder[T] {
9494
out := s.copy()
9595

9696
out.marshaller = marshaller

0 commit comments

Comments
 (0)