mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
19 lines
828 B
Go
19 lines
828 B
Go
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"`
|
|
Labels map[string]string `json:"labels,omitempty"`
|
|
AdvertiseUrl string `json:"advertiseUrl,omitempty"`
|
|
SiteUrl string `json:"siteUrl,omitempty"`
|
|
ClientID string `json:"clientId,omitempty"`
|
|
ClientSecret string `json:"clientSecret,omitempty"`
|
|
RotateDatabase bool `json:"rotateDatabase,omitempty"`
|
|
RotateSecret bool `json:"rotateSecret,omitempty"`
|
|
}
|