mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-14 23:49:38 -05: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
internal/osimage/osimage.go
Normal file
29
internal/osimage/osimage.go
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
// package osimage is used to handle osimages in the CI (uploading and maintenance).
|
||||
package osimage
|
||||
|
||||
import (
|
||||
"io"
|
||||
"time"
|
||||
|
||||
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
|
||||
"github.com/edgelesssys/constellation/v2/internal/osimage/secureboot"
|
||||
"github.com/edgelesssys/constellation/v2/internal/versionsapi"
|
||||
)
|
||||
|
||||
// UploadRequest is a request to upload an os image.
|
||||
type UploadRequest struct {
|
||||
Provider cloudprovider.Provider
|
||||
Version versionsapi.Version
|
||||
Variant string
|
||||
SBDatabase secureboot.Database
|
||||
UEFIVarStore secureboot.UEFIVarStore
|
||||
Size int64
|
||||
Timestamp time.Time
|
||||
Image io.ReadSeeker
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue