handler

package
v0.0.0-...-7237863 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Input

type Input struct {
	Groups     []string             `json:"groups"`
	Permission Permission           `json:"permission"`
	Resource   string               `json:"resource"`
	Subject    string               `json:"subject"`
	Tenant     string               `json:"tenant"`
	Extras     InputExtraAttributes `json:"extras,omitempty"`
}

type InputExtraAttributes

type InputExtraAttributes struct {
	Selectors         map[string][]string `json:"selectors,omitempty"`
	WildcardSelectors bool                `json:"wildcardSelectors,omitempty"`
	MetadataOnly      bool                `json:"metadataOnly,omitempty"`
}

type Permission

type Permission string

Permission is an Observatorium RBAC permission.

const (
	// Write gives access to write data to a tenant.
	Write Permission = "write"
	// Read gives access to read data from a tenant.
	Read Permission = "read"
)

Jump to

Keyboard shortcuts

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