mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
config: define lists of valid disk types
This commit is contained in:
parent
15bb3b31fd
commit
2246c31b7b
12
internal/config/disktypes/BUILD.bazel
Normal file
12
internal/config/disktypes/BUILD.bazel
Normal file
@ -0,0 +1,12 @@
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "disktypes",
|
||||
srcs = [
|
||||
"aws.go",
|
||||
"azure.go",
|
||||
"gcp.go",
|
||||
],
|
||||
importpath = "github.com/edgelesssys/constellation/v2/internal/config/disktypes",
|
||||
visibility = ["//:__subpackages__"],
|
||||
)
|
17
internal/config/disktypes/aws.go
Normal file
17
internal/config/disktypes/aws.go
Normal file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package disktypes
|
||||
|
||||
// AWSDiskTypes is derived from:
|
||||
// https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html (Last updated: August 1st, 2023).
|
||||
var AWSDiskTypes = []string{
|
||||
"gp2",
|
||||
"gp3",
|
||||
"st1",
|
||||
"sc1",
|
||||
"io1",
|
||||
}
|
16
internal/config/disktypes/azure.go
Normal file
16
internal/config/disktypes/azure.go
Normal file
@ -0,0 +1,16 @@
|
||||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package disktypes
|
||||
|
||||
// AzureDiskTypes are valid Azure disk types.
|
||||
var AzureDiskTypes = []string{
|
||||
"Premium_LRS",
|
||||
"Premium_ZRS",
|
||||
"Standard_LRS",
|
||||
"StandardSSD_LRS",
|
||||
"StandardSSD_ZRS",
|
||||
}
|
14
internal/config/disktypes/gcp.go
Normal file
14
internal/config/disktypes/gcp.go
Normal file
@ -0,0 +1,14 @@
|
||||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package disktypes
|
||||
|
||||
// GCPDiskTypes are valid GCP disk types.
|
||||
var GCPDiskTypes = []string{
|
||||
"pd-standard",
|
||||
"pd-balanced",
|
||||
"pd-ssd",
|
||||
}
|
Loading…
Reference in New Issue
Block a user