Documentation ¶
Index ¶
Constants ¶
View Source
const (
// APIPublicKeyConfigMap is the uploadProxy Public key
APIPublicKeyConfigMap = "cdi-api-public"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken generates a token from the given parameters
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.0
type CdiAPIServer interface {
Start() error
}
CdiAPIServer is the public interface to the CDI API
func NewCdiAPIServer ¶ added in v1.4.0
func NewCdiAPIServer(bindAddress string, bindPort uint, client kubernetes.Interface, aggregatorClient aggregatorclient.Interface, authorizor CdiAPIAuthorizer) (CdiAPIServer, error)
NewCdiAPIServer returns an initialized CDI api server
Click to show internal directories.
Click to hide internal directories.