Documentation ¶
Index ¶
- Variables
- func NewTLSConfig(cfg *TLSOptions) (*tls.Config, error)
- type TLSOptions
- func (*TLSOptions) Descriptor() ([]byte, []int)
- func (m *TLSOptions) GetCAFile() string
- func (m *TLSOptions) GetCertFile() string
- func (m *TLSOptions) GetInsecureSkipVerify() bool
- func (m *TLSOptions) GetKeyFile() string
- func (m *TLSOptions) GetMinVersion() string
- func (m *TLSOptions) GetServerName() string
- func (*TLSOptions) ProtoMessage()
- func (m *TLSOptions) Reset()
- func (m *TLSOptions) String() string
- func (m *TLSOptions) XXX_DiscardUnknown()
- func (m *TLSOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TLSOptions) XXX_Merge(src proto.Message)
- func (m *TLSOptions) XXX_Size() int
- func (m *TLSOptions) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Versions = map[string]uint16{ "TLS13": tls.VersionTLS13, "TLS12": tls.VersionTLS12, "TLS11": tls.VersionTLS11, "TLS10": tls.VersionTLS10, }
Functions ¶
func NewTLSConfig ¶
func NewTLSConfig(cfg *TLSOptions) (*tls.Config, error)
NewTLSConfig creates a new tls.Config from the given TLSConfig.
Types ¶
type TLSOptions ¶
type TLSOptions struct { CAFile string `protobuf:"bytes,1,opt,name=ca_file,json=caFile,proto3" json:"ca_file,omitempty"` CertFile string `protobuf:"bytes,2,opt,name=cert_file,json=certFile,proto3" json:"cert_file,omitempty"` KeyFile string `protobuf:"bytes,3,opt,name=key_file,json=keyFile,proto3" json:"key_file,omitempty"` ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` InsecureSkipVerify bool `protobuf:"varint,5,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"` MinVersion string `protobuf:"bytes,6,opt,name=min_version,json=minVersion,proto3" json:"min_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TLSOptions) Descriptor ¶
func (*TLSOptions) Descriptor() ([]byte, []int)
func (*TLSOptions) GetCAFile ¶
func (m *TLSOptions) GetCAFile() string
func (*TLSOptions) GetCertFile ¶
func (m *TLSOptions) GetCertFile() string
func (*TLSOptions) GetInsecureSkipVerify ¶
func (m *TLSOptions) GetInsecureSkipVerify() bool
func (*TLSOptions) GetKeyFile ¶
func (m *TLSOptions) GetKeyFile() string
func (*TLSOptions) GetMinVersion ¶
func (m *TLSOptions) GetMinVersion() string
func (*TLSOptions) GetServerName ¶
func (m *TLSOptions) GetServerName() string
func (*TLSOptions) ProtoMessage ¶
func (*TLSOptions) ProtoMessage()
func (*TLSOptions) Reset ¶
func (m *TLSOptions) Reset()
func (*TLSOptions) String ¶
func (m *TLSOptions) String() string
func (*TLSOptions) XXX_DiscardUnknown ¶
func (m *TLSOptions) XXX_DiscardUnknown()
func (*TLSOptions) XXX_Marshal ¶
func (m *TLSOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TLSOptions) XXX_Merge ¶
func (m *TLSOptions) XXX_Merge(src proto.Message)
func (*TLSOptions) XXX_Size ¶
func (m *TLSOptions) XXX_Size() int
func (*TLSOptions) XXX_Unmarshal ¶
func (m *TLSOptions) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.