helper

package
v0.6.27 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 5 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](appIds []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) BuildAppListingQuery

func (impl AppListingRepositoryQueryBuilder) BuildAppListingQuery(appListingFilter AppListingFilter) string

func (AppListingRepositoryQueryBuilder) BuildAppListingQueryForAppIds added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) BuildAppListingQueryForAppIds(appListingFilter AppListingFilter) string

func (AppListingRepositoryQueryBuilder) BuildAppListingQueryLastDeploymentTime

func (impl AppListingRepositoryQueryBuilder) BuildAppListingQueryLastDeploymentTime() string

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

func (AppListingRepositoryQueryBuilder) CommonJoinSubQuery added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) CommonJoinSubQuery(appListingFilter AppListingFilter) string

func (AppListingRepositoryQueryBuilder) GetAppIdsQueryWithPaginationForAppNameSearch added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) GetAppIdsQueryWithPaginationForAppNameSearch(appListingFilter AppListingFilter) string

func (AppListingRepositoryQueryBuilder) GetAppIdsQueryWithPaginationForLastDeployedSearch added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) GetAppIdsQueryWithPaginationForLastDeployedSearch(appListingFilter AppListingFilter) string

func (AppListingRepositoryQueryBuilder) GetQueryForAppEnvContainerss added in v0.6.17

func (impl AppListingRepositoryQueryBuilder) GetQueryForAppEnvContainerss(appListingFilter AppListingFilter) string

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

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
)

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