Documentation
¶
Index ¶
Constants ¶
const ( Token = "plane-token-1" ClientID = "agent-client" ClientSecret = "agent-secret" Instance = "inst-0001" MaxValueDepth = 32 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plane ¶
type Plane struct {
Mu sync.Mutex
Upper map[string]any
UpperLocks []map[string]any
Groups []map[string]any
GroupProvenance map[string]any
Profiles map[string]*Profile
FailStatus int
EtagOverride string
Requests []Request
TokenRequests int
Home string
URL string
OnGet func()
RefusePatch *Refusal
// contains filtered or unexported fields
}
Contract faithful config plane double with one upper document, per profile values and an IdP token endpoint
type Profile ¶
Profile layer the plane stores with its version and the writer config version last sent
type Rules ¶
type Rules struct {
Decode func(encoded string) ([]string, error)
Encode func(segments []string) string
WriteCheck func(setPaths [][]string, setValues []any, unsets [][]string, locks []Lock) (Lock, bool)
SecretLiteral func(path []string, value any) bool
}
Agent side helpers a write is checked against, the same ones the remote backend uses