helper

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 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(appIds []int) 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"`
}

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) BuildAppListingQueryLastDeploymentTime

func (impl AppListingRepositoryQueryBuilder) BuildAppListingQueryLastDeploymentTime() string

func (AppListingRepositoryQueryBuilder) BuildJobListingQuery added in v0.6.15

func (impl AppListingRepositoryQueryBuilder) BuildJobListingQuery(appIDs []int, statuses []string, sortOrder string) 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

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