Documentation ¶
Index ¶
Constants ¶
View Source
const ( NamespaceFilePath = "/var/run/secrets/kubernetes.io/serviceaccount/namespace" CaFilePath = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" )
Variables ¶
View Source
var JWKCacheRefresh = 5 * time.Minute
Functions ¶
Types ¶
type BearerTransport ¶
type BearerTransport struct { Token string Transport http.RoundTripper }
type GetJWKFunc ¶ added in v0.0.4
type GetJWKFunc func() (*jose.JSONWebKey, error)
type HttpContextKeyEmail ¶ added in v0.0.4
type HttpContextKeyEmail struct{}
type Kubernetes ¶
type Kubernetes struct {
// contains filtered or unexported fields
}
func NewKubernetes ¶
func NewKubernetes() (*Kubernetes, error)
func (*Kubernetes) CA ¶
func (k *Kubernetes) CA() ([]byte, error)
func (*Kubernetes) Endpoint ¶
func (k *Kubernetes) Endpoint() (string, error)
Endpoint gets the cluster endpoint from within the pod
func (*Kubernetes) Namespace ¶ added in v0.0.7
func (k *Kubernetes) Namespace() (string, error)
func (*Kubernetes) UpdatePermissions ¶
func (k *Kubernetes) UpdatePermissions(rbs []RoleBinding) error
type RegistrationInfo ¶
type RoleBinding ¶
Click to show internal directories.
Click to hide internal directories.