/
wax_boy
/
semaphore_custom
Обзор
Документация
Войти
/
wax_boy
/
semaphore_custom
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
db/BackupEntity.go
113 строк
1 KB
Denis Gukov
feat(backup): add project runners to backup
28 апр 2026, 19:54
Не верифицирован
28 апр 2026, 19:54
2121072
Код
Авторство
О чём код?
package db type BackupEntity interface { GetID() int GetName() string } type BackupSluggedEntity interface { GetSlug() string GetName() string } func (e View) GetID() int { return e.ID } func (e View) GetName() string { return e.Title } func (e Schedule) GetName() string { return e.Name } func (e Template) GetID() int { return e.ID } func (e Template) GetName() string { return e.Name } func (e Inventory) GetID() int { return e.ID } func (e Inventory) GetName() string { return e.Name } func (key AccessKey) GetID() int { return key.ID } func (key AccessKey) GetName() string { return key.Name } func (e Repository) GetID() int { return e.ID } func (e Repository) GetName() string { return e.Name } func (e Environment) GetID() int { return e.ID } func (e Environment) GetName() string { return e.Name } func (e SecretStorage) GetID() int { return e.ID } func (e SecretStorage) GetName() string { return e.Name } func (e Role) GetID() int { panic("Role does not implement GetID") } func (e Role) GetSlug() string { return e.Slug } func (e Role) GetName() string { if e.ProjectID == nil { return e.Slug } return e.Name } func (e TemplateVault) GetID() int { return e.ID } func (e Task) GetID() int { return e.ID } func (e Integration) GetID() int { return e.ID } func (e Runner) GetID() int { return e.ID } func (e Runner) GetName() string { return e.Name } func (e Project) GetID() int { return e.ID } func (e User) GetID() int { return e.ID }