entities

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RoleBindingIndices = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: "id", Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "user_id", Value: repos.IndexDesc},
			{Key: "resource_ref", Value: repos.IndexDesc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "role", Value: repos.IndexAsc},
			{Key: "resource_type", Value: repos.IndexAsc},
		},
	},
}

Functions

This section is empty.

Types

type RoleBinding

type RoleBinding struct {
	repos.BaseEntity `json:",inline" bson:",inline"`
	UserId           string         `json:"user_id"`
	ResourceType     t.ResourceType `json:"resource_type"`
	ResourceRef      string         `json:"resource_ref"`
	Role             t.Role         `json:"role"`
}

func (*RoleBinding) Validate

func (rb *RoleBinding) Validate() error

Jump to

Keyboard shortcuts

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