mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-06 08:15:48 -04:00
Move upload/delete code to its own package
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
5654e76f7e
commit
52a65c20ac
13 changed files with 129 additions and 100 deletions
|
@ -39,13 +39,14 @@ const (
|
|||
// unknown is the default objectKind and does nothing.
|
||||
unknown objectKind = "unknown-kind"
|
||||
snpReport objectKind = "snp-report"
|
||||
tdxReport objectKind = "tdx-report"
|
||||
guestFirmware objectKind = "guest-firmware"
|
||||
)
|
||||
|
||||
func kindFromString(s string) objectKind {
|
||||
lower := strings.ToLower(s)
|
||||
switch objectKind(lower) {
|
||||
case snpReport, guestFirmware:
|
||||
case snpReport, guestFirmware, tdxReport:
|
||||
return objectKind(lower)
|
||||
default:
|
||||
return unknown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue