group

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Id              string                `json:"id,omitzero" validate:"uuid,readOnly"`
	Name            base.Name             `json:"name,omitzero"`
	Kind            base.Kind             `json:"kind,omitzero"`
	Version         *float64              `json:"version,omitzero" validate:"positive,integer,readOnly"`
	Description     string                `json:"description,omitzero" validate:"trim,max=250,allow="`
	Tags            GroupTags             `json:"tags,omitzero" validate:"default={}"`
	Created         string                `json:"created,omitzero" validate:"date,readOnly"`
	LastModified    string                `json:"lastModified,omitzero" validate:"date,readOnly"`
	Links           base.Links            `json:"links,omitzero" validate:"readOnly"`
	MemberLinks     MemberLinks           `json:"memberLinks,omitzero"`
	MemberQuery     *query.Query          `json:"memberQuery,omitzero"`
	IdentityMatcher *GroupIdentityMatcher `json:"identityMatcher,omitzero"`
	Origin          GroupOrigin           `json:"origin,omitzero" validate:"default=default,readOnly"`
}

func (Group) ValidationRule

func (Group) ValidationRule() *validate.Rule

ValidationRule reflects Group (group.ts: Base.keys({...})).

type GroupIdentityMatcher

type GroupIdentityMatcher struct {
	Expression string                       `json:"expression" validate:"required"`
	Language   GroupIdentityMatcherLanguage `json:"language,omitzero" validate:"default=jmespath,required"`
}

GroupIdentityMatcher's object-level expression-parse .custom (group.ts:20) is a Refine on its ValidationRule (validate.go).

func (GroupIdentityMatcher) ValidationRule

func (GroupIdentityMatcher) ValidationRule() *validate.Rule

ValidationRule reflects GroupIdentityMatcher and layers the expression-parse object .custom (group.ts:20): the `language` selects whether `expression` is parsed as JMESPath or JavaScript, throwing "Cannot parse ..." on a syntax error.

type GroupIdentityMatcherLanguage

type GroupIdentityMatcherLanguage string
const (
	GroupIdentityMatcherLanguageJmespath   GroupIdentityMatcherLanguage = "jmespath"
	GroupIdentityMatcherLanguageJavascript GroupIdentityMatcherLanguage = "javascript"
)

func (GroupIdentityMatcherLanguage) EnumValues

func (GroupIdentityMatcherLanguage) EnumValues() []string

type GroupOrigin

type GroupOrigin string
const (
	GroupOriginSynthetic GroupOrigin = "synthetic"
	GroupOriginDefault   GroupOrigin = "default"
	GroupOriginBuiltin   GroupOrigin = "builtin"
)

func (GroupOrigin) EnumValues

func (GroupOrigin) EnumValues() []string

type GroupTags

type GroupTags = base.Tags

GroupTags aliases base.Tags for the reflection base-type registry.

type MemberLink string

MemberLink ports `LocalLink.custom(toKind('user','serviceaccount'))` — the element of a group's memberLinks array. Self-validating via validate.go.

func (MemberLink) ValidationRule

func (MemberLink) ValidationRule() *validate.Rule

ValidationRule ports `LocalLink.custom(toKind('user','serviceaccount'))` (group.ts:11): a local link that must resolve to a user or serviceaccount in the same org.

type MemberLinks []MemberLink

MemberLinks ports the memberLinks array rule `Joi.array().items(LocalLink.custom(toKind(...))).max(200).sort().custom(makeUnique())` (group.ts:10-13). Nominal slice type so the array-level max/sort/makeUnique carry as its own Validator (validate.go); element kind-check lives on MemberLink.

func (MemberLinks) ValidationRule

func (MemberLinks) ValidationRule() *validate.Rule

ValidationRule ports the memberLinks array rule `Joi.array().items(LocalLink.custom(toKind(...))).max(200).sort().custom(makeUnique())` (group.ts:10-13) with the same operation order (max -> sort -> makeUnique), so the element rule comes from MemberLink and the array-level normalization lives here.

Jump to

Keyboard shortcuts

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