helper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommaSepratedString added in v0.6.15

func GetCommaSepratedString[T int | string](request []T) string

func GetCommaSepratedStringWithComma added in v0.6.26

func GetCommaSepratedStringWithComma[T int | string](appIds []T) string

Types

type AppListingFilter

type AppListingFilter struct {
	Environments      []int     `json:"environments"`
	Statuses          []string  `json:"statutes"`
	Teams             []int     `json:"teams"`
	AppStatuses       []string  `json:"appStatuses"`
	AppNameSearch     string    `json:"appNameSearch"`
	SortOrder         SortOrder `json:"sortOrder"`
	SortBy            SortBy    `json:"sortBy"`
	Offset            int       `json:"offset"`
	Size              int       `json:"size"`
	DeploymentGroupId int       `json:"deploymentGroupId"`
	AppIds            []int     `json:"-"` // internal use only
}

type AppListingRepositoryQueryBuilder

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

func NewAppListingRepositoryQueryBuilder

func NewAppListingRepositoryQueryBuilder(logger *zap.SugaredLogger) AppListingRepositoryQueryBuilder

func (AppListingRepositoryQueryBuilder) BuildAppListingQueryLastDeploymentTimeV2 added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) BuildAppListingQueryLastDeploymentTimeV2(pipelineIDs []int) string

func (AppListingRepositoryQueryBuilder) BuildJobListingQuery added in v0.6.15

func (impl AppListingRepositoryQueryBuilder) BuildJobListingQuery(appIDs []int, statuses []string, environmentIds []int, sortOrder string) (string, []interface{})

func (AppListingRepositoryQueryBuilder) CommonJoinSubQuery added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) CommonJoinSubQuery(appListingFilter AppListingFilter) (string, []interface{})

func (AppListingRepositoryQueryBuilder) GetAppIdsQueryWithPaginationForAppNameSearch added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) GetAppIdsQueryWithPaginationForAppNameSearch(appListingFilter AppListingFilter) (string, []interface{})

func (AppListingRepositoryQueryBuilder) GetAppIdsQueryWithPaginationForLastDeployedSearch added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) GetAppIdsQueryWithPaginationForLastDeployedSearch(appListingFilter AppListingFilter) (string, []interface{})

func (AppListingRepositoryQueryBuilder) GetQueryForAppEnvContainers added in v1.0.0

func (impl AppListingRepositoryQueryBuilder) GetQueryForAppEnvContainers(appListingFilter AppListingFilter) (string, []interface{})

func (AppListingRepositoryQueryBuilder) JobsLastSucceededOnTimeQuery added in v0.6.15

func (impl AppListingRepositoryQueryBuilder) JobsLastSucceededOnTimeQuery(ciPipelineIDs []int) string

use this query with atleast 1 cipipeline id

func (AppListingRepositoryQueryBuilder) OverviewCiPipelineQuery added in v0.6.15

func (impl AppListingRepositoryQueryBuilder) OverviewCiPipelineQuery() string

func (AppListingRepositoryQueryBuilder) TestForCommonAppFilter added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) TestForCommonAppFilter(appListingFilter AppListingFilter) (string, []interface{})

type AppType added in v0.6.15

type AppType int
const (
	CustomApp     AppType = 0 // cicd app
	ChartStoreApp AppType = 1 // helm app
	Job           AppType = 2 // jobs
	// ExternalChartStoreApp app-type is not stored in db
	ExternalChartStoreApp AppType = 3 // external helm app
)

type SortBy

type SortBy string
const (
	AppNameSortBy      SortBy = "appNameSort"
	LastDeployedSortBy        = "lastDeployedSort"
)

type SortOrder

type SortOrder string
const (
	Asc  SortOrder = "ASC"
	Desc SortOrder = "DESC"
)

Jump to

Keyboard shortcuts

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