Skip to content

Commit

Permalink
added old function with deprecation warning
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed Jan 16, 2024
1 parent 0adde0e commit 4ebd16e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions attestation/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ func AddAttestor(nameOrType string) (Attestor, error) {
return attestors[0], nil
}

// Deprecated: use AddAttestors instead
func Attestors(nameOrTypes []string) ([]Attestor, error) {
return AddAttestors(nameOrTypes)
}

func AddAttestors(nameOrTypes []string) ([]Attestor, error) {
attestors := make([]Attestor, 0)
for _, nameOrType := range nameOrTypes {
Expand Down

0 comments on commit 4ebd16e

Please sign in to comment.