Call Home Enabled in console (#2248)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2023-02-13 17:04:35 -06:00
committed by GitHub
parent a6637f18c8
commit de4ff1c1f0
25 changed files with 2445 additions and 25 deletions

View File

@@ -60,6 +60,10 @@ func subnetAPIKeyURL() string {
return subnetBaseURL() + "/api/auth/api-key"
}
func LogWebhookURL() string {
return subnetBaseURL() + "/api/logs"
}
func GenerateRegToken(clusterRegInfo mc.ClusterRegistrationInfo) (string, error) {
token, e := json.Marshal(clusterRegInfo)
if e != nil {