builtins

package
v0.0.0-...-1f2d26a Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterIdentity

func RegisterIdentity() (*rego.Function, rego.Builtin1)

RegisterIdentity looks for the identity of either a user or an org for a given ID

func RegisterResource

func RegisterResource() (*rego.Function, rego.Builtin1)

RegisterResource looks up a resource for a given ID

Types

type Identity

type Identity struct {
	Id   string   `json:"id"`
	Kind string   `json:"kind"`
	Orgs []string `json:"orgs"` // Need to work on entitlements, this could likely be a trimmed (flat) access graph for now
}

type Resource

type Resource struct {
	Id          string   `json:"id"`
	Kind        string   `json:"kind"`
	Owner       string   `json:"owner"`
	Permissions []string `json:"permissions"` // These are not set for resources (yet), but they are for shares
}

Jump to

Keyboard shortcuts

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