gitalyauth

package
v0.110.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckToken added in v0.96.1

func CheckToken(ctx context.Context, secret string) error

CheckToken checks the 'authentication' header of incoming gRPC metadata in ctx. It returns nil if and only if the token matches secret.

func RPCCredentials

func RPCCredentials(token string) credentials.PerRPCCredentials

RPCCredentials can be used with grpc.WithPerRPCCredentials to create a grpc.DialOption that inserts the supplied token for authentication with a Gitaly server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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