Add initial structure

This commit is contained in:
Jan Eitzinger 2023-08-22 10:56:32 +02:00
parent 2ddc24b7ee
commit d839c53642
5 changed files with 37 additions and 0 deletions

View File

View File

View File

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