Documentation
¶
Index ¶
- type InfraConfigService
- type InfraConfigServiceImpl
- func (impl *InfraConfigServiceImpl) GetConfigurationUnits() map[bean.ConfigKeyStr]map[string]units.Unit
- func (impl *InfraConfigServiceImpl) GetInfraConfigurationsByScopeAndPlatform(scope *bean.Scope, platform string) (*bean.InfraConfig, error)
- func (impl *InfraConfigServiceImpl) GetProfileByName(name string) (*bean.ProfileBeanDto, error)
- func (impl *InfraConfigServiceImpl) UpdateProfile(userId int32, profileName string, profileToUpdate *bean.ProfileBeanDto) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfraConfigService ¶
type InfraConfigService interface {
// GetConfigurationUnits fetches all the units for the configurations.
GetConfigurationUnits() map[bean.ConfigKeyStr]map[string]units.Unit
// GetProfileByName fetches the profile and its configurations matching the given profileName.
GetProfileByName(name string) (*bean.ProfileBeanDto, error)
// UpdateProfile updates the profile and its configurations matching the given profileName.
// If profileName is empty, it will return an error.
UpdateProfile(userId int32, profileName string, profileBean *bean.ProfileBeanDto) error
GetInfraConfigurationsByScopeAndPlatform(scope *bean.Scope, platform string) (*bean.InfraConfig, error)
}
type InfraConfigServiceImpl ¶
type InfraConfigServiceImpl struct {
// contains filtered or unexported fields
}
func NewInfraConfigServiceImpl ¶
func NewInfraConfigServiceImpl(logger *zap.SugaredLogger, infraProfileRepo repository.InfraConfigRepository, appService app.AppService, units *units.Units) (*InfraConfigServiceImpl, error)
func (*InfraConfigServiceImpl) GetConfigurationUnits ¶
func (impl *InfraConfigServiceImpl) GetConfigurationUnits() map[bean.ConfigKeyStr]map[string]units.Unit
func (*InfraConfigServiceImpl) GetInfraConfigurationsByScopeAndPlatform ¶
func (impl *InfraConfigServiceImpl) GetInfraConfigurationsByScopeAndPlatform(scope *bean.Scope, platform string) (*bean.InfraConfig, error)
func (*InfraConfigServiceImpl) GetProfileByName ¶
func (impl *InfraConfigServiceImpl) GetProfileByName(name string) (*bean.ProfileBeanDto, error)
func (*InfraConfigServiceImpl) UpdateProfile ¶
func (impl *InfraConfigServiceImpl) UpdateProfile(userId int32, profileName string, profileToUpdate *bean.ProfileBeanDto) error
Click to show internal directories.
Click to hide internal directories.