Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TLS ¶
type TLS struct {
// contains filtered or unexported fields
}
TLS satisfies the connection.Credentials interface for configuring grpc connections encrypted by TLS. It requires the public certificate of a certificate authority, and a certificate key pair signed by the given certificate authority. Communication is only allowed if the peer has a valid public key signed by the given certificate authority. The rsa subpackage contains code to generate certificates compatible with this authentication scheme.
func (TLS) ClientOpts ¶
func (tlsAuth TLS) ClientOpts() []grpc.DialOption
ClientOpts gets the grpc options for connecting as a client.
func (TLS) ServerOpts ¶
func (tlsAuth TLS) ServerOpts() []grpc.ServerOption
ServerOpts gets the grpc options for creating a server.
Directories ¶
Path | Synopsis |
---|---|
Package io is used to ensure that the various pieces of code that interact with credentials read and write files to consistent locations.
|
Package io is used to ensure that the various pieces of code that interact with credentials read and write files to consistent locations. |
Click to show internal directories.
Click to hide internal directories.