apiserver

package
v0.0.0-...-063afa5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 GetUserGroups

func GetUserGroups(header http.Header) ([]string, error)

GetUserGroups extracts user group from the header

func GetUserName

func GetUserName(header http.Header) (string, error)

GetUserName extracts username from the header

Types

type APIHandler

type APIHandler interface{}

APIHandler is an api handler interface. Common functions should be defined, if needed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL