X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=types.go;h=cca638ec1c448cfe9c5511879aa93dc7519b7241;hp=267872db82f1ef50fd452d9e05d1c8ef5db0b5cf;hb=HEAD;hpb=f2f2bc47e8729548f3c10117f7f008b547c4afc5 diff --git a/types.go b/types.go index 267872d..aace9f2 100644 --- a/types.go +++ b/types.go @@ -1,19 +1,7 @@ // RPC primitives for safcm: message and additional types -// Copyright (C) 2021 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 -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . +// SPDX-License-Identifier: GPL-3.0-or-later +// Copyright (C) 2021-2024 Simon Ruderich package safcm @@ -53,7 +41,7 @@ type MsgSyncReq struct { Files map[string]*File Packages []string Services []string - Commands []string + Commands []*Command } type MsgSyncResp struct { FileChanges []FileChange @@ -106,6 +94,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