Documentation ¶
Overview ¶
Copyright 2022 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- type GRPC
- func (o *GRPC) AddSwComponents(ctx context.Context, in *common.AddSwComponentsRequest, ...) (*common.AddSwComponentsResponse, error)
- func (o *GRPC) AddTrustAnchor(ctx context.Context, in *common.AddTrustAnchorRequest, opts ...grpc.CallOption) (*common.AddTrustAnchorResponse, error)
- func (o *GRPC) GetAttestation(ctx context.Context, in *common.AttestationToken, opts ...grpc.CallOption) (*common.Attestation, error)
- type GRPCConfig
- type IStoreClient
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 (o *GRPC) AddSwComponents(ctx context.Context, in *common.AddSwComponentsRequest, opts ...grpc.CallOption, ) (*common.AddSwComponentsResponse, error)
func (*GRPC) AddTrustAnchor ¶
func (o *GRPC) AddTrustAnchor(ctx context.Context, in *common.AddTrustAnchorRequest, opts ...grpc.CallOption, ) (*common.AddTrustAnchorResponse, error)
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:
- store-server.addr: string w/ syntax specified in https://github.com/grpc/grpc/blob/master/doc/naming.md
- TODO(tho) load balancing config See https://github.com/grpc/grpc/blob/master/doc/load-balancing.md
* TODO(tho) auth'n credentials (e.g., TLS / JWT credentials)
type IStoreClient ¶
func NewGRPC ¶
func NewGRPC(c GRPCConfig) IStoreClient
NewGRPC instantiate a new gRPC store client with the supplied configuration
Click to show internal directories.
Click to hide internal directories.