Documentation ¶
Index ¶
Constants ¶
View Source
const ( // APIGroup is a common group for api APIGroup = "cicdapi.tmax.io" // NamespaceParamKey is a common key for namespace var NamespaceParamKey = "namespace" )
Variables ¶
This section is empty.
Functions ¶
func GetUserExtras ¶
func GetUserExtras(header http.Header) map[string]authorization.ExtraValue
GetUserExtras extracts user extras from the header
func GetUserGroup ¶
GetUserGroup extracts user group from the header
Types ¶
type APIHandler ¶
type APIHandler interface{}
APIHandler is an api handler interface. Common functions should be defined, if needed
type Authorizer ¶
Authorizer authorizes an api request
func NewAuthorizer ¶
func NewAuthorizer(cli *authorization.AuthorizationV1Client, apiGroup, apiVersion, verb string) Authorizer
NewAuthorizer instantiates a new authorizer
Click to show internal directories.
Click to hide internal directories.