Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationType ¶
type AuthorizationType string
const ( Keycloak AuthorizationType = "keycloak" Ldap AuthorizationType = "ldap" Horusec AuthorizationType = "horusec" Unknown AuthorizationType = "unknown" )
func GetAuthTypeByString ¶
func GetAuthTypeByString(authType string) (a AuthorizationType)
func (AuthorizationType) IsInvalid ¶
func (a AuthorizationType) IsInvalid() bool
func (AuthorizationType) ToString ¶
func (a AuthorizationType) ToString() string
func (AuthorizationType) Values ¶
func (a AuthorizationType) Values() []AuthorizationType
type ContextKey ¶
type ContextKey string
const AccountID ContextKey = "accountID"
const ConfigAuth ContextKey = "configAuth"
type HorusecRoles ¶
type HorusecRoles string
const ( ApplicationAdmin HorusecRoles = "applicationAdmin" CompanyMember HorusecRoles = "companyMember" CompanyAdmin HorusecRoles = "companyAdmin" RepositoryMember HorusecRoles = "repositoryMember" RepositorySupervisor HorusecRoles = "repositorySupervisor" RepositoryAdmin HorusecRoles = "repositoryAdmin" )
func (HorusecRoles) IsEqual ¶
func (h HorusecRoles) IsEqual(value string) bool
func (HorusecRoles) IsInvalid ¶
func (h HorusecRoles) IsInvalid() bool
func (HorusecRoles) ToString ¶
func (h HorusecRoles) ToString() string
func (HorusecRoles) Values ¶
func (h HorusecRoles) Values() []HorusecRoles
Click to show internal directories.
Click to hide internal directories.