diff --git a/probe/constants/container.go b/probe/constants/container.go index ef1d628..9ab97b3 100644 --- a/probe/constants/container.go +++ b/probe/constants/container.go @@ -5,15 +5,17 @@ import ( "fmt" ) -const ( - ContainerGeneralBinFileName = "general.jar" - ContainerGeneralLoggingConfigFileName = "general.logging.json" - - ContainerNetworkBinFileName = "network" - ContainerNetworkLoggingConfigFileName = "network.logging.json" - - ContainerDiscoveryBinFileName = "discovery" - ContainerDiscoveryLoggingConfigFileName = "discovery.logging.json" +var ( + ContainerBinFileName = map[ContainerType]string{ + ContainerDiscovery: "container_discovery", + ContainerNetwork: "container_network", + ContainerGenernal: "container_general.jar", + } + ContainerLoggingConfigFileName = map[ContainerType]string{ + ContainerDiscovery: "discovery.logging.json", + ContainerNetwork: "network.logging.json", + ContainerGenernal: "general.logging.json", + } ) type ContainerType int