1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00
Files
incus/shared/api/access.go
Sahaj Bhakta 830b522a17 shared/api: Introduce Access structs
Signed-off-by: Sahaj Bhakta <sahajbhakta@gmail.com>
2024-05-21 18:29:05 -04:00

28 lines
733 B
Go

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"`
}