client

package
v2.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright (c) Edgeless Systems GmbH

SPDX-License-Identifier: AGPL-3.0-only

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, cfg staticupload.Config, cosignPwd, privateKey []byte) (*Client, CloseFunc, error)

New returns a new Client.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client manages (modifies) the version information for the attestation variants.

func (Client) Close

func (a Client) Close(ctx context.Context) error

Close closes the Client.

func (Client) DeleteList

func (a Client) DeleteList(ctx context.Context, attestation variant.Variant) error

DeleteList empties the list of versions for the given attestation type.

func (Client) List

func (a Client) List(ctx context.Context, attestation variant.Variant) ([]string, error)

List returns the list of versions for the given attestation type.

func (Client) UploadAzureSEVSNP

func (a Client) UploadAzureSEVSNP(ctx context.Context, versions attestationconfig.AzureSEVSNPVersion, date time.Time) error

UploadAzureSEVSNP uploads the latest version numbers of the Azure SEVSNP.

type CloseFunc

type CloseFunc func(ctx context.Context) error

CloseFunc is a function that closes the client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL