Versions in this module Expand all Collapse all v0 v0.15.3 Jan 17, 2025 v0.15.2 Jan 14, 2025 Changes in this version type Lexer + func (l *Lexer) SetParsingJsonData(parsing bool) v0.15.1 Jan 9, 2025 v0.15.0 Jan 3, 2025 Changes in this version + var AllNamespaces bool + var CleanOutput bool + var GvrCache map[string]schema.GroupVersionResource + var LogLevel string + var Namespace string + var NoColor bool + var OutputFormat string + var ResourceSpecs map[string][]string + func AddRelationship(resourceA, resourceB interface{}, relationshipType string) + func AddRelationshipRule(rule RelationshipRule) + func GetRelationships() map[string][]string + func InitGVRCache(p provider.Provider) error + func InitResourceSpecs(p provider.Provider) error + func InitializeRelationships(resourceSpecs map[string][]string, provider provider.Provider) + type Clause interface + type ComparisonType string + const ContainsAll + const ExactMatch + const StringContains + type CreateClause struct + Nodes []*NodePattern + Relationships []*Relationship + type DefaultProp struct + Default interface{} + FieldA string + FieldB string + type DeleteClause struct + NodeIds []string + type Direction string + const Both + const Left + const None + const Right + type Edge struct + From string + To string + Type string + type Expression struct + Clauses []Clause + Contexts []string + func ParseQuery(query string) (*Expression, error) + type Graph struct + Edges []Edge + Nodes []Node + type KeyValuePair struct + Key string + Operator string + Value interface{} + type Lexer struct + func NewLexer(input string) *Lexer + func (l *Lexer) NextToken() Token + func (l *Lexer) Peek() rune + func (l *Lexer) SetParsingContexts(parsing bool) + type MatchClause struct + ExtraFilters []*KeyValuePair + Nodes []*NodePattern + Relationships []*Relationship + type MatchCriterion struct + ComparisonType ComparisonType + DefaultProps []DefaultProp + FieldA string + FieldB string + type Node struct + Id string + Kind string + Name string + Namespace string + type NodePattern struct + ResourceProperties *ResourceProperties + type NodeRelationshipList struct + Nodes []*NodePattern + Relationships []*Relationship + type Parser struct + func NewRecursiveParser(input string) *Parser + func (p *Parser) Parse() (*Expression, error) + type Properties struct + PropertyList []*Property + type Property struct + Key string + Value interface{} + type QueryExecutor struct + func GetContextQueryExecutor(context string) (*QueryExecutor, error) + func GetQueryExecutorInstance(p provider.Provider) *QueryExecutor + func NewQueryExecutor(p provider.Provider) (*QueryExecutor, error) + func (q *QueryExecutor) Execute(ast *Expression, namespace string) (QueryResult, error) + func (q *QueryExecutor) ExecuteSingleQuery(ast *Expression, namespace string) (QueryResult, error) + func (q *QueryExecutor) GetOpenAPIResourceSpecs() (map[string][]string, error) + func (q *QueryExecutor) PatchK8sResource(resource map[string]interface{}, patchJSON []byte) error + func (q *QueryExecutor) Provider() provider.Provider + type QueryResult struct + Data map[string]interface{} + Graph Graph + func ExecuteMultiContextQuery(ast *Expression, namespace string) (QueryResult, error) + type Relationship struct + Direction Direction + LeftNode *NodePattern + ResourceProperties *ResourceProperties + RightNode *NodePattern + type RelationshipRule struct + KindA string + KindB string + MatchCriteria []MatchCriterion + Relationship RelationshipType + func GetRelationshipRules() []RelationshipRule + type RelationshipType string + const CronJobOwnJob + const CronJobOwnPod + const DaemonsetOwnPod + const DeploymentOwnReplicaset + const HPAScaleDeployment + const JobOwnPod + const MutatingWebhookTargetService + const NamespaceHasResource + const NetworkPolicyApplyPod + const PDBProtectPod + const ReplicasetOwnPod + const RoleBindingReferenceRole + const Route + const ServiceExposeDaemonset + const ServiceExposeDeployment + const ServiceExposePod + const ServiceExposeReplicaset + const ServiceExposeStatefulset + const ServiceHasEndpoints + const StatefulsetOwnPod + const ValidatingWebhookTargetService + type ResourceProperties struct + JsonData string + Kind string + Name string + Properties *Properties + type ResourceRelationship struct + FromKind string + ToKind string + Type RelationshipType + type ReturnClause struct + Items []*ReturnItem + type ReturnItem struct + Aggregate string + Alias string + JsonPath string + type SetClause struct + KeyValuePairs []*KeyValuePair + type Token struct + Literal string + Type TokenType + type TokenType int + const AS + const BOOLEAN + const COLON + const COMMA + const CONTAINS + const COUNT + const CREATE + const DELETE + const DOT + const EOF + const EQUALS + const GREATER_THAN + const GREATER_THAN_EQUALS + const IDENT + const ILLEGAL + const IN + const INT + const JSONDATA + const JSONPATH + const LBRACE + const LBRACKET + const LESS_THAN + const LESS_THAN_EQUALS + const LPAREN + const MATCH + const NOT_EQUALS + const NULL + const NUMBER + const RBRACE + const RBRACKET + const REGEX_COMPARE + const REL_BEGINPROPS_LEFT + const REL_BEGINPROPS_NONE + const REL_ENDPROPS_NONE + const REL_ENDPROPS_RIGHT + const REL_NOPROPS_BOTH + const REL_NOPROPS_LEFT + const REL_NOPROPS_NONE + const REL_NOPROPS_RIGHT + const RETURN + const RPAREN + const SET + const STRING + const SUM + const WHERE