Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAuthorizer ¶
type ClientAuthorizer interface { IsAuthorized(*tls.ConnectionState) bool IsReady() bool }
func NewARM ¶
func NewARM(log *logrus.Entry) ClientAuthorizer
func NewAdmin ¶
func NewAdmin(log *logrus.Entry, caBundlePath, clientCertCommonName string) (ClientAuthorizer, error)
NewAdmin creates a new instance of ClientAuthorizer to be used with Admin API. This authorizer allows connections only if they contain a valid client certificate signed by `caBundlePath` and the client certificate's CommonName equals `clientCertCommonName`.
func NewAll ¶
func NewAll() ClientAuthorizer
func NewOne ¶
func NewOne(cert []byte) ClientAuthorizer
Click to show internal directories.
Click to hide internal directories.