probe/config/path-sensorconfig.go
crusader d2d34699aa ing
2018-04-18 23:56:13 +09:00

16 lines
392 B
Go

package config
import (
"path"
ocscm "git.loafle.net/overflow/commons-go/sensorconfig/model"
)
func SensorConfigContainerDir(name string) string {
return path.Join(ConfigDir(), name)
}
func SensorConfigFilePath(sensorConfig *ocscm.SensorConfig) string {
return path.Join(SensorConfigContainerDir(sensorConfig.Crawler.Container), sensorConfig.Crawler.Name, sensorConfig.ID.String())
}