service

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfraConfigService

type InfraConfigService interface {
	// GetProfileByName fetches the profile and its configurations matching the given profileName.
	GetProfileByName(name string) (*v1.ProfileBeanDto, error)
	// UpdateProfile updates the profile and its configurations matching the given profileName.
	// If profileName is empty, it will return an error.
	// This also takes care of the platform update and delete, the default platform cannot be deleted.
	UpdateProfile(userId int32, profileName string, profileBean *v1.ProfileBeanDto) error
	// Deprecated: UpdateProfileV0 is deprecated in favor of UpdateProfile
	UpdateProfileV0(userId int32, profileName string, profileToUpdate *v1.ProfileBeanDto) error
	// GetConfigurationUnits fetches all the units for the configurations.
	GetConfigurationUnits() (map[v1.ConfigKeyStr]map[string]v1.Unit, error)
	// GetConfigurationsByScopeAndTargetPlatforms fetches the infra configurations for the given scope and targetPlatforms.
	GetConfigurationsByScopeAndTargetPlatforms(scope resourceQualifiers.Scope, targetPlatformsList []string) (map[string]*v1.InfraConfig, error)
	HandleInfraConfigTriggerAudit(workflowId int, triggeredBy int32, infraConfigs map[string]*v1.InfraConfig) error
	InfraConfigServiceEnt
}

type InfraConfigServiceEnt added in v1.2.2

type InfraConfigServiceEnt interface {
}

type InfraConfigServiceImpl

type InfraConfigServiceImpl struct {
	// contains filtered or unexported fields
}

func NewInfraConfigServiceImpl

func NewInfraConfigServiceImpl(logger *zap.SugaredLogger,
	infraProfileRepo repository.InfraConfigRepository,
	appService app.AppService,
	dtResourceSearchableKeyService read.DevtronResourceSearchableKeyService,
	qualifierMappingService resourceQualifiers.QualifierMappingService,
	attributesService attributes.AttributesService,
	infraConfigClient config.InfraConfigClient,
	variables *util2.EnvironmentVariables) (*InfraConfigServiceImpl, error)

func (*InfraConfigServiceImpl) GetConfigurationUnits

func (impl *InfraConfigServiceImpl) GetConfigurationUnits() (map[v1.ConfigKeyStr]map[string]v1.Unit, error)

func (*InfraConfigServiceImpl) GetConfigurationsByScopeAndTargetPlatforms added in v1.2.2

func (impl *InfraConfigServiceImpl) GetConfigurationsByScopeAndTargetPlatforms(scope resourceQualifiers.Scope, targetPlatformsList []string) (map[string]*v1.InfraConfig, error)

func (*InfraConfigServiceImpl) GetProfileByName

func (impl *InfraConfigServiceImpl) GetProfileByName(name string) (*v1.ProfileBeanDto, error)

func (*InfraConfigServiceImpl) HandleInfraConfigTriggerAudit added in v1.2.2

func (impl *InfraConfigServiceImpl) HandleInfraConfigTriggerAudit(workflowId int, triggeredBy int32, infraConfigs map[string]*v1.InfraConfig) error

func (*InfraConfigServiceImpl) UpdateProfile

func (impl *InfraConfigServiceImpl) UpdateProfile(userId int32, profileName string, profileToUpdate *v1.ProfileBeanDto) error

func (*InfraConfigServiceImpl) UpdateProfileV0 added in v1.2.2

func (impl *InfraConfigServiceImpl) UpdateProfileV0(userId int32, profileName string, profileToUpdate *v1.ProfileBeanDto) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL