actions

package
v0.0.0-...-e59a564 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalPermissionAction

func MarshalPermissionAction(val PermissionAction) graphql.Marshaler

Types

type PermissionAction

type PermissionAction string
const (

	// List all groups (only compatible with wildcard ID *)
	ActionGroupList PermissionAction = "group_list"
	// Create groups
	ActionGroupCreate PermissionAction = "group_create"
	// Get a given group
	ActionGroupGet PermissionAction = "group_get"
	// Update a given group
	ActionGroupUpdate PermissionAction = "group_update"
	// Delete a given group
	ActionGroupDelete PermissionAction = "group_delete"

	// List all permissions (only compatible with wildcard ID *)
	ActionPermissionList PermissionAction = "permission_list"
	// Get a given permission
	ActionPermissionGet PermissionAction = "permission_get"
	// Grant permissions (only compatible with wildcard ID *)
	ActionPermissionGrant PermissionAction = "permission_grant"
	// Revoke permissions (only compatible with wildcard ID *)
	ActionPermissionRevoke PermissionAction = "permission_revoke"

	// List all projects (only compatible with wildcard ID *)
	ActionProjectList PermissionAction = "project_list"
	// Create projects (only compatible with wildcard ID *)
	ActionProjectCreate PermissionAction = "project_create"
	// Update a given project
	ActionProjectUpdate PermissionAction = "project_update"
	// Delete a given project
	ActionProjectDelete PermissionAction = "project_delete"
	// Modify project memberships
	ActionProjectUpdateMembership PermissionAction = "project_update_membership"

	// List all providers (only compatible with wildcard ID *)
	ActionProviderList PermissionAction = "provider_list"
	// Create providers
	ActionProviderCreate PermissionAction = "provider_create"
	// Get a given provider
	ActionProviderGet PermissionAction = "provider_get"
	// Update a given provider
	ActionProviderUpdate PermissionAction = "provider_update"
	// Delete a given provider
	ActionProviderDelete PermissionAction = "provider_delete"
	// Load a given provider
	ActionProviderLoad PermissionAction = "provider_load"
	// Unload a given provider
	ActionProviderUnload PermissionAction = "provider_unload"
	// Configure a given provider
	ActionProviderConfigure PermissionAction = "provider_configure"

	// List all users (only compatible with wildcard ID *)
	ActionUserList PermissionAction = "user_list"
	// Create users
	ActionUserCreate PermissionAction = "user_create"
	// Get a given user
	ActionUserGet PermissionAction = "user_get"
	// Update a given user
	ActionUserUpdate PermissionAction = "user_update"
	// Delete a given user
	ActionUserDelete PermissionAction = "user_delete"
	// Returned for any potential errors
	ActionUnknown PermissionAction = "unknown"
)

func Get

func Get(object string, action string) PermissionAction

Returns a PermissionAction for a given object and action

func UnmarshalPermissionAction

func UnmarshalPermissionAction(v interface{}) (PermissionAction, error)

func (PermissionAction) DisplayString

func (p PermissionAction) DisplayString() string

String strips the object-specific prefix from

func (PermissionAction) Values

func (PermissionAction) Values() (kinds []string)

Values provides list valid values for Enum.

Jump to

Keyboard shortcuts

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