credentials

package
v0.0.0-...-8c9b590 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package credentials loads certificates and validates user credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizeUser

func AuthorizeUser(ctx context.Context) (string, bool)

AuthorizeUser checks for valid credentials in the context Metadata.

func ClientCredentials

func ClientCredentials(server string) []grpc.DialOption

ClientCredentials generates gRPC DialOptions for existing credentials.

func LoadCertificates

func LoadCertificates() ([]tls.Certificate, *x509.CertPool)

LoadCertificates loads certificates from file.

func ServerCredentials

func ServerCredentials() []grpc.ServerOption

ServerCredentials generates gRPC ServerOptions for existing credentials.

Types

This section is empty.

Jump to

Keyboard shortcuts

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