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 +}