From d839c536423ee651f52fa03f76695120ec159296 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Tue, 22 Aug 2023 10:56:32 +0200 Subject: [PATCH] Add initial structure --- internal/tagger/apps/gromacs.txt | 0 internal/tagger/apps/openfoam.txt | 0 internal/tagger/apps/vasp.txt | 0 internal/tagger/detectApp.go | 20 ++++++++++++++++++++ internal/tagger/tagger.go | 17 +++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 internal/tagger/apps/gromacs.txt create mode 100644 internal/tagger/apps/openfoam.txt create mode 100644 internal/tagger/apps/vasp.txt create mode 100644 internal/tagger/detectApp.go create mode 100644 internal/tagger/tagger.go diff --git a/internal/tagger/apps/gromacs.txt b/internal/tagger/apps/gromacs.txt new file mode 100644 index 0000000..e69de29 diff --git a/internal/tagger/apps/openfoam.txt b/internal/tagger/apps/openfoam.txt new file mode 100644 index 0000000..e69de29 diff --git a/internal/tagger/apps/vasp.txt b/internal/tagger/apps/vasp.txt new file mode 100644 index 0000000..e69de29 diff --git a/internal/tagger/detectApp.go b/internal/tagger/detectApp.go new file mode 100644 index 0000000..298151b --- /dev/null +++ b/internal/tagger/detectApp.go @@ -0,0 +1,20 @@ +// Copyright (C) 2023 NHR@FAU, University Erlangen-Nuremberg. +// All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. +package tagger + +const tagType = "app" + +type appInfo struct { + tag string + strings []string +} +type AppTagger struct { + apps []appInfo +} + +func (t *AppTagger) Register() error { + + return nil +} diff --git a/internal/tagger/tagger.go b/internal/tagger/tagger.go new file mode 100644 index 0000000..52a369b --- /dev/null +++ b/internal/tagger/tagger.go @@ -0,0 +1,17 @@ +// Copyright (C) 2023 NHR@FAU, University Erlangen-Nuremberg. +// All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. +package tagger + +import "github.com/ClusterCockpit/cc-backend/pkg/schema" + +type Tagger interface { + Register() error + Match(job *schema.Job) +} + +func Init() error { + + return nil +}