Versions in this module Expand all Collapse all v1 v1.3.1 Feb 25, 2025 v1.3.0 Feb 21, 2025 v1.2.2 Feb 5, 2025 Changes in this version type InfraConfigRepository + CheckIfProfileExistsByName func(name string) (bool, error) + GetConfigurationsByProfileId func(profileId int) ([]*InfraProfileConfigurationEntity, error) + GetPlatformListByProfileId func(profileId int) ([]string, error) + GetPlatformsByProfileById func(profileId int) ([]*ProfilePlatformMapping, error) + GetPlatformsByProfileIds func(profileIds []int) ([]*ProfilePlatformMapping, error) + GetProfileListByIds func(profileIds []int, includeDefault bool) ([]*InfraProfileEntity, error) + UpdatePlatformProfileMapping func(tx *pg.Tx, platformMappings []*ProfilePlatformMapping) error + type InfraConfigRepositoryEnt interface type InfraConfigRepositoryImpl + func (impl *InfraConfigRepositoryImpl) CheckIfProfileExistsByName(name string) (bool, error) + func (impl *InfraConfigRepositoryImpl) GetConfigurationsByProfileId(profileId int) ([]*InfraProfileConfigurationEntity, error) + func (impl *InfraConfigRepositoryImpl) GetPlatformListByProfileId(profileId int) ([]string, error) + func (impl *InfraConfigRepositoryImpl) GetPlatformsByProfileById(profileId int) ([]*ProfilePlatformMapping, error) + func (impl *InfraConfigRepositoryImpl) GetPlatformsByProfileIds(profileIds []int) ([]*ProfilePlatformMapping, error) + func (impl *InfraConfigRepositoryImpl) GetProfileListByIds(profileIds []int, includeDefault bool) ([]*InfraProfileEntity, error) + func (impl *InfraConfigRepositoryImpl) UpdatePlatformProfileMapping(tx *pg.Tx, platformMappings []*ProfilePlatformMapping) error + type ProfileIdentifierCount struct + IdentifierCount int + ProfileId int v1.2.1 Feb 4, 2025 Changes in this version + func GetUniqueId(profileId int, platform string) string + type InfraConfigRepository interface + CreateConfigurations func(tx *pg.Tx, configurations []*InfraProfileConfigurationEntity) error + CreatePlatformProfileMapping func(tx *pg.Tx, platformMapping []*ProfilePlatformMapping) error + CreateProfile func(tx *pg.Tx, infraProfile *InfraProfileEntity) error + GetConfigurationsByProfileIds func(profileIds []int) ([]*InfraProfileConfigurationEntity, error) + GetConfigurationsByProfileName func(profileName string) ([]*InfraProfileConfigurationEntity, error) + GetPlatformsByProfileName func(profileName string) ([]*ProfilePlatformMapping, error) + GetProfileByName func(name string) (*InfraProfileEntity, error) + UpdateConfigurations func(tx *pg.Tx, configurations []*InfraProfileConfigurationEntity) error + UpdateProfile func(tx *pg.Tx, profileName string, profile *InfraProfileEntity) error + type InfraConfigRepositoryImpl struct + func NewInfraProfileRepositoryImpl(dbConnection *pg.DB, TransactionUtilImpl *sql.TransactionUtilImpl) *InfraConfigRepositoryImpl + func (impl *InfraConfigRepositoryImpl) CreateConfigurations(tx *pg.Tx, configurations []*InfraProfileConfigurationEntity) error + func (impl *InfraConfigRepositoryImpl) CreatePlatformProfileMapping(tx *pg.Tx, platformMapping []*ProfilePlatformMapping) error + func (impl *InfraConfigRepositoryImpl) CreateProfile(tx *pg.Tx, infraProfile *InfraProfileEntity) error + func (impl *InfraConfigRepositoryImpl) GetConfigurationsByProfileIds(profileIds []int) ([]*InfraProfileConfigurationEntity, error) + func (impl *InfraConfigRepositoryImpl) GetConfigurationsByProfileName(profileName string) ([]*InfraProfileConfigurationEntity, error) + func (impl *InfraConfigRepositoryImpl) GetPlatformsByProfileName(profileName string) ([]*ProfilePlatformMapping, error) + func (impl *InfraConfigRepositoryImpl) GetProfileByName(name string) (*InfraProfileEntity, error) + func (impl *InfraConfigRepositoryImpl) UpdateBuildxDriverTypeInAllProfiles(tx *pg.Tx, buildxDriverType infraBean.BuildxDriver) error + func (impl *InfraConfigRepositoryImpl) UpdateConfigurations(tx *pg.Tx, configurations []*InfraProfileConfigurationEntity) error + func (impl *InfraConfigRepositoryImpl) UpdateProfile(tx *pg.Tx, profileName string, profile *InfraProfileEntity) error + type InfraProfileConfigurationEntity struct + Active bool + Id int + Key infraBean.ConfigKey + ProfileId int + ProfilePlatformMapping *ProfilePlatformMapping + ProfilePlatformMappingId int + UniqueId string + Unit units.UnitSuffix + Value float64 + ValueString string + type InfraProfileEntity struct + Active bool + BuildxDriverType infraBean.BuildxDriver + Description string + Id int + Name string + type ProfilePlatformMapping struct + Active bool + Id int + Platform string + ProfileId int + UniqueId string