Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(config *Config, sID SigningIdentity, hasher hash2.Hasher) (*client, error)
func ValidateClientConfig ¶
Types ¶
type Config ¶
type Config struct { ID string ConnectionConfig *grpc.ConnectionConfig }
Config will be updated after the CR for token client config is merged, where the config data will be populated based on a config file.
type SigningIdentity ¶
func NewX509SigningIdentity ¶
func NewX509SigningIdentity(certPath, skPath string) (SigningIdentity, error)
type Stream ¶ added in v0.3.0
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) RecvProtoMsg ¶ added in v0.3.0
func (*Stream) SendProtoMsg ¶ added in v0.3.0
type ViewServiceClient ¶
type ViewServiceClient interface { // CreateViewClient creates a grpc connection and client to view peer CreateViewClient() (*grpc.ClientConn, protos2.ViewServiceClient, error) // Certificate returns tls client certificate Certificate() *tls.Certificate }
ViewServiceClient defines an interface that creates a client to communicate with the view service in a peer
type ViewServiceClientImpl ¶
type ViewServiceClientImpl struct { Address string ServerNameOverride string GRPCClient *grpc2.Client }
ViewServiceClientImpl implements ViewServiceClient interface
func (*ViewServiceClientImpl) Certificate ¶
func (pc *ViewServiceClientImpl) Certificate() *tls.Certificate
func (*ViewServiceClientImpl) CreateViewClient ¶
func (pc *ViewServiceClientImpl) CreateViewClient() (*grpc.ClientConn, protos2.ViewServiceClient, error)
Click to show internal directories.
Click to hide internal directories.