Documentation
¶
Overview ¶
Package group is the domain layer for the Group entity — a named set of users that role bindings can name as a subject. Local groups only: an IdP group of the same name unions with this one at login, and is never an object here.
Authorization is app/authz's concern; this package validates shape only.
Index ¶
Constants ¶
const SystemPrefix = "system:"
SystemPrefix marks the built-in virtual groups (system:authenticated, system:serviceaccounts, …). They are never rows, so a stored Group may not claim one of those names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
Meta meta.Metadata `json:"metadata" yaml:"metadata"`
Spec Spec `json:"spec" yaml:"spec"`
}
Group is a named set of users.
type Spec ¶
type Spec struct {
// MemberIDs are User ids, in declaration order.
MemberIDs []string `json:"memberIds,omitempty" yaml:"memberIds,omitempty" validate:"omitempty,dive,uuid"`
// Enabled defaults to true when nil.
Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
}
Spec carries the member list and the enabled flag.