in cmd/push.go [176:190]
func getCredentialsResolver(registry string, username string, password string) (obom.CredentialsResolver, error) {
if len(username) != 0 && len(password) != 0 {
return auth.StaticCredential(registry, auth.Credential{
Username: username,
Password: password,
}), nil
} else {
storeOpts := credentials.StoreOptions{}
store, err := credentials.NewStoreFromDocker(storeOpts)
if err != nil {
return nil, err
}
return credentials.Credential(store), nil
}
}