mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
0316350d16
* Chore: Update thema to latest * Regenerate
73 lines
1.7 KiB
Go
73 lines
1.7 KiB
Go
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// kinds/gen.go
|
|
// Using jennies:
|
|
// GoResourceTypes
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
package rolebinding
|
|
|
|
// Defines values for BuiltinRoleRefKind.
|
|
const (
|
|
BuiltinRoleRefKindBuiltinRole BuiltinRoleRefKind = "BuiltinRole"
|
|
)
|
|
|
|
// Defines values for BuiltinRoleRefName.
|
|
const (
|
|
BuiltinRoleRefNameAdmin BuiltinRoleRefName = "admin"
|
|
BuiltinRoleRefNameEditor BuiltinRoleRefName = "editor"
|
|
BuiltinRoleRefNameViewer BuiltinRoleRefName = "viewer"
|
|
)
|
|
|
|
// Defines values for CustomRoleRefKind.
|
|
const (
|
|
CustomRoleRefKindRole CustomRoleRefKind = "Role"
|
|
)
|
|
|
|
// Defines values for SubjectKind.
|
|
const (
|
|
SubjectKindTeam SubjectKind = "Team"
|
|
SubjectKindUser SubjectKind = "User"
|
|
)
|
|
|
|
// BuiltinRoleRef defines model for BuiltinRoleRef.
|
|
type BuiltinRoleRef struct {
|
|
Kind BuiltinRoleRefKind `json:"kind"`
|
|
Name BuiltinRoleRefName `json:"name"`
|
|
}
|
|
|
|
// BuiltinRoleRefKind defines model for BuiltinRoleRef.Kind.
|
|
type BuiltinRoleRefKind string
|
|
|
|
// BuiltinRoleRefName defines model for BuiltinRoleRef.Name.
|
|
type BuiltinRoleRefName string
|
|
|
|
// CustomRoleRef defines model for CustomRoleRef.
|
|
type CustomRoleRef struct {
|
|
Kind CustomRoleRefKind `json:"kind"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// CustomRoleRefKind defines model for CustomRoleRef.Kind.
|
|
type CustomRoleRefKind string
|
|
|
|
// Subject defines model for Subject.
|
|
type Subject struct {
|
|
Kind SubjectKind `json:"kind"`
|
|
|
|
// The team/user identifier name
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// SubjectKind defines model for Subject.Kind.
|
|
type SubjectKind string
|
|
|
|
// Spec defines model for Spec.
|
|
type Spec struct {
|
|
// The role we are discussing
|
|
Role any `json:"role"`
|
|
Subject Subject `json:"subject"`
|
|
}
|