Documentation
¶
Overview ¶
Package identity says who is calling: a person, the AI, an agent or an API token.
Index ¶
Constants ¶
View Source
const ( KindUser = "user" KindAI = "ai" KindAgent = "agent" KindToken = "token" KindPlugin = "plugin" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Subject ¶
type Subject struct {
Kind string `json:"kind"`
Name string `json:"name"`
Groups []string `json:"groups,omitempty"`
Roles []string `json:"roles,omitempty"`
// Approve lists action globs an agent must get approved even where its writes are otherwise allowed.
Approve []string `json:"approve,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.