mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
901edd420b
* terraform: remove cloud logging apps * internal/cloud: remove loggers * bootstrapper: remove logging * qemu-metadata-api: remove logging endpoint * docs: add instructions on how to get boot logs * bazel: tidy * docs: fix typo * cloud: remove unused types * Update go.mod Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> * bazel: tidy * Update docs/docs/workflows/troubleshooting.md Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com> * Update docs/docs/workflows/troubleshooting.md Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com> * Update docs/docs/workflows/troubleshooting.md Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com> * docs: elaborate on how to get boot logs * bazel: tidy --------- Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> Co-authored-by: Thomas Tendyck <51411342+thomasten@users.noreply.github.com>
76 lines
3.1 KiB
Go
76 lines
3.1 KiB
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
package azure
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
|
|
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5"
|
|
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5"
|
|
)
|
|
|
|
type imdsAPI interface {
|
|
providerID(ctx context.Context) (string, error)
|
|
name(ctx context.Context) (string, error)
|
|
resourceGroup(ctx context.Context) (string, error)
|
|
subscriptionID(ctx context.Context) (string, error)
|
|
uid(ctx context.Context) (string, error)
|
|
initSecretHash(ctx context.Context) (string, error)
|
|
}
|
|
|
|
type virtualNetworksAPI interface {
|
|
NewListPager(resourceGroupName string,
|
|
options *armnetwork.VirtualNetworksClientListOptions,
|
|
) *runtime.Pager[armnetwork.VirtualNetworksClientListResponse]
|
|
}
|
|
|
|
type securityGroupsAPI interface {
|
|
NewListPager(resourceGroupName string,
|
|
options *armnetwork.SecurityGroupsClientListOptions,
|
|
) *runtime.Pager[armnetwork.SecurityGroupsClientListResponse]
|
|
}
|
|
|
|
type networkInterfacesAPI interface {
|
|
GetVirtualMachineScaleSetNetworkInterface(ctx context.Context, resourceGroupName string,
|
|
virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string,
|
|
options *armnetwork.InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceOptions,
|
|
) (armnetwork.InterfacesClientGetVirtualMachineScaleSetNetworkInterfaceResponse, error)
|
|
Get(ctx context.Context, resourceGroupName string, networkInterfaceName string,
|
|
options *armnetwork.InterfacesClientGetOptions) (armnetwork.InterfacesClientGetResponse, error)
|
|
}
|
|
|
|
type publicIPAddressesAPI interface {
|
|
GetVirtualMachineScaleSetPublicIPAddress(ctx context.Context, resourceGroupName string,
|
|
virtualMachineScaleSetName string, virtualmachineIndex string, networkInterfaceName string,
|
|
ipConfigurationName string, publicIPAddressName string,
|
|
options *armnetwork.PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressOptions,
|
|
) (armnetwork.PublicIPAddressesClientGetVirtualMachineScaleSetPublicIPAddressResponse, error)
|
|
Get(ctx context.Context, resourceGroupName string, publicIPAddressName string,
|
|
options *armnetwork.PublicIPAddressesClientGetOptions,
|
|
) (armnetwork.PublicIPAddressesClientGetResponse, error)
|
|
}
|
|
|
|
type virtualMachineScaleSetVMsAPI interface {
|
|
Get(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string,
|
|
options *armcompute.VirtualMachineScaleSetVMsClientGetOptions,
|
|
) (armcompute.VirtualMachineScaleSetVMsClientGetResponse, error)
|
|
NewListPager(resourceGroupName string, virtualMachineScaleSetName string,
|
|
options *armcompute.VirtualMachineScaleSetVMsClientListOptions,
|
|
) *runtime.Pager[armcompute.VirtualMachineScaleSetVMsClientListResponse]
|
|
}
|
|
|
|
type scaleSetsAPI interface {
|
|
NewListPager(resourceGroupName string, options *armcompute.VirtualMachineScaleSetsClientListOptions,
|
|
) *runtime.Pager[armcompute.VirtualMachineScaleSetsClientListResponse]
|
|
}
|
|
|
|
type loadBalancerAPI interface {
|
|
NewListPager(resourceGroupName string, options *armnetwork.LoadBalancersClientListOptions,
|
|
) *runtime.Pager[armnetwork.LoadBalancersClientListResponse]
|
|
}
|