X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=types.go;h=e2dae27d6473c19d9bc0e586fd2133bcafcc5266;hb=e0240a60023841709f8095e475d13d090f17e915;hp=267872db82f1ef50fd452d9e05d1c8ef5db0b5cf;hpb=f2f2bc47e8729548f3c10117f7f008b547c4afc5;p=safcm%2Fsafcm.git diff --git a/types.go b/types.go index 267872d..e2dae27 100644 --- a/types.go +++ b/types.go @@ -1,6 +1,6 @@ // RPC primitives for safcm: message and additional types -// Copyright (C) 2021 Simon Ruderich +// Copyright (C) 2021-2023 Simon Ruderich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -53,7 +53,7 @@ type MsgSyncReq struct { Files map[string]*File Packages []string Services []string - Commands []string + Commands []*Command } type MsgSyncResp struct { FileChanges []FileChange @@ -106,6 +106,11 @@ type File struct { TriggerCommands []string } +type Command struct { + OrigGroup string // group which provided this command + Cmd string +} + type FileChange struct { Path string Created bool