Documentation ¶
Index ¶
- Constants
- func AttachCertificate(priv *jose.JSONWebKey, cert *x509.Certificate)
- func EnhanceMiddleware(ctx context.Context, sl *servicelocatorx.Options, d driver.Registry, ...) http.Handler
- func GetOrCreateTLSCertificate(ctx context.Context, d driver.Registry, iface config.ServeInterface, ...) func(*tls.ClientHelloInfo) (*tls.Certificate, error)
- func RunServeAdmin(slOpts []servicelocatorx.Option, dOpts []driver.OptionsModifier, ...) func(cmd *cobra.Command, args []string) error
- func RunServeAll(slOpts []servicelocatorx.Option, dOpts []driver.OptionsModifier, ...) func(cmd *cobra.Command, args []string) error
- func RunServePublic(slOpts []servicelocatorx.Option, dOpts []driver.OptionsModifier, ...) func(cmd *cobra.Command, args []string) error
Constants ¶
View Source
const (
TlsKeyName = "hydra.https-tls"
)
Variables ¶
This section is empty.
Functions ¶
func AttachCertificate ¶
func AttachCertificate(priv *jose.JSONWebKey, cert *x509.Certificate)
func EnhanceMiddleware ¶
func GetOrCreateTLSCertificate ¶
func GetOrCreateTLSCertificate(ctx context.Context, d driver.Registry, iface config.ServeInterface, stopReload <-chan struct{}) func(*tls.ClientHelloInfo) (*tls.Certificate, error)
GetOrCreateTLSCertificate returns a function for use with "net/tls".Config.GetCertificate. If the certificate and key are read from disk, they will be automatically reloaded until stopReload is close()'d.
func RunServeAdmin ¶
func RunServeAdmin(slOpts []servicelocatorx.Option, dOpts []driver.OptionsModifier, cOpts []configx.OptionModifier) func(cmd *cobra.Command, args []string) error
func RunServeAll ¶
func RunServeAll(slOpts []servicelocatorx.Option, dOpts []driver.OptionsModifier, cOpts []configx.OptionModifier) func(cmd *cobra.Command, args []string) error
func RunServePublic ¶
func RunServePublic(slOpts []servicelocatorx.Option, dOpts []driver.OptionsModifier, cOpts []configx.OptionModifier) func(cmd *cobra.Command, args []string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.