Documentation ¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Package grpc contains the domain concept definitions needed to support Agent Client grpc functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadManifest ¶ added in v0.2.0
func ReadManifest(manifestPath string, attestationConfiguration *AttestationConfiguration) error
Types ¶
type AttestationConfiguration ¶ added in v0.1.0
type AttestationConfiguration struct { SNPPolicy *check.Policy `json:"snp_policy,omitempty"` RootOfTrust *check.RootOfTrust `json:"root_of_trust,omitempty"` }
type Client ¶
type Client interface { // Close closes gRPC connection. Close() error // Secure is used for pretty printing TLS info. Secure() string // Connection returns the gRPC connection. Connection() *grpc.ClientConn }
type Config ¶
type Config struct { ClientCert string `env:"CLIENT_CERT" envDefault:""` ClientKey string `env:"CLIENT_KEY" envDefault:""` ServerCAFile string `env:"SERVER_CA_CERTS" envDefault:""` URL string `env:"URL" envDefault:"localhost:7001"` Timeout time.Duration `env:"TIMEOUT" envDefault:"60s"` AttestedTLS bool `env:"ATTESTED_TLS" envDefault:"false"` Manifest string `env:"MANIFEST" envDefault:""` }
Click to show internal directories.
Click to hide internal directories.