Enable orgs
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
5dfcfc542e
commit
6a168ba813
22 changed files with 125 additions and 77 deletions
|
|
@ -1098,6 +1098,13 @@ func (g ForgeEntity) GetCreatedAt() time.Time {
|
|||
return g.CreatedAt
|
||||
}
|
||||
|
||||
func (g ForgeEntity) GetForgeType() (EndpointType, error) {
|
||||
if g.Credentials.ForgeType == "" {
|
||||
return "", fmt.Errorf("credentials forge type is empty")
|
||||
}
|
||||
return g.Credentials.ForgeType, nil
|
||||
}
|
||||
|
||||
func (g ForgeEntity) ForgeURL() string {
|
||||
switch g.Credentials.ForgeType {
|
||||
case GiteaEndpointType:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue