File: access.go

package info (click to toggle)
incus 6.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 23,864 kB
  • sloc: sh: 16,015; ansic: 3,121; python: 456; makefile: 321; ruby: 51; sql: 50; lisp: 6
file content (27 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package api

// Access represents everyone that may access a particular resource.
//
// swagger:model
//
// API extension: instance_access.
type Access []AccessEntry

// AccessEntry represents an entity having access to the resource.
//
// swagger:model
//
// API extension: instance_access.
type AccessEntry struct {
	// Certificate fingerprint
	// Example: 636b69519d27ae3b0e398cb7928043846ce1e3842f0ca7a589993dd913ab8cc9
	Identifier string `json:"identifier" yaml:"identifier"`

	// The role associated with the certificate
	// Example: admin, view, operator
	Role string `json:"role" yaml:"role"`

	// Which authorization method the certificate uses
	// Example: tls, openfga
	Provider string `json:"provider" yaml:"provider"`
}