-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.go
33 lines (27 loc) · 924 Bytes
/
package.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Kubernetes HTTP auth things with support for projected service
// account token auth.
package k8shttpauth
import (
"github.com/rstudio/k8s-http-auth/client"
"github.com/rstudio/k8s-http-auth/middleware"
"github.com/rstudio/k8s-http-auth/reviewer"
)
var (
// NewClientInterface returns an interface for getting the
// client ID and building http requests with the necessary
// header.
NewClientInterface = client.New
// NewMiddleware returns a new Middleware for use with
// http mux (router).
NewMiddleware = middleware.New
// NewMiddlewareFunc returns a new middleware Func for use with
// http mux (router).
NewMiddlewareFunc = middleware.NewFunc
// NewReviewer returns a reviewer for general token review
// needs.
NewReviewer = reviewer.New
)
type ClientInterface = client.Interface
type Middleware = middleware.Middleware
type MiddlewareFunc = middleware.Func
type Reviewer = reviewer.Reviewer