clientauthorizer

package
v0.0.0-...-54afde0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL