Documentation
¶
Overview ¶
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Index ¶
- Constants
- type CAFromFile
- type ClusterManager
- type Config
- type Proxy
- func (p *Proxy) GetClusterName(path string) string
- func (p *Proxy) OIDCTokenAuthenticator() authenticator.Token
- func (p *Proxy) Run(stopCh <-chan struct{}) (<-chan struct{}, <-chan struct{}, error)
- func (p *Proxy) RunPreShutdownHooks() error
- func (p *Proxy) SetupClusterProxy(cluster *cluster.Cluster) error
- func (p *Proxy) WithRBACHandler(handler http.Handler) http.Handler
Constants ¶
View Source
const (
UserHeaderClientIPKey = "Remote-Client-IP"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CAFromFile ¶
type CAFromFile struct {
CAFile string
}
implement oidc.CAContentProvider to load the ca file from the options
func (CAFromFile) CurrentCABundleContent ¶
func (caFromFile CAFromFile) CurrentCABundleContent() []byte
type ClusterManager ¶
type ClusterManager interface {
AddOrUpdateCluster(cluster *cluster.Cluster)
GetCluster(name string) *cluster.Cluster
GetAllClusters() []*cluster.Cluster
RemoveCluster(name string)
}
ClusterManager interface for dependency injection
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func New ¶
func New( oidcOptions *options.OIDCAuthenticationOptions, auditOptions *options.AuditOptions, ssinfo *server.SecureServingInfo, config *Config, clusterManager ClusterManager) (*Proxy, error)
func (*Proxy) GetClusterName ¶
func (*Proxy) OIDCTokenAuthenticator ¶
func (p *Proxy) OIDCTokenAuthenticator() authenticator.Token
Return the proxy OIDC token authenticator
func (*Proxy) RunPreShutdownHooks ¶
Click to show internal directories.
Click to hide internal directories.