22 lines
587 B
Go
22 lines
587 B
Go
package config
|
|
|
|
import (
|
|
"fmt"
|
|
"path"
|
|
"strings"
|
|
|
|
ocpcc "git.loafle.net/overflow/commons-go/probe/constants"
|
|
)
|
|
|
|
func ContainerPIDFilePath(containerType ocpcc.ContainerType) string {
|
|
return path.Join(PIDDir(), fmt.Sprintf("%s.pid", strings.ToLower(containerType.String())))
|
|
}
|
|
|
|
func ContainerBinFilePath(containerType ocpcc.ContainerType) string {
|
|
return path.Join(BinDir(), ocpcc.ContainerBinFileName[containerType])
|
|
}
|
|
|
|
func ContainerLoggingConfigFilePath(containerType ocpcc.ContainerType) string {
|
|
return path.Join(BinDir(), ocpcc.ContainerLoggingConfigFileName[containerType])
|
|
}
|