mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 21:39:40 +02:00
13 lines
249 B
Go
13 lines
249 B
Go
package git
|
|
|
|
import (
|
|
gittypes "github.com/portainer/portainer/api/git/types"
|
|
)
|
|
|
|
func GetCredentials(auth *gittypes.GitAuthentication) (string, string, error) {
|
|
if auth == nil {
|
|
return "", "", nil
|
|
}
|
|
|
|
return auth.Username, auth.Password, nil
|
|
}
|