vtsclient

package
v0.0.0-...-952bb8a Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2022 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoClient = errors.New("there is no active gRPC VTS client")
)

Functions

This section is empty.

Types

type GRPC

type GRPC struct {
	Config     config.Store
	Connection *grpc.ClientConn
}

func NewGRPC

func NewGRPC(c config.Store) *GRPC

NewGRPC instantiate a new gRPC store client with the supplied configuration

func (*GRPC) AddSwComponents

func (o *GRPC) AddSwComponents(ctx context.Context, in *proto.AddSwComponentsRequest, opts ...grpc.CallOption,
) (*proto.AddSwComponentsResponse, error)

func (*GRPC) AddTrustAnchor

func (o *GRPC) AddTrustAnchor(ctx context.Context, in *proto.AddTrustAnchorRequest, opts ...grpc.CallOption,
) (*proto.AddTrustAnchorResponse, error)

func (*GRPC) EnsureConnection

func (o *GRPC) EnsureConnection() error

func (*GRPC) GetAttestation

func (o *GRPC) GetAttestation(
	ctx context.Context, in *proto.AttestationToken, opts ...grpc.CallOption,
) (*proto.AppraisalContext, error)

func (*GRPC) GetProvisionerClient

func (o *GRPC) GetProvisionerClient() proto.VTSClient

func (*GRPC) GetSupportedVerificationMediaTypes

func (o *GRPC) GetSupportedVerificationMediaTypes(
	ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption,
) (*proto.MediaTypeList, error)

type IVTSClient

type IVTSClient interface {
	proto.VTSClient
}

Jump to

Keyboard shortcuts

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