sqltypes

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalDependency added in v0.6.19

type ExternalDependency struct {
	SourceGVK            string
	SourceFieldName      string
	TargetGVK            string
	TargetKeyFieldName   string
	TargetFinalFieldName string
}

type ExternalGVKDependency added in v0.6.19

type ExternalGVKDependency map[schema.GroupVersionKind]*ExternalGVKUpdates

type ExternalGVKUpdates added in v0.6.19

type ExternalGVKUpdates struct {
	AffectedGVK               schema.GroupVersionKind
	ExternalDependencies      []ExternalDependency
	ExternalLabelDependencies []ExternalLabelDependency
}

type ExternalInfoPacket added in v0.6.19

type ExternalInfoPacket struct {
	ExternalDependencies      []ExternalDependency
	ExternalLabelDependencies []ExternalLabelDependency
	ExternalGVKDependencies   ExternalGVKDependency
}

type ExternalLabelDependency added in v0.6.19

type ExternalLabelDependency struct {
	SourceGVK            string
	SourceLabelName      string
	TargetGVK            string
	TargetKeyFieldName   string
	TargetFinalFieldName string
}

type Filter

type Filter struct {
	Field   []string
	Matches []string
	Op      Op
	Partial bool
}

Filter represents a field to filter by. A subfield in an object is represented in a request query using . notation, e.g. 'metadata.name'. The subfield is internally represented as a slice, e.g. [metadata, name]. Complex subfields need to be expressed with square brackets, as in `metadata.labels[example.com/moose]`, but are mapped to the string slice ["metadata", "labels", "example.com/moose"]

If more than one value is given for the `Match` field, we do an "IN (<values>)" test

type ListOptions

type ListOptions struct {
	Filters              []OrFilter
	ProjectsOrNamespaces OrFilter
	SortList             SortList
	SummaryFieldList     SummaryFieldList
	Pagination           Pagination
	Revision             string
}

ListOptions represents the query parameters that may be included in a list request.

type Op

type Op string
const (
	Eq        Op = "="
	NotEq     Op = "!="
	Exists    Op = "Exists"
	NotExists Op = "NotExists"
	In        Op = "In"
	NotIn     Op = "NotIn"
	Lt        Op = "Lt"
	Gt        Op = "Gt"
)

type OrFilter

type OrFilter struct {
	Filters []Filter
}

OrFilter represents a set of possible fields to filter by, where an item may match any filter in the set to be included in the result.

type Pagination

type Pagination struct {
	PageSize int
	Page     int
}

Pagination represents how to return paginated results.

type Sort

type Sort struct {
	Fields   []string
	Order    SortOrder
	SortAsIP bool
}

Sort represents the criteria to sort on. The subfield to sort by is represented in a request query using . notation, e.g. 'metadata.name'. The subfield is internally represented as a slice, e.g. [metadata, name]. The order is represented by prefixing the sort key by '-', e.g. sort=-metadata.name. e.g. To sort internal clusters first followed by clusters in alpha order: sort=-spec.internal,spec.displayName

type SortList

type SortList struct {
	SortDirectives []Sort
}

func NewSortList

func NewSortList() *SortList

type SortOrder

type SortOrder int

SortOrder represents whether the list should be ascending or descending.

const (
	// ASC stands for ascending order.
	ASC SortOrder = iota
	// DESC stands for descending (reverse) order.
	DESC
)

type SummaryFieldList added in v0.8.1

type SummaryFieldList [][]string

Jump to

Keyboard shortcuts

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