()
| 1378 | } |
| 1379 | |
| 1380 | func (g ForgeEntity) GetForgeType() (EndpointType, error) { |
| 1381 | if g.Credentials.ForgeType == "" { |
| 1382 | return "", fmt.Errorf("credentials forge type is empty") |
| 1383 | } |
| 1384 | return g.Credentials.ForgeType, nil |
| 1385 | } |
| 1386 | |
| 1387 | func (g ForgeEntity) ForgeURL() string { |
| 1388 | baseURL := strings.TrimRight(g.Credentials.BaseURL, "/") |
no outgoing calls