mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-13 21:41:37 -05:00
![Otto Bittner](/assets/img/avatar_default.png)
* api: rename AttestationVersionRepo to Client * api: move client into separate subpkg for clearer import paths. * api: rename configapi -> attestationconfig * api: rename versionsapi -> versions * api: rename sut to client * api: split versionsapi client and make it public * api: split versionapi fetcher and make it public * config: move attestationversion type to config * api: fix attestationconfig client test Co-authored-by: Adrian Stobbe <stobbe.adrian@gmail.com>
26 lines
543 B
Go
26 lines
543 B
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
|
|
versionsapi "github.com/edgelesssys/constellation/v2/internal/api/versions"
|
|
"github.com/edgelesssys/constellation/v2/internal/osimage"
|
|
)
|
|
|
|
type archivist interface {
|
|
Archive(ctx context.Context,
|
|
version versionsapi.Version, csp, attestationVariant string, img io.Reader,
|
|
) (string, error)
|
|
}
|
|
|
|
type uploader interface {
|
|
Upload(ctx context.Context, req *osimage.UploadRequest) ([]versionsapi.ImageInfoEntry, error)
|
|
}
|