add Mode to Service entity

This commit is contained in:
Pavel Sviderski committed 2024-12-03 11:37:13 +10:00
1 parent 8db7ac84a0
commit 5621a84e99
6 files changed
+66 -42

No files matched your search

+2
View File
@@ -14,6 +14,7 @@ const (
type Service struct {
ID string
Name string
Mode string
Containers []MachineContainer
}
@@ -35,6 +36,7 @@ func FromProto(s *pb.Service) (Service, error) {
return Service{
ID: s.Id,
Name: s.Name,
Mode: s.Mode,
Containers: containers,
}, nil
}