garm/params/interfaces.go
Gabriel Adrian Samfira 40e6581a75 Rename GitHub specific types
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>
2025-05-12 21:47:13 +00:00

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
}