This change renames a lot of variables, types and functions to be more generic. The goal is to allow GARM to add more forges in the future. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
21 lines
459 B
Go
21 lines
459 B
Go
package params
|
|
|
|
import "time"
|
|
|
|
// EntityGetter is implemented by all github entities (repositories, organizations and enterprises).
|
|
// It defines the GetEntity() function which returns a github entity.
|
|
type EntityGetter interface {
|
|
GetEntity() (ForgeEntity, error)
|
|
}
|
|
|
|
type IDGetter interface {
|
|
GetID() uint
|
|
}
|
|
|
|
type CreationDateGetter interface {
|
|
GetCreatedAt() time.Time
|
|
}
|
|
|
|
type ForgeCredentialsGetter interface {
|
|
GetForgeCredentials() ForgeCredentials
|
|
}
|