Documentation ¶
Index ¶
- type CommandHandler
- func Accept() CommandHandler
- func Augment(ctx context.Context, metadataCollector metadatax.Collector, logger logr.Logger) CommandHandler
- func CSRSign(certSigner X509CertificateRequestSigner, defaultCertTTL time.Duration) (CommandHandler, error)
- func Connect() CommandHandler
- func Log(eventBus *eventbus.EventBus, logger logr.Logger) CommandHandler
- type CommandHandlerFunc
- type Commander
- type X509CertificateRequestSigner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
func Accept ¶
func Accept() CommandHandler
func CSRSign ¶
func CSRSign(certSigner X509CertificateRequestSigner, defaultCertTTL time.Duration) (CommandHandler, error)
func Connect ¶
func Connect() CommandHandler
type CommandHandlerFunc ¶
func (CommandHandlerFunc) HandleCommand ¶
func (f CommandHandlerFunc) HandleCommand(c messenger.Command) (string, error)
type Commander ¶
type Commander interface { Run(ctx context.Context) error AddHandler(commandName string, handler CommandHandler) }
type X509CertificateRequestSigner ¶
type X509CertificateRequestSigner interface { SignCertificateRequest(req *x509.CertificateRequest, ttl time.Duration) (*tls.X509Certificate, []*tls.X509Certificate, error) GetTrustAnchor() *tls.X509Certificate }
Click to show internal directories.
Click to hide internal directories.