Documentation ¶
Index ¶
Constants ¶
View Source
const CattleAuthFailed = "X-API-Cattle-Auth-Failed"
Variables ¶
View Source
var ExistingContext = ToMiddleware(AuthenticatorFunc(func(req *http.Request) (user.Info, bool, error) { user, ok := request.UserFrom(req.Context()) return user, ok, nil }))
View Source
var ( // Default value taken from DefaultAuthWebhookRetryBackoff WebhookBackoff = wait.Backoff{ Duration: 500 * time.Millisecond, Factor: 1.5, Jitter: 0.2, Steps: 5, } )
Functions ¶
func WebhookConfigForURL ¶
Types ¶
type Authenticator ¶
func NewWebhookAuthenticator ¶
type AuthenticatorFunc ¶
func (AuthenticatorFunc) Authenticate ¶
type Middleware ¶
func NewWebhookMiddleware ¶
func ToMiddleware ¶
func ToMiddleware(auth Authenticator) Middleware
func (Middleware) Chain ¶
func (m Middleware) Chain(middleware Middleware) Middleware
Click to show internal directories.
Click to hide internal directories.