mirror of
https://github.com/openziti/ziti.git
synced 2026-10-14 16:19:57 +00:00
7e2b97c425
- fixes timeout calculation bugs - adds timeout calculation unit/api tests - adds posture response service events - fixes 0 to -1 values for timeout settings - fixes abnormally high service updates
45 lines
868 B
Go
45 lines
868 B
Go
package persistence
|
|
|
|
import (
|
|
"github.com/openziti/foundation/storage/boltz"
|
|
"time"
|
|
)
|
|
|
|
func (m *Migrations) addProcessMultiPostureCheck(step *boltz.MigrationStep) {
|
|
windows := OperatingSystem{
|
|
OsType: "Windows",
|
|
OsVersions: []string{},
|
|
}
|
|
|
|
linux := OperatingSystem{
|
|
OsType: "Linux",
|
|
OsVersions: []string{},
|
|
}
|
|
|
|
macOS := OperatingSystem{
|
|
OsType: "macOS",
|
|
OsVersions: []string{},
|
|
}
|
|
|
|
processCheckType := &PostureCheckOs{
|
|
BaseExtEntity: boltz.BaseExtEntity{
|
|
Id: "PROCESS_MULTI",
|
|
CreatedAt: time.Now(),
|
|
UpdatedAt: time.Now(),
|
|
Tags: map[string]interface{}{},
|
|
Migrate: false,
|
|
},
|
|
Name: "Process Multi Check",
|
|
OperatingSystems: []OperatingSystem{
|
|
windows,
|
|
macOS,
|
|
linux,
|
|
},
|
|
}
|
|
|
|
if err := m.stores.PostureCheckType.Create(step.Ctx, processCheckType); err != nil {
|
|
step.SetError(err)
|
|
return
|
|
}
|
|
}
|