mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
13 lines
320 B
Go
13 lines
320 B
Go
package cautils
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
func GetControlLink(controlID string) string {
|
|
// For CIS Controls, cis-1.1.3 will be transformed to cis-1-1-3 in documentation link.
|
|
docLinkID := strings.ReplaceAll(controlID, ".", "-")
|
|
return fmt.Sprintf("https://hub.armosec.io/docs/%s", strings.ToLower(docLinkID))
|
|
}
|