Documentation
¶
Index ¶
- func ConvertToInfraProfileEntity(profileBean *v1.ProfileBeanDto) *repository.InfraProfileEntity
- func ConvertToProfileBean(infraProfile *repository.InfraProfileEntity) *v1.ProfileBeanDto
- func ConvertToV0ConfigBeans(configBeans []*v1.ConfigurationBean) []v0.ConfigurationBeanV0
- func ConvertToV1ProfileBean(profileBean *v0.ProfileBeanV0) *v1.ProfileBeanDto
- func FillMissingConfigurationsForThePayloadV0(profileToUpdate *v1.ProfileBeanDto, ...)
- func GetGenericConfigurationBean[T any](configurationBean *v1.ConfigurationBean, typedValue T) *v1.GenericConfigurationBean[T]
- func GetInfraProfileEntity(configurationBean *v1.ConfigurationBean, valueString, platform string, ...) *repository.InfraProfileConfigurationEntity
- func GetV0ProfileBean(profileBean *v1.ProfileBeanDto) *v0.ProfileBeanV0deprecated
- func NewInfraProfileConfigEntity(key v1.ConfigKeyStr, profileId int, platform string, ...) *repository.InfraProfileConfigurationEntity
- func UpdatePlatformMappingInConfigEntities(infraConfigurations []*repository.InfraProfileConfigurationEntity, ...) []*repository.InfraProfileConfigurationEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToInfraProfileEntity ¶ added in v1.2.1
func ConvertToInfraProfileEntity(profileBean *v1.ProfileBeanDto) *repository.InfraProfileEntity
ConvertToInfraProfileEntity converts *bean.ProfileBeanDto to *repository.InfraProfileEntity
func ConvertToProfileBean ¶ added in v1.2.1
func ConvertToProfileBean(infraProfile *repository.InfraProfileEntity) *v1.ProfileBeanDto
ConvertToProfileBean converts *repository.InfraProfileEntity to *bean.ProfileBeanDto
func ConvertToV0ConfigBeans ¶ added in v1.2.2
func ConvertToV0ConfigBeans(configBeans []*v1.ConfigurationBean) []v0.ConfigurationBeanV0
ConvertToV0ConfigBeans converts V1 ConfigurationBean to V0 ConfigurationBean Only used for deprecated APIs handling.
func ConvertToV1ProfileBean ¶ added in v1.2.2
func ConvertToV1ProfileBean(profileBean *v0.ProfileBeanV0) *v1.ProfileBeanDto
ConvertToV1ProfileBean converts V0 ProfileBean to V1 ProfileBean Only used for deprecated APIs handling.
func FillMissingConfigurationsForThePayloadV0 ¶ added in v1.2.2
func FillMissingConfigurationsForThePayloadV0(profileToUpdate *v1.ProfileBeanDto, platformMapConfigs map[string][]*v1.ConfigurationBean)
FillMissingConfigurationsForThePayloadV0 - This function is used to fill the missing configurations in the payload after the k8sBuildXDriverOpts Migration => need for handling the updated of default / global profile
func GetGenericConfigurationBean ¶ added in v1.2.2
func GetGenericConfigurationBean[T any](configurationBean *v1.ConfigurationBean, typedValue T) *v1.GenericConfigurationBean[T]
func GetInfraProfileEntity ¶ added in v1.2.2
func GetInfraProfileEntity(configurationBean *v1.ConfigurationBean, valueString, platform string, userId int32) *repository.InfraProfileConfigurationEntity
func GetV0ProfileBean
deprecated
func GetV0ProfileBean(profileBean *v1.ProfileBeanDto) *v0.ProfileBeanV0
Deprecated: GetV0ProfileBean is used for backward compatibility with V0. Only used for deprecated APIs.
func NewInfraProfileConfigEntity ¶ added in v1.2.2
func NewInfraProfileConfigEntity(key v1.ConfigKeyStr, profileId int, platform string, parsedValue *unitsBean.ParsedValue) *repository.InfraProfileConfigurationEntity
NewInfraProfileConfigEntity creates a new instance of repository.InfraProfileConfigurationEntity Used for creating new configuration entity for migration.
func UpdatePlatformMappingInConfigEntities ¶ added in v1.2.2
func UpdatePlatformMappingInConfigEntities(infraConfigurations []*repository.InfraProfileConfigurationEntity, platformMappings []*repository.ProfilePlatformMapping) []*repository.InfraProfileConfigurationEntity
UpdatePlatformMappingInConfigEntities
- updates the ProfilePlatformMappingId in the repository.InfraProfileConfigurationEntity
Types ¶
This section is empty.