bean

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SYSTEM_USER_ID                              = 1
	PROJECT_TYPE                                = "team"
	ENV_TYPE                                    = "environment"
	APP_TYPE                                    = "app"
	WorkflowType                                = "workflow"
	CHART_GROUP_TYPE                            = "chart-group"
	MANAGER_TYPE                       RoleType = "manager"
	ADMIN_TYPE                         RoleType = "admin"
	TRIGGER_TYPE                       RoleType = "trigger"
	VIEW_TYPE                          RoleType = "view"
	ENTITY_ALL_TYPE                    RoleType = "entityAll"
	ENTITY_VIEW_TYPE                   RoleType = "entityView"
	ENTITY_SPECIFIC_TYPE               RoleType = "entitySpecific"
	ENTITY_SPECIFIC_ADMIN_TYPE         RoleType = "entitySpecificAdmin"
	ENTITY_SPECIFIC_VIEW_TYPE          RoleType = "entitySpecificView"
	ROLE_SPECIFIC_TYPE                 RoleType = "roleSpecific"
	ENTITY_CLUSTER_ADMIN_TYPE          RoleType = "clusterAdmin"
	ENTITY_CLUSTER_VIEW_TYPE           RoleType = "clusterView"
	ADMIN_HELM_TYPE                    RoleType = "admin"
	EDIT_HELM_TYPE                     RoleType = "edit"
	VIEW_HELM_TYPE                     RoleType = "view"
	ENTITY_CLUSTER_EDIT_TYPE           RoleType = "clusterEdit"
	SUPER_ADMIN                                 = "super-admin"
	GLOBAL_ENTITY                               = "globalEntity"
	EMPTY_ROLEFILTER_ENTRY_PLACEHOLDER          = "NONE"
	RoleNotFoundStatusPrefix                    = "role not fount for any given filter: "
	EmptyStringIndicatingAll                    = ""
)
View Source
const (
	ENTITY_APPS        = "apps"
	EntityJobs         = "jobs"
	CHART_GROUP_ENTITY = "chart-group"
	CLUSTER_ENTITIY    = "cluster"
)
View Source
const (
	DEVTRON_APP          = "devtron-app"
	APP_ACCESS_TYPE_HELM = "helm-app"
)
View Source
const (
	AdminUser  string = "admin"
	SystemUser string = "system"
)
View Source
const (
	AdminUserId  = 2 // we have established Admin user as 2 while setting up devtron
	SystemUserId = 1 // we have established System user as 1 while setting up devtron, which are being used for auto-trigger operations
)
View Source
const (
	API_TOKEN_USER_EMAIL_PREFIX = "API-TOKEN:"
	ApiTokenTableName           = "api_token"
)
View Source
const AnonymousUserEmail string = "anonymous"
View Source
const (
	DefaultSize int = 20
)
View Source
const (
	VALIDATION_FAILED_ERROR_MSG string = "validation failed: group name with , is not allowed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MergingBaseKey added in v1.1.0

type MergingBaseKey string
const (
	ApplicationBasedKey MergingBaseKey = "application"
	EnvironmentBasedKey MergingBaseKey = "environment"
)

type RbacPolicyEntityGroupDto

type RbacPolicyEntityGroupDto struct {
	Entity     string `json:"entity" validate:"oneof=apps cluster chart-group jobs"`
	AccessType string `json:"accessType,omitempty"`
}

type RbacRoleDto

type RbacRoleDto struct {
	Id              int    `json:"id"` // id of the default role
	RoleName        string `json:"roleName"`
	RoleDisplayName string `json:"roleDisplayName"`
	RoleDescription string `json:"roleDescription"`
	*RbacPolicyEntityGroupDto
}

type RoleType

type RoleType string

func (RoleType) String added in v1.0.0

func (r RoleType) String() string

type SortBy added in v0.6.29

type SortBy string
const (
	Email     SortBy = "email_id"
	LastLogin SortBy = "last_login"
	GroupName SortBy = "name"
)

func (SortBy) String added in v1.0.0

func (s SortBy) String() string

type SortOrder added in v0.6.29

type SortOrder string
const (
	Asc  SortOrder = "ASC"
	Desc SortOrder = "DESC"
)

func (SortOrder) String added in v1.0.0

func (s SortOrder) String() string

Jump to

Keyboard shortcuts

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