utils

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 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 (
	AddDesignTagUrlFormat                = "/designs/%s/tags"
	CreateDesignCommentReactionUrlFormat = "/designs/%s/comments/%s/reactions"
	CreateDesignCommentUrlFormat         = "/designs/%s/comments"
	CreateDesignReactionUrlFormat        = "/designs/%s/reactions"
	CreateDesignUrlFormat                = "/designs/new?template=%s"
	CreateEnvironmentUrlFormat           = "/environments"
	CreateLensUrlFormat                  = "/lenses"
	CreateProfileUrlFormat               = "/profiles/new"
	CreateTagUrlFormat                   = "/tags/new"
	CreateTemplateUrlFormat              = "/templates/new"
	CreateWorkflowStepUrlFormat          = "/workflows/%s/steps"
	CreateWorkflowUrlFormat              = "/workflows/new"
	CreateWorkloadUrlFormat              = "/workloads/new"
	DashboardStatsDesignUrlFormat        = "/stats/designs"
	DesignSearchTemplatesUrlFormat       = "/designs/search/templates"
	DesignTasksUrlFormat                 = "/designs/%s/tasks"
	DashboardStatsProfileUrlFormat       = "/stats/profiles"
	DashboardStatsWorkloadUrlFormat      = "/stats/workloads"
	DeleteDesignCommentReactionUrlFormat = "/designs/%s/comments/%s/reactions/%d"
	DeleteDesignCommentUrlFormat         = "/designs/%s/comments/%s"
	DeleteDesignReactionUrlFormat        = "/designs/%s/reactions/%d"
	DeleteDesignUrlFormat                = "/designs/%s"
	DeleteEnvironmentUrlFormat           = "/environments/%s"
	DeleteLensUrlFormat                  = "/lenses/%s"
	DeleteProfileUrlFormat               = "/profiles/%s"
	DeleteTagUrlFormat                   = "/tags/%s"
	DeleteTemplateUrlFormat              = "/templates/%s"
	DeleteWorkflowStepUrlFormat          = "/workflows/%s/steps/%d"
	DeleteWorkflowsUrlFormat             = "/workflows/%s"
	DeleteWorkloadUrlFormat              = "/workloads/%s"
	EditBodyUrlFormat                    = "/designs/%s/body/edit"
	EditTitleUrlFormat                   = "/designs/%s/title/edit"
	EditWorkloadUrlFormat                = "/workloads/%s/edit"
	EditTemplateBodyUrlFormat            = "/templates/%s/edit/body"
	EditTemplateTitleUrlFormat           = "/templates/%s/edit/title"
	ListDesignRevisionsUrlFormat         = "/designs/%s/revisions"
	ListTagsUrlFormat                    = "/tags"
	ListTemplatesUrlFormat               = "/templates"
	ListWorkflowsUrlFormat               = "/workflows"
	PublishLensUrlFormat                 = "/lenses/%s/publish"
	RemoveDesignTagUrlFormat             = "/designs/%s/tags/%s"
	SearchWorkflowsUrlFormat             = "/designs/search/workflows"
	ShowDesigUrlFormat                   = "/designs/%s"
	ShowEnvironmentUrlFormat             = "/environments/%s"
	ShowLensUrlFormat                    = "/lenses/%s"
	ShowProfileUrlFormat                 = "/profiles/%s"
	ShowTemplateUrlFormat                = "/templates/%s"
	ShowWorkflowUrlFormat                = "/workflows/%s"
	ShowWorkloadUrlFormat                = "/workloads/%s"
	UnpublishLensUrlFormat               = "/lenses/%s/publish"
	UpdateWorkflowStepUrlFormat          = "/workflows/%s/steps"
	WorkloadLensUrlFormat                = "/workloads/%s/lenses/%s"
	WorkloadSearchEnvironmentsUrlFormat  = "/workloads/search/environments"
	WorkloadSearchLensesUrlFormat        = "/workloads/search/lenses"
	WorkloadSearchProfilesUrlFormat      = "/workloads/search/profiles"
	AddWorkloadTagUrlFormat              = "/workloads/%s/tags"
	RemoveWorkloadTagUrlFormat           = "/workloads/%s/tags/%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