Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckToken ¶ added in v0.96.1
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.
func RPCCredentialsV2 ¶ added in v0.120.0
func RPCCredentialsV2(token string) credentials.PerRPCCredentials
RPCCredentialsV2 can be used with grpc.WithPerRPCCredentials to create a grpc.DialOption that inserts an HMAC token with the current timestamp for authentication with a Gitaly server.
Types ¶
Click to show internal directories.
Click to hide internal directories.