grpcacl

package
v0.0.0-20180203224945-... Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package grpcacl provides a method of applying coarse service ACLs based on the identity of the connecting service.

The certificate format expected by this package *is not* stable. Please do not use it in production.

Index

Constants

This section is empty.

Variables

View Source
var ErrClientNotApproved = errors.New("client not an allowed identity")

ErrClientNotApproved is the error returned when a client that is not allowed attempts to connect to the server.

View Source
var ErrNonTLSTransport = errors.New("transport is not tls")

ErrNonTLSTransport is returned if this credential is used on a transport without TLS.

Functions

func NewTLS

func NewTLS(c *tls.Config, allowed ...string) credentials.TransportCredentials

NewTLS creates a new transport credential that verifies that any connecting client has a common name from the allowed list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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