mirror of
https://github.com/hanzozt/zt.git
synced 2026-10-30 15:04:55 +00:00
Global rebrand of all OpenZiti references to Hanzo ZT: - Go module paths: github.com/openziti/* → github.com/hanzozt/* - Docker images: openziti/* → hanzozt/* - Java packages: org.openziti.* → org.hanzozt.* - Brand: OpenZiti → Hanzo ZT - URLs: openziti.io → hanzozt.dev
46 lines
850 B
Go
46 lines
850 B
Go
package db
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/hanzozt/storage/boltz"
|
|
)
|
|
|
|
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 := &PostureCheckType{
|
|
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
|
|
}
|
|
}
|