mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
22 lines
473 B
Go
22 lines
473 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/edgelesssys/constellation/bootstrapper/role"
|
|
"github.com/edgelesssys/constellation/internal/cloud/metadata"
|
|
)
|
|
|
|
type fakeMetadataAPI struct{}
|
|
|
|
func (f *fakeMetadataAPI) List(ctx context.Context) ([]metadata.InstanceMetadata, error) {
|
|
return []metadata.InstanceMetadata{
|
|
{
|
|
Name: "instanceName",
|
|
ProviderID: "fake://instance-id",
|
|
Role: role.Unknown,
|
|
PrivateIPs: []string{"192.0.2.1"},
|
|
},
|
|
}, nil
|
|
}
|