feat: initial implementation of EnvGuard with improved TUI layout
This commit is contained in:
23
internal/models/models.go
Normal file
23
internal/models/models.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// Service represents a microservice that can be locked.
|
||||
type Service struct {
|
||||
Name string `json:"name"`
|
||||
IsLocked bool `json:"is_locked"`
|
||||
LockedBy string `json:"locked_by,omitempty"`
|
||||
LockedAt time.Time `json:"locked_at,omitempty"`
|
||||
}
|
||||
|
||||
// LockRequest is the payload to lock a service.
|
||||
type LockRequest struct {
|
||||
ServiceName string `json:"service_name"`
|
||||
User string `json:"user"`
|
||||
}
|
||||
|
||||
// UnlockRequest is the payload to unlock a service.
|
||||
type UnlockRequest struct {
|
||||
ServiceName string `json:"service_name"`
|
||||
User string `json:"user"`
|
||||
}
|
||||
Reference in New Issue
Block a user