项目文件夹

文件
2026-07-13 12:08:39 +08:00

14 行
232 B
Go

package git
import (
gittypes "github.com/portainer/portainer/api/git/types"
)
func GetCredentials(auth *gittypes.GitAuthentication) (string, string) {
if auth == nil {
return "", ""
}
return auth.Username, auth.Password
}