Documentation
¶
Index ¶
Constants ¶
View Source
const (
// APIPublicKeyConfigMap is the uploadProxy Public key
APIPublicKeyConfigMap = "cdi-api-public"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CdiAPIAuthorizer ¶
type CdiAPIAuthorizer interface {
Authorize(req *restful.Request) (bool, string, error)
AddUserHeaders(header []string)
GetUserHeaders() []string
AddGroupHeaders(header []string)
GetGroupHeaders() []string
AddExtraPrefixHeaders(header []string)
GetExtraPrefixHeaders() []string
}
CdiAPIAuthorizer defines methods to authorize api requests
func NewAuthorizorFromConfig ¶
func NewAuthorizorFromConfig(config *restclient.Config) (CdiAPIAuthorizer, error)
NewAuthorizorFromConfig creates a new CdiAPIAuthorizor
type CdiAPIServer ¶ added in v1.4.1
type CdiAPIServer interface {
Start() 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) (CdiAPIServer, error)
NewCdiAPIServer returns an initialized CDI api server
Source Files
¶
- apiserver.go
- authorizer.go
- util.go
Click to show internal directories.
Click to hide internal directories.