Help us shape the future of Go! Take the 2026 Go Developer Survey

draftAwareConfigService

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DraftAwareConfigMapService

type DraftAwareConfigMapService interface {
	CMGlobalAddUpdate(ctx context.Context, configMapRequest *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (*bean.ConfigDataRequest, error)
	CMEnvironmentAddUpdate(ctx context.Context, configMapRequest *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (*bean.ConfigDataRequest, error)

	CMGlobalDelete(ctx context.Context, name string, deleteReq *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (bool, error)
	CMEnvironmentDelete(ctx context.Context, name string, deleteReq *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (bool, error)
}

type DraftAwareConfigServiceImpl

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

func NewDraftAwareResourceServiceImpl

func NewDraftAwareResourceServiceImpl(logger *zap.SugaredLogger,
	configMapService pipeline.ConfigMapService,
	chartService chartService.ChartService,
	propertiesConfigService pipeline.PropertiesConfigService,
) *DraftAwareConfigServiceImpl

func (*DraftAwareConfigServiceImpl) CMEnvironmentAddUpdate

func (impl *DraftAwareConfigServiceImpl) CMEnvironmentAddUpdate(ctx context.Context, configMapRequest *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (*bean.ConfigDataRequest, error)

func (*DraftAwareConfigServiceImpl) CMEnvironmentDelete

func (impl *DraftAwareConfigServiceImpl) CMEnvironmentDelete(ctx context.Context, name string, deleteReq *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (bool, error)

func (*DraftAwareConfigServiceImpl) CMGlobalAddUpdate

func (impl *DraftAwareConfigServiceImpl) CMGlobalAddUpdate(ctx context.Context, configMapRequest *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (*bean.ConfigDataRequest, error)

func (*DraftAwareConfigServiceImpl) CMGlobalDelete

func (impl *DraftAwareConfigServiceImpl) CMGlobalDelete(ctx context.Context, name string, deleteReq *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (bool, error)

func (*DraftAwareConfigServiceImpl) CSEnvironmentAddUpdate

func (impl *DraftAwareConfigServiceImpl) CSEnvironmentAddUpdate(ctx context.Context, configMapRequest *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (*bean.ConfigDataRequest, error)

func (*DraftAwareConfigServiceImpl) CSEnvironmentDelete

func (impl *DraftAwareConfigServiceImpl) CSEnvironmentDelete(ctx context.Context, name string, deleteReq *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (bool, error)

func (*DraftAwareConfigServiceImpl) CSGlobalAddUpdate

func (impl *DraftAwareConfigServiceImpl) CSGlobalAddUpdate(ctx context.Context, configMapRequest *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (*bean.ConfigDataRequest, error)

func (*DraftAwareConfigServiceImpl) CSGlobalDelete

func (impl *DraftAwareConfigServiceImpl) CSGlobalDelete(ctx context.Context, name string, deleteReq *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (bool, error)

func (*DraftAwareConfigServiceImpl) Create

func (impl *DraftAwareConfigServiceImpl) Create(ctx context.Context, templateRequest bean3.TemplateRequest, isSuperAdmin bool, userEmail string) (*bean3.TemplateRequest, error)

func (*DraftAwareConfigServiceImpl) CreateEnvironmentPropertiesAndBaseIfNeeded

func (impl *DraftAwareConfigServiceImpl) CreateEnvironmentPropertiesAndBaseIfNeeded(ctx context.Context, environmentProperties *bean.EnvironmentProperties, isSuperAdmin bool, userEmail string) (*bean.EnvironmentProperties, error)

func (*DraftAwareConfigServiceImpl) ResetEnvironmentProperties

func (impl *DraftAwareConfigServiceImpl) ResetEnvironmentProperties(ctx context.Context, propertiesRequest *bean.EnvironmentProperties, isSuperAdmin bool, userEmail string) (bool, error)

func (*DraftAwareConfigServiceImpl) UpdateAppOverride

func (impl *DraftAwareConfigServiceImpl) UpdateAppOverride(ctx context.Context, templateRequest *bean3.TemplateRequest, token string, isSuperAdmin bool, userEmail string) (*bean3.TemplateRequest, error)

func (*DraftAwareConfigServiceImpl) UpdateEnvironmentProperties

func (impl *DraftAwareConfigServiceImpl) UpdateEnvironmentProperties(ctx context.Context, propertiesRequest *bean.EnvironmentProperties, token string, isSuperAdmin bool, userEmail string) (*bean.EnvironmentProperties, error)

type DraftAwareDeploymentTemplateService

type DraftAwareDeploymentTemplateService interface {

	// Create here is used for publishing base deployment template while saving dt for the first time.
	Create(ctx context.Context, templateRequest bean3.TemplateRequest, isSuperAdmin bool, userEmail string) (*bean3.TemplateRequest, error)
	// UpdateAppOverride here is used for updating base deployment template.
	UpdateAppOverride(ctx context.Context, templateRequest *bean3.TemplateRequest, token string, isSuperAdmin bool, userEmail string) (*bean3.TemplateRequest, error)
	// UpdateEnvironmentProperties here is used for updating and saving deployment template at env override level
	UpdateEnvironmentProperties(ctx context.Context, propertiesRequest *bean.EnvironmentProperties, token string, isSuperAdmin bool, userEmail string) (*bean.EnvironmentProperties, error)
	// ResetEnvironmentProperties method handles flow when a user deletes the deployment template env override.
	ResetEnvironmentProperties(ctx context.Context, propertiesRequest *bean.EnvironmentProperties, isSuperAdmin bool, userEmail string) (bool, error)
	// CreateEnvironmentPropertiesAndBaseIfNeeded is utilized when the deployment template chart version is updated and saved
	CreateEnvironmentPropertiesAndBaseIfNeeded(ctx context.Context, environmentProperties *bean.EnvironmentProperties, isSuperAdmin bool, userEmail string) (*bean.EnvironmentProperties, error)
}

type DraftAwareSecretService

type DraftAwareSecretService interface {
	CSGlobalAddUpdate(ctx context.Context, configMapRequest *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (*bean.ConfigDataRequest, error)
	CSEnvironmentAddUpdate(ctx context.Context, configMapRequest *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (*bean.ConfigDataRequest, error)

	CSGlobalDelete(ctx context.Context, name string, deleteReq *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (bool, error)
	CSEnvironmentDelete(ctx context.Context, name string, deleteReq *bean.ConfigDataRequest, isSuperAdmin bool, userEmail string) (bool, error)
}

Jump to

Keyboard shortcuts

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