mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-06 16:25:21 -04:00
image: implement idempotent upload of os images
This commit is contained in:
parent
17c45bc881
commit
ee91d8b1cc
42 changed files with 4272 additions and 95 deletions
29
image/upload/internal/cmd/qemu.go
Normal file
29
image/upload/internal/cmd/qemu.go
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
// NewQEMUCmd returns the command that uploads an OS image to QEMU.
|
||||
func NewQEMUCmd() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "qemu",
|
||||
Short: "Upload OS image to QEMU",
|
||||
Long: "Upload OS image to QEMU.",
|
||||
Args: cobra.ExactArgs(0),
|
||||
RunE: runQEMU,
|
||||
}
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func runQEMU(cmd *cobra.Command, args []string) error {
|
||||
return runNOP(cmd, cloudprovider.QEMU, args)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue