Documentation ¶
Overview ¶
package tlsinfo defines the RPC interface for the sansshell TLSInfo actions
Index ¶
- Constants
- Variables
- func RegisterTLSInfoServer(s grpc.ServiceRegistrar, srv TLSInfoServer)
- type GetTLSCertificateManyResponse
- type TLSCertificate
- func (*TLSCertificate) Descriptor() ([]byte, []int)deprecated
- func (x *TLSCertificate) GetDnsNames() []string
- func (x *TLSCertificate) GetIpAddresses() []string
- func (x *TLSCertificate) GetIssuer() string
- func (x *TLSCertificate) GetNotAfter() int64
- func (x *TLSCertificate) GetNotBefore() int64
- func (x *TLSCertificate) GetRaw() []byte
- func (x *TLSCertificate) GetSubject() string
- func (*TLSCertificate) ProtoMessage()
- func (x *TLSCertificate) ProtoReflect() protoreflect.Message
- func (x *TLSCertificate) Reset()
- func (x *TLSCertificate) String() string
- type TLSCertificateChain
- func (*TLSCertificateChain) Descriptor() ([]byte, []int)deprecated
- func (x *TLSCertificateChain) GetCertificates() []*TLSCertificate
- func (*TLSCertificateChain) ProtoMessage()
- func (x *TLSCertificateChain) ProtoReflect() protoreflect.Message
- func (x *TLSCertificateChain) Reset()
- func (x *TLSCertificateChain) String() string
- type TLSCertificateRequest
- func (*TLSCertificateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TLSCertificateRequest) GetInsecureSkipVerify() bool
- func (x *TLSCertificateRequest) GetServerAddress() string
- func (x *TLSCertificateRequest) GetServerName() string
- func (*TLSCertificateRequest) ProtoMessage()
- func (x *TLSCertificateRequest) ProtoReflect() protoreflect.Message
- func (x *TLSCertificateRequest) Reset()
- func (x *TLSCertificateRequest) String() string
- type TLSInfoClient
- type TLSInfoClientProxy
- type TLSInfoServer
- type UnimplementedTLSInfoServer
- type UnsafeTLSInfoServer
Constants ¶
const (
TLSInfo_GetTLSCertificate_FullMethodName = "/TLSInfo.TLSInfo/GetTLSCertificate"
)
Variables ¶
var File_tlsinfo_proto protoreflect.FileDescriptor
var TLSInfo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "TLSInfo.TLSInfo", HandlerType: (*TLSInfoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTLSCertificate", Handler: _TLSInfo_GetTLSCertificate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "tlsinfo.proto", }
TLSInfo_ServiceDesc is the grpc.ServiceDesc for TLSInfo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTLSInfoServer ¶
func RegisterTLSInfoServer(s grpc.ServiceRegistrar, srv TLSInfoServer)
Types ¶
type GetTLSCertificateManyResponse ¶
type GetTLSCertificateManyResponse struct { Target string // As targets can be duplicated this is the index into the slice passed to proxy.Conn. Index int Resp *TLSCertificateChain Error error }
GetTLSCertificateManyResponse encapsulates a proxy data packet. It includes the target, index, response and possible error returned.
type TLSCertificate ¶
type TLSCertificate struct { Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` NotBefore int64 `protobuf:"varint,3,opt,name=not_before,json=notBefore,proto3" json:"not_before,omitempty"` NotAfter int64 `protobuf:"varint,4,opt,name=not_after,json=notAfter,proto3" json:"not_after,omitempty"` DnsNames []string `protobuf:"bytes,5,rep,name=dns_names,json=dnsNames,proto3" json:"dns_names,omitempty"` IpAddresses []string `protobuf:"bytes,6,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"` Raw []byte `protobuf:"bytes,7,opt,name=raw,proto3" json:"raw,omitempty"` // Complete ASN.1 DER content (certificate, signature algorithm and signature) // contains filtered or unexported fields }
func (*TLSCertificate) Descriptor
deprecated
func (*TLSCertificate) Descriptor() ([]byte, []int)
Deprecated: Use TLSCertificate.ProtoReflect.Descriptor instead.
func (*TLSCertificate) GetDnsNames ¶
func (x *TLSCertificate) GetDnsNames() []string
func (*TLSCertificate) GetIpAddresses ¶
func (x *TLSCertificate) GetIpAddresses() []string
func (*TLSCertificate) GetIssuer ¶
func (x *TLSCertificate) GetIssuer() string
func (*TLSCertificate) GetNotAfter ¶
func (x *TLSCertificate) GetNotAfter() int64
func (*TLSCertificate) GetNotBefore ¶
func (x *TLSCertificate) GetNotBefore() int64
func (*TLSCertificate) GetRaw ¶ added in v1.35.0
func (x *TLSCertificate) GetRaw() []byte
func (*TLSCertificate) GetSubject ¶
func (x *TLSCertificate) GetSubject() string
func (*TLSCertificate) ProtoMessage ¶
func (*TLSCertificate) ProtoMessage()
func (*TLSCertificate) ProtoReflect ¶
func (x *TLSCertificate) ProtoReflect() protoreflect.Message
func (*TLSCertificate) Reset ¶
func (x *TLSCertificate) Reset()
func (*TLSCertificate) String ¶
func (x *TLSCertificate) String() string
type TLSCertificateChain ¶
type TLSCertificateChain struct { Certificates []*TLSCertificate `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"` // contains filtered or unexported fields }
func (*TLSCertificateChain) Descriptor
deprecated
func (*TLSCertificateChain) Descriptor() ([]byte, []int)
Deprecated: Use TLSCertificateChain.ProtoReflect.Descriptor instead.
func (*TLSCertificateChain) GetCertificates ¶
func (x *TLSCertificateChain) GetCertificates() []*TLSCertificate
func (*TLSCertificateChain) ProtoMessage ¶
func (*TLSCertificateChain) ProtoMessage()
func (*TLSCertificateChain) ProtoReflect ¶
func (x *TLSCertificateChain) ProtoReflect() protoreflect.Message
func (*TLSCertificateChain) Reset ¶
func (x *TLSCertificateChain) Reset()
func (*TLSCertificateChain) String ¶
func (x *TLSCertificateChain) String() string
type TLSCertificateRequest ¶
type TLSCertificateRequest struct { ServerAddress string `protobuf:"bytes,1,opt,name=server_address,json=serverAddress,proto3" json:"server_address,omitempty"` // Server's address, including port (e.g. "example.com:443") ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` InsecureSkipVerify bool `protobuf:"varint,3,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"` // contains filtered or unexported fields }
func (*TLSCertificateRequest) Descriptor
deprecated
func (*TLSCertificateRequest) Descriptor() ([]byte, []int)
Deprecated: Use TLSCertificateRequest.ProtoReflect.Descriptor instead.
func (*TLSCertificateRequest) GetInsecureSkipVerify ¶
func (x *TLSCertificateRequest) GetInsecureSkipVerify() bool
func (*TLSCertificateRequest) GetServerAddress ¶
func (x *TLSCertificateRequest) GetServerAddress() string
func (*TLSCertificateRequest) GetServerName ¶
func (x *TLSCertificateRequest) GetServerName() string
func (*TLSCertificateRequest) ProtoMessage ¶
func (*TLSCertificateRequest) ProtoMessage()
func (*TLSCertificateRequest) ProtoReflect ¶
func (x *TLSCertificateRequest) ProtoReflect() protoreflect.Message
func (*TLSCertificateRequest) Reset ¶
func (x *TLSCertificateRequest) Reset()
func (*TLSCertificateRequest) String ¶
func (x *TLSCertificateRequest) String() string
type TLSInfoClient ¶
type TLSInfoClient interface { // Retrieves details of the TLS certificate chain from a specified server GetTLSCertificate(ctx context.Context, in *TLSCertificateRequest, opts ...grpc.CallOption) (*TLSCertificateChain, error) }
TLSInfoClient is the client API for TLSInfo service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
The TLSInfo service definition
func NewTLSInfoClient ¶
func NewTLSInfoClient(cc grpc.ClientConnInterface) TLSInfoClient
type TLSInfoClientProxy ¶
type TLSInfoClientProxy interface { TLSInfoClient GetTLSCertificateOneMany(ctx context.Context, in *TLSCertificateRequest, opts ...grpc.CallOption) (<-chan *GetTLSCertificateManyResponse, error) }
TLSInfoClientProxy is the superset of TLSInfoClient which additionally includes the OneMany proxy methods
func NewTLSInfoClientProxy ¶
func NewTLSInfoClientProxy(cc *proxy.Conn) TLSInfoClientProxy
NewTLSInfoClientProxy creates a TLSInfoClientProxy for use in proxied connections. NOTE: This takes a proxy.Conn instead of a generic ClientConnInterface as the methods here are only valid in proxy.Conn contexts.
type TLSInfoServer ¶
type TLSInfoServer interface { // Retrieves details of the TLS certificate chain from a specified server GetTLSCertificate(context.Context, *TLSCertificateRequest) (*TLSCertificateChain, error) }
TLSInfoServer is the server API for TLSInfo service. All implementations should embed UnimplementedTLSInfoServer for forward compatibility
The TLSInfo service definition
type UnimplementedTLSInfoServer ¶
type UnimplementedTLSInfoServer struct { }
UnimplementedTLSInfoServer should be embedded to have forward compatible implementations.
func (UnimplementedTLSInfoServer) GetTLSCertificate ¶
func (UnimplementedTLSInfoServer) GetTLSCertificate(context.Context, *TLSCertificateRequest) (*TLSCertificateChain, error)
type UnsafeTLSInfoServer ¶
type UnsafeTLSInfoServer interface {
// contains filtered or unexported methods
}
UnsafeTLSInfoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TLSInfoServer will result in compilation errors.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package client provides the client interface for 'tlsinfo'
|
Package client provides the client interface for 'tlsinfo' |
Package server implements the server interface for sansshell 'tlsinfo' service.
|
Package server implements the server interface for sansshell 'tlsinfo' service. |