/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/service/cluster/request.go
25 строк
1 KB
Michael Mayer
Cluster: Declare per-node group config via instance env/flags
12 июн 2026, 21:52
12 июн 2026, 21:52
d594edd
Код
Авторство
О чём код?
package cluster // RegisterRequest represents the JSON payload sent to the Portal when a node // registers or refreshes its metadata. // // swagger:model RegisterRequest type RegisterRequest struct { NodeName string `json:"NodeName"` NodeUUID string `json:"NodeUUID,omitempty"` NodeRole string `json:"NodeRole,omitempty"` DisplayName string `json:"DisplayName,omitempty"` Labels map[string]string `json:"Labels,omitempty"` AppName string `json:"AppName,omitempty"` AppVersion string `json:"AppVersion,omitempty"` Theme string `json:"Theme,omitempty"` AdvertiseUrl string `json:"AdvertiseUrl,omitempty"` SiteUrl string `json:"SiteUrl,omitempty"` AllowGroups []string `json:"AllowGroups,omitempty"` AllowGroupRoles map[string]string `json:"AllowGroupRoles,omitempty"` GroupsFullView bool `json:"GroupsFullView,omitempty"` ClientID string `json:"ClientID,omitempty"` ClientSecret string `json:"ClientSecret,omitempty"` //nolint:gosec // G117: Rotated OAuth client secret payload. RotateDatabase bool `json:"RotateDatabase,omitempty"` RotateSecret bool `json:"RotateSecret,omitempty"` }