utils

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PermissionAdmin grants all permissions on a team
	PermissionAdmin = authz.AuthzAction("admin")
	// PermissionSuperAdmin grants all permissions
	PermissionSuperAdmin = authz.AuthzAction("superadmin")
	// PermissionCreate grants the ability to create
	PermissionCreate = authz.AuthzAction("create")
	// PermissionDelete grants the ability to delete
	PermissionDelete = authz.AuthzAction("delete")
	// PermissionEdit grants the ability to edit
	PermissionEdit = authz.AuthzAction("edit")
	// PermissionView grants the ability to read
	PermissionView = authz.AuthzAction("view")
)
View Source
const (
	// RoleAdmin grants all permissions on a team
	RoleAdmin = authz.AuthzAction("Admin")
	// RoleSuperAdmin grants all permissions
	RoleSuperAdmin = authz.AuthzAction("Super Admin")
	// RoleOwner grants all permissions
	RoleOwner = authz.AuthzAction("Owner")
	// Editor grants the ability to edit
	RoleEditor = authz.AuthzAction("Editor")
	// RoleViewer grants the ability to read
	RoleViewer = authz.AuthzAction("Viewer")
)
View Source
const (
	CreateDesignCommentUrlFormat        = "/designs/%s/comments"
	CreateDesignUrlFormat               = "/designs/new?template=%s"
	CreateEnvironmentUrlFormat          = "/environments"
	CreateLensUrlFormat                 = "/lenses"
	CreateProfileUrlFormat              = "/profiles/new"
	CreateTagUrlFormat                  = "/tags/new"
	CreateWorkflowUrlFormat             = "/workflows/new"
	CreateTemplateUrlFormat             = "/templates/new"
	CreateWorkloadUrlFormat             = "/workloads/new"
	DeleteDesignUrlFormat               = "/designs/%s"
	DeleteEnvironmentUrlFormat          = "/environments/%s"
	DeleteLensUrlFormat                 = "/lenses/%s"
	DeleteProfileUrlFormat              = "/profiles/%s"
	DeleteTagUrlFormat                  = "/tags/%s"
	DeleteTemplateUrlFormat             = "/templates/%s"
	DeleteWorkflowsUrlFormat            = "/workflows/%s"
	EditBodyUrlFormat                   = "/designs/%s/body/edit"
	EditTitleUrlFormat                  = "/designs/%s/title/edit"
	EditWorkloadUrlFormat               = "/workloads/%s/edit"
	ListTagsUrlFormat                   = "/tags"
	ListTemplatesUrlFormat              = "/templates"
	ListWorkflowsUrlFormat              = "/workflows"
	ShowDesigUrlFormat                  = "/designs/%s"
	ShowProfileUrlFormat                = "/profiles/%s"
	ShowTemplateUrlFormat               = "/templates/%s"
	ShowLensUrlFormat                   = "/lenses/%s"
	ShowWorkloadUrlFormat               = "/workloads/%s"
	ShowWorkflowUrlFormat               = "/workflows/%s"
	ShowEnvironmentUrlFormat            = "/environments/%s"
	DashboardStatsProfileUrlFormat      = "/stats/profiles"
	DashboardStatsDesignUrlFormat       = "/stats/designs"
	DashboardStatsWorkloadUrlFormat     = "/stats/workloads"
	WorkloadSearchLensesUrlFormat       = "/workloads/search/lenses"
	WorkloadSearchEnvironmentsUrlFormat = "/workloads/search/environments"
	WorkloadSearchProfilesUrlFormat     = "/workloads/search/profiles"
	WorkloadLensUrlFormat               = "/workloads/%s/lenses/%s"
	DeleteWorkloadUrlFormat             = "/workloads/%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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