mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-20 04:04:21 -04:00
openstack: implement imds and metadata self
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
630016d1b3
commit
418f08bf40
6 changed files with 890 additions and 0 deletions
23
internal/cloud/openstack/api.go
Normal file
23
internal/cloud/openstack/api.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package openstack
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/internal/role"
|
||||
)
|
||||
|
||||
type imdsAPI interface {
|
||||
providerID(ctx context.Context) (string, error)
|
||||
name(ctx context.Context) (string, error)
|
||||
projectID(ctx context.Context) (string, error)
|
||||
uid(ctx context.Context) (string, error)
|
||||
initSecretHash(ctx context.Context) (string, error)
|
||||
role(ctx context.Context) (role.Role, error)
|
||||
vpcIP(ctx context.Context) (string, error)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue