diff --git a/config/probe/container.go b/config/probe/container.go index 4887555..22cbecb 100644 --- a/config/probe/container.go +++ b/config/probe/container.go @@ -45,6 +45,10 @@ var ( } ) +func ToContainerType(v string) ContainerType { + return containerTypeName[v] +} + func (ct ContainerType) String() string { return containerTypeID[ct] }