auth

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

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 AccountData ContextKey = "accountData"

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

Jump to

Keyboard shortcuts

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