Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UploadTokenRequestAPI ¶ added in v1.6.0
func UploadTokenRequestAPI() []*restful.WebService
UploadTokenRequestAPI returns web service for swagger generation
Types ¶
type AuthConfig ¶ added in v1.9.4
type AuthConfig struct {
AllowedNames []string
UserHeaders []string
GroupHeaders []string
ExtraPrefixHeaders []string
ClientCABytes []byte
RequestheaderClientCABytes []byte
CertPool *x509.CertPool
}
AuthConfig contains extension-apiserver-authentication data
type AuthConfigWatcher ¶ added in v1.9.4
type AuthConfigWatcher interface {
GetAuthConfig() *AuthConfig
}
AuthConfigWatcher is the interface of authConfigWatcher
func NewAuthConfigWatcher ¶ added in v1.9.4
func NewAuthConfigWatcher(client kubernetes.Interface, stopCh <-chan struct{}) AuthConfigWatcher
NewAuthConfigWatcher crates a new authConfigWatcher
type CdiAPIAuthorizer ¶
CdiAPIAuthorizer defines methods to authorize api requests
func NewAuthorizorFromConfig ¶
func NewAuthorizorFromConfig(config *restclient.Config, authConfigWatcher AuthConfigWatcher) (CdiAPIAuthorizer, error)
NewAuthorizorFromConfig creates a new CdiAPIAuthorizor
type CdiAPIServer ¶ added in v1.4.1
type CdiAPIServer interface {
Start(<-chan struct{}) error
}
CdiAPIServer is the public interface to the CDI API
func NewCdiAPIServer ¶ added in v1.4.1
func NewCdiAPIServer(bindAddress string, bindPort uint, client kubernetes.Interface, aggregatorClient aggregatorclient.Interface, authorizor CdiAPIAuthorizer, authConfigWatcher AuthConfigWatcher) (CdiAPIServer, error)
NewCdiAPIServer returns an initialized CDI api server
Source Files
¶
- apiserver.go
- auth-config.go
- authorizer.go
Click to show internal directories.
Click to hide internal directories.