commands

package
v0.4.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Event emitted when a User has been created
	CreateUser es.CommandType = "CreateUser"
	// Command to delete a User
	DeleteUser es.CommandType = "DeleteUser"
	// Command to update a User
	UpdateUser es.CommandType = "UpdateUser"

	// Command to create a new UserRoleBinding
	CreateUserRoleBinding es.CommandType = "CreateUserRoleBinding"
	// Command to delete a UserRoleBinding
	DeleteUserRoleBinding es.CommandType = "DeleteUserRoleBinding"

	// Event emitted when a Tenant has been created
	CreateTenant es.CommandType = "CreateTenant"
	// Command to update a Tenant
	UpdateTenant es.CommandType = "UpdateTenant"
	// Command to delete a Tenant
	DeleteTenant es.CommandType = "DeleteTenant"

	// Command to create a Cluster
	CreateCluster es.CommandType = "CreateCluster"
	// Command to delete a Cluster
	DeleteCluster es.CommandType = "DeleteCluster"
	// Command to update a Cluster
	UpdateCluster es.CommandType = "UpdateCluster"

	// Command to allow a tenant to access a certain cluster
	CreateTenantClusterBinding es.CommandType = "CreateTenantClusterBinding"
	// Command to remove access of a tenant to a certain cluster
	DeleteTenantClusterBinding es.CommandType = "DeleteTenantClusterBinding"
)

Variables

View Source
var (
	UserCommands = []es.CommandType{
		CreateUser,
		DeleteUser,
		UpdateUser,
	}

	UserRoleBindingCommands = []es.CommandType{
		CreateUserRoleBinding,
		DeleteUserRoleBinding,
	}

	TenantCommands = []es.CommandType{
		CreateTenant,
		UpdateTenant,
		DeleteTenant,
	}

	ClusterCommands = []es.CommandType{
		CreateCluster,
		DeleteCluster,
		UpdateCluster,
	}

	TenantClusterBindingCommands = []es.CommandType{
		CreateTenantClusterBinding,
		DeleteTenantClusterBinding,
	}

	CommandTypes = map[string][]es.CommandType{
		"User":                 UserCommands,
		"UserRoleBinding":      UserRoleBindingCommands,
		"Tenant":               TenantCommands,
		"Cluster":              ClusterCommands,
		"TenantClusterBinding": TenantClusterBindingCommands,
	}
)

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