package headerrequest
import "k8s.io/apiserver/pkg/authentication/request/headerrequest"
Index ¶
- func New(nameHeaders, groupHeaders, extraHeaderPrefixes []string) (authenticator.Request, error)
- func NewDynamic(nameHeaders, groupHeaders, extraHeaderPrefixes StringSliceProvider) authenticator.Request
- func NewDynamicVerifyOptionsSecure(verifyOptionFn x509request.VerifyOptionFunc, proxyClientNames, nameHeaders, groupHeaders, extraHeaderPrefixes StringSliceProvider) authenticator.Request
- func NewSecure(clientCA string, proxyClientNames []string, nameHeaders []string, groupHeaders []string, extraHeaderPrefixes []string) (authenticator.Request, error)
- type StaticStringSlice
- type StringSliceProvider
- type StringSliceProviderFunc
Functions ¶
func New ¶
func New(nameHeaders, groupHeaders, extraHeaderPrefixes []string) (authenticator.Request, error)
func NewDynamic ¶
func NewDynamic(nameHeaders, groupHeaders, extraHeaderPrefixes StringSliceProvider) authenticator.Request
func NewDynamicVerifyOptionsSecure ¶
func NewDynamicVerifyOptionsSecure(verifyOptionFn x509request.VerifyOptionFunc, proxyClientNames, nameHeaders, groupHeaders, extraHeaderPrefixes StringSliceProvider) authenticator.Request
func NewSecure ¶
func NewSecure(clientCA string, proxyClientNames []string, nameHeaders []string, groupHeaders []string, extraHeaderPrefixes []string) (authenticator.Request, error)
Types ¶
type StaticStringSlice ¶
type StaticStringSlice []string
StaticStringSlice a StringSliceProvider that returns a fixed value
func (StaticStringSlice) Value ¶
func (s StaticStringSlice) Value() []string
Value returns the current string slice. Callers should never mutate the returned value.
type StringSliceProvider ¶
type StringSliceProvider interface { // Value returns the current string slice. Callers should never mutate the returned value. Value() []string }
StringSliceProvider is a way to get a string slice value. It is heavily used for authentication headers among other places.
type StringSliceProviderFunc ¶
type StringSliceProviderFunc func() []string
StringSliceProviderFunc is a function that matches the StringSliceProvider interface
func (StringSliceProviderFunc) Value ¶
func (d StringSliceProviderFunc) Value() []string
Value returns the current string slice. Callers should never mutate the returned value.
Source Files ¶
requestheader.go
- Version
- v0.19.0-alpha.0
- Published
- Feb 21, 2020
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 4 seconds ago –
Tools for package owners.