GenerateSSHCertFilePathFromURL will return a file path for creating short lived certificates
(url *url.URL, suffix string)
| 14 | |
| 15 | // GenerateSSHCertFilePathFromURL will return a file path for creating short lived certificates |
| 16 | func GenerateSSHCertFilePathFromURL(url *url.URL, suffix string) (string, error) { |
| 17 | configPath, err := getConfigPath() |
| 18 | if err != nil { |
| 19 | return "", err |
| 20 | } |
| 21 | name := strings.Replace(fmt.Sprintf("%s%s-%s", url.Hostname(), url.EscapedPath(), suffix), "/", "-", -1) |
| 22 | return filepath.Join(configPath, name), nil |
| 23 | } |
| 24 | |
| 25 | // GenerateAppTokenFilePathFromURL will return a filepath for given Access org token |
| 26 | func GenerateAppTokenFilePathFromURL(appDomain, aud string, suffix string) (string, error) { |
nothing calls this directly
no test coverage detected