mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
Add initial structure
This commit is contained in:
parent
2ddc24b7ee
commit
d839c53642
0
internal/tagger/apps/gromacs.txt
Normal file
0
internal/tagger/apps/gromacs.txt
Normal file
0
internal/tagger/apps/openfoam.txt
Normal file
0
internal/tagger/apps/openfoam.txt
Normal file
0
internal/tagger/apps/vasp.txt
Normal file
0
internal/tagger/apps/vasp.txt
Normal file
20
internal/tagger/detectApp.go
Normal file
20
internal/tagger/detectApp.go
Normal file
@ -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
|
||||
}
|
17
internal/tagger/tagger.go
Normal file
17
internal/tagger/tagger.go
Normal file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user