impl

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertProtoFiltersToGormFilters

func ConvertProtoFiltersToGormFilters(protoFilters []*common.Filter) (interfaces.Filter, error)

ConvertProtoFiltersToGormFilters converts proto filters to our Filter interfaces

func GetSortByFieldsV2

func GetSortByFieldsV2(request *common.ListRequest, allowedSortColumns sets.Set[string]) ([]interfaces.SortParameter, error)

GetSortByFieldsV2 converts proto sort fields to our SortParameter interfaces with validation

func NewActionRepo

func NewActionRepo(db *gorm.DB, dbConfig database.DbConfig) interfaces.ActionRepo

NewActionRepo creates a new PostgreSQL/SQLite repository

func NewDeployedByFilter

func NewDeployedByFilter(deployedBy string) interfaces.Filter

NewDeployedByFilter creates a filter for deployed_by = value

func NewEqualFilter

func NewEqualFilter(field string, value interface{}) interfaces.Filter

NewEqualFilter creates a filter for field = value

func NewListResourceInputFromProto

func NewListResourceInputFromProto(request *common.ListRequest, allowedColumns sets.Set[string]) (interfaces.ListResourceInput, error)

NewListResourceInputFromProto converts a proto ListRequest to ListResourceInput for querying DB

func NewNotEqualFilter added in v2.0.8

func NewNotEqualFilter(field string, value interface{}) interfaces.Filter

NewNotEqualFilter creates a filter for field != value.

func NewOrgFilter

func NewOrgFilter(org string) interfaces.Filter

NewOrgFilter creates a filter for org = value

func NewProjectIdFilter

func NewProjectIdFilter(projectId *common.ProjectIdentifier) interfaces.Filter

NewProjectIdFilter creates a filter for project identifier (org, project, domain)

func NewProjectRepo added in v2.0.8

func NewProjectRepo(db *gorm.DB) interfaces.ProjectRepo

func NewSortParameter

func NewSortParameter(field string, order interfaces.SortOrder) interfaces.SortParameter

NewSortParameter creates a new sort parameter

func NewTaskNameFilter

func NewTaskNameFilter(taskName *task.TaskName) interfaces.Filter

NewTaskNameFilter creates a filter for task name (org, project, domain, name)

func NewTaskRepo

func NewTaskRepo(db *gorm.DB) interfaces.TaskRepo

func ParseStringFilters added in v2.0.8

func ParseStringFilters(filterString string, allowedColumns sets.Set[string]) (interfaces.Filter, error)

ParseStringFilters parses a compact filter DSL like eq(state,1)+contains(name,foo).

Types

This section is empty.

Jump to

Keyboard shortcuts

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