Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const (
	// This header carries the JWT token for gitlab-rails
	RequestHeader = "Gitlab-Workhorse-Api-Request"
)
    Variables ¶
      View Source
      
  
var (
	DefaultClaims = jwt.StandardClaims{Issuer: "gitlab-workhorse"}
)
    Functions ¶
func Bytes ¶
Lazy access to the HMAC secret key. We must be lazy because if the key is not already there, it will be generated by gitlab-rails, and gitlab-rails is slow.
func NewRoundTripper ¶
func NewRoundTripper(next http.RoundTripper, version string) http.RoundTripper
NewRoundTripper creates a RoundTripper that adds the JWT token header to a request. This is used to verify that a request came from workhorse
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.