read

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

EAWireSet is used for InstalledAppReadServiceEA EAWireSet is registered for EA MODE services

WireSet for InstalledAppReadService WireSet is registered for FULL MODE services

Functions

This section is empty.

Types

type InstalledAppReadService

type InstalledAppReadService interface {
	InstalledAppReadServiceEA
	// GetInstalledAppByGitHash will return the installed app by git hash.
	// Only delete specific details are fetched.
	// Refer bean.InstalledAppDeleteRequest for more details.
	GetInstalledAppByGitHash(gitHash string) (*bean.InstalledAppDeleteRequest, error)
	// GetInstalledAppByGitOpsAppName will return all the active installed_apps with matching `<app_name>-<environment_name>`.
	// Only the minimum details are fetched.
	// Refer bean.InstalledAppMin for more details.
	GetInstalledAppByGitOpsAppName(acdAppName string) (*bean.InstalledAppMin, error)
}

type InstalledAppReadServiceEA

type InstalledAppReadServiceEA interface {
	// GetDeploymentSuccessfulStatusCountForTelemetry will return the count of successful deployments for telemetry
	// Total successful deployments are calculated till now.
	GetDeploymentSuccessfulStatusCountForTelemetry() (int, error)
	// GetInstalledAppByAppName will return the installed app with environment details by app name.
	// Additional details like environment details are also fetched.
	// Refer bean.InstalledAppWithEnvDetails for more details.
	GetInstalledAppByAppName(appName string) (*bean.InstalledAppWithEnvDetails, error)
	// GetInstalledAppsByAppId will return the installed app by app id
	// Only the minimum details are fetched.
	// Refer bean.InstalledAppMin for more details.
	GetInstalledAppsByAppId(appId int) (*bean.InstalledAppMin, error)
	// GetInstalledAppByAppIdAndDeploymentType will return the installed app by app id and deployment type.
	// Only the minimum details are fetched.
	// Refer bean.InstalledAppMin for more details.
	GetInstalledAppByAppIdAndDeploymentType(appId int, deploymentAppType string) (*bean.InstalledAppMin, error)
	// GetInstalledAppByInstalledAppVersionId will return the installed app by installed app version id.
	// Only the minimum details are fetched.
	// Refer bean.InstalledAppMin for more details.
	GetInstalledAppByInstalledAppVersionId(installedAppVersionId int) (*bean.InstalledAppMin, error)
	// GetInstalledAppVersionIncludingDeleted will return the installed app version by installed app version id.
	// Both active and deleted installed app versions are fetched.
	// Additional details like app store details are also fetched.
	// Refer bean.InstalledAppVersionWithAppStoreDetails for more details.
	GetInstalledAppVersionIncludingDeleted(installedAppVersionId int) (*bean.InstalledAppVersionWithAppStoreDetails, error)
}

type InstalledAppReadServiceEAImpl

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

func NewInstalledAppReadServiceEAImpl

func NewInstalledAppReadServiceEAImpl(
	logger *zap.SugaredLogger,
	installedAppRepository repository.InstalledAppRepository,
) *InstalledAppReadServiceEAImpl

func (*InstalledAppReadServiceEAImpl) GetDeploymentSuccessfulStatusCountForTelemetry

func (impl *InstalledAppReadServiceEAImpl) GetDeploymentSuccessfulStatusCountForTelemetry() (int, error)

func (*InstalledAppReadServiceEAImpl) GetInstalledAppByAppIdAndDeploymentType

func (impl *InstalledAppReadServiceEAImpl) GetInstalledAppByAppIdAndDeploymentType(appId int, deploymentAppType string) (*bean.InstalledAppMin, error)

func (*InstalledAppReadServiceEAImpl) GetInstalledAppByAppName

func (impl *InstalledAppReadServiceEAImpl) GetInstalledAppByAppName(appName string) (*bean.InstalledAppWithEnvDetails, error)

func (*InstalledAppReadServiceEAImpl) GetInstalledAppByInstalledAppVersionId

func (impl *InstalledAppReadServiceEAImpl) GetInstalledAppByInstalledAppVersionId(installedAppVersionId int) (*bean.InstalledAppMin, error)

func (*InstalledAppReadServiceEAImpl) GetInstalledAppVersionIncludingDeleted

func (impl *InstalledAppReadServiceEAImpl) GetInstalledAppVersionIncludingDeleted(installedAppVersionId int) (*bean.InstalledAppVersionWithAppStoreDetails, error)

func (*InstalledAppReadServiceEAImpl) GetInstalledAppsByAppId

func (impl *InstalledAppReadServiceEAImpl) GetInstalledAppsByAppId(appId int) (*bean.InstalledAppMin, error)

type InstalledAppReadServiceImpl

type InstalledAppReadServiceImpl struct {
	*InstalledAppReadServiceEAImpl
}

func NewInstalledAppReadServiceImpl

func NewInstalledAppReadServiceImpl(
	installedAppReadServiceEAImpl *InstalledAppReadServiceEAImpl) *InstalledAppReadServiceImpl

func (*InstalledAppReadServiceImpl) GetInstalledAppByGitHash

func (impl *InstalledAppReadServiceImpl) GetInstalledAppByGitHash(gitHash string) (*bean.InstalledAppDeleteRequest, error)

func (*InstalledAppReadServiceImpl) GetInstalledAppByGitOpsAppName

func (impl *InstalledAppReadServiceImpl) GetInstalledAppByGitOpsAppName(acdAppName string) (*bean.InstalledAppMin, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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