Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIType ¶
type APIType uint8
const ( /* /{service}/api/v1/namespaces/{namespace_name} eg: /workload/api/v1/namespaces */ LIST_ALL_RESOURCE APIType = iota /* /{service}/api/v1/namespaces/{namespace_name} eg: /workload/api/v1/namespaces/im-ops */ LIST_NAMESPACE_RESOURCE WATCH_NAMESPACE_RESOURCE WATCH_ALL_NAMESPACES_RESOURCE /* /api/metrics?start=1608184020&end=1608187620&step=60&kubernetes_namespace=im-ops */ METRICS )
type Authorization ¶
type Authorization struct {
// contains filtered or unexported fields
}
func NewAuthorization ¶
func NewAuthorization() *Authorization
type LoginHandle ¶
type LoginHandle struct {
*Authorization
}
func (*LoginHandle) Check ¶
func (h *LoginHandle) Check(username string, w http.ResponseWriter, r *http.Request) bool
func (*LoginHandle) ServeHTTP ¶
func (h *LoginHandle) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.