Documentation ¶
Overview ¶
Copyright 2022-2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0
Copyright 2022-2024 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0
Index ¶
- Variables
- type GRPC
- func (o *GRPC) EnsureConnection() error
- func (o *GRPC) GetAttestation(ctx context.Context, in *proto.AttestationToken, opts ...grpc.CallOption) (*proto.AppraisalContext, error)
- func (o *GRPC) GetEARSigningPublicKey(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*proto.PublicKey, error)
- func (o *GRPC) GetProvisionerClient() proto.VTSClient
- func (o *GRPC) GetServiceState(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*proto.ServiceState, error)
- func (o *GRPC) GetSupportedProvisioningMediaTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*proto.MediaTypeList, error)
- func (o *GRPC) GetSupportedVerificationMediaTypes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*proto.MediaTypeList, error)
- func (o *GRPC) Init(v *viper.Viper, certPath, keyPath string) error
- func (o *GRPC) SubmitEndorsements(ctx context.Context, in *proto.SubmitEndorsementsRequest, ...) (*proto.SubmitEndorsementsResponse, error)
- type IVTSClient
- type NoConnectionError
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 { ServerAddress string Credentials credentials.TransportCredentials Connection *grpc.ClientConn }
func (*GRPC) EnsureConnection ¶
func (*GRPC) GetAttestation ¶
func (o *GRPC) GetAttestation( ctx context.Context, in *proto.AttestationToken, opts ...grpc.CallOption, ) (*proto.AppraisalContext, error)
func (*GRPC) GetEARSigningPublicKey ¶
func (*GRPC) GetProvisionerClient ¶
func (*GRPC) GetServiceState ¶
func (o *GRPC) GetServiceState( ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption, ) (*proto.ServiceState, error)
func (*GRPC) GetSupportedProvisioningMediaTypes ¶
func (o *GRPC) GetSupportedProvisioningMediaTypes( ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption, ) (*proto.MediaTypeList, error)
func (*GRPC) GetSupportedVerificationMediaTypes ¶
func (o *GRPC) GetSupportedVerificationMediaTypes( ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption, ) (*proto.MediaTypeList, error)
func (*GRPC) SubmitEndorsements ¶
func (o *GRPC) SubmitEndorsements( ctx context.Context, in *proto.SubmitEndorsementsRequest, opts ...grpc.CallOption, ) (*proto.SubmitEndorsementsResponse, error)
type IVTSClient ¶
type NoConnectionError ¶
func NewNoConnectionError ¶
func NewNoConnectionError(ctx string, err error) NoConnectionError
func (NoConnectionError) Error ¶
func (o NoConnectionError) Error() string
func (NoConnectionError) Unwrap ¶
func (o NoConnectionError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.