mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-23 07:20:37 -04:00
use variant interface instead of fmt.Stringer
This commit is contained in:
parent
d094d80807
commit
2d19273797
4 changed files with 29 additions and 10 deletions
|
@ -9,7 +9,6 @@ package config
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
|
@ -1052,7 +1051,7 @@ func getConfigAsMap(conf *Config, t *testing.T) (res configMap) {
|
|||
|
||||
type stubAttestationFetcher struct{}
|
||||
|
||||
func (f stubAttestationFetcher) FetchLatestVersion(_ context.Context, _ fmt.Stringer) (attestationconfigapi.Entry, error) {
|
||||
func (f stubAttestationFetcher) FetchLatestVersion(_ context.Context, _ attestationconfigapi.Variant) (attestationconfigapi.Entry, error) {
|
||||
return attestationconfigapi.Entry{
|
||||
SEVSNPVersion: testCfg,
|
||||
}, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue