storeclient

package module
v0.0.0-...-78f2cfe Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

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

Index

Constants

View Source
const (
	DefaultStoreServerAddr = "dns:localhost:12345"
)

Variables

View Source
var (
	ErrNotImplemented = errors.New("not implemented")
	ErrNoClient       = errors.New("there is no active gRPC store client")
)

Functions

This section is empty.

Types

type GRPC

type GRPC struct {
	Config     GRPCConfig
	Connection *grpc.ClientConn
}

func (*GRPC) AddSwComponents

func (*GRPC) AddTrustAnchor

func (*GRPC) GetAttestation

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

type GRPCConfig

type GRPCConfig map[string]interface{}

Supported parameters:

* TODO(tho) auth'n credentials (e.g., TLS / JWT credentials)

func (*GRPCConfig) GetString

func (o *GRPCConfig) GetString(k, dflt string) (string, error)

type IStoreClient

type IStoreClient interface {
	common.VTSClient
}

func NewGRPC

func NewGRPC(c GRPCConfig) IStoreClient

NewGRPC instantiate a new gRPC store client with the supplied configuration

Jump to

Keyboard shortcuts

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