Documentation
¶
Index ¶
- Constants
- func BuildPluginTLSName(purpose string, moduleName string) string
- func IteratePEMFile(r io.Reader, callback func(block *pem.Block) (continueIterate bool, err error)) error
- func NewAnonPipe(rx *uintptr, tx *uintptr, cloexec bool) error
- func NewListener() (net.Listener, string, error)
- func NewTCPListener() (net.Listener, string, error)
- type EphemeralTLSClient
- func (s *EphemeralTLSClient) CACert() *x509.Certificate
- func (s *EphemeralTLSClient) ClientTLSConfig(moduleName string) *tls.Config
- func (s *EphemeralTLSClient) Kex(req io.Reader, resp io.Writer) error
- func (s *EphemeralTLSClient) ServerTLSConfig() *tls.Config
- func (s *EphemeralTLSClient) SignCSR(dnsName string, csr *x509.CertificateRequest) ([]byte, error)
- func (s *EphemeralTLSClient) SignPluginCSR(moduleName string, csr *x509.CertificateRequest) ([]byte, error)
- type GrpcPipeTLS
Constants ¶
View Source
const ( PurposePluginRPC = "rpc" PurposePluginWebhook = "webhook" )
View Source
const ServerTLSName = "server.gotify.home.arpa"
Variables ¶
This section is empty.
Functions ¶
func BuildPluginTLSName ¶
func IteratePEMFile ¶
Types ¶
type EphemeralTLSClient ¶
type EphemeralTLSClient struct {
// contains filtered or unexported fields
}
func NewEphemeralTLSClient ¶
func NewEphemeralTLSClient() (*EphemeralTLSClient, error)
func (*EphemeralTLSClient) CACert ¶
func (s *EphemeralTLSClient) CACert() *x509.Certificate
func (*EphemeralTLSClient) ClientTLSConfig ¶
func (s *EphemeralTLSClient) ClientTLSConfig(moduleName string) *tls.Config
func (*EphemeralTLSClient) ServerTLSConfig ¶
func (s *EphemeralTLSClient) ServerTLSConfig() *tls.Config
func (*EphemeralTLSClient) SignCSR ¶
func (s *EphemeralTLSClient) SignCSR(dnsName string, csr *x509.CertificateRequest) ([]byte, error)
func (*EphemeralTLSClient) SignPluginCSR ¶
func (s *EphemeralTLSClient) SignPluginCSR(moduleName string, csr *x509.CertificateRequest) ([]byte, error)
type GrpcPipeTLS ¶
type GrpcPipeTLS struct {
// contains filtered or unexported fields
}
func NewGrpcPipeTLS ¶
func NewGrpcPipeTLS(address string, config *tls.Config) *GrpcPipeTLS
func (*GrpcPipeTLS) Dial ¶
func (p *GrpcPipeTLS) Dial(ctx context.Context) (*grpc.ClientConn, error)
Click to show internal directories.
Click to hide internal directories.