Documentation ¶
Index ¶
- type CatalogFunc
- type ConnectorFunc
- type CostReportFunc
- type DistributeLockFunc
- type EnvironmentConnectorRelationshipFunc
- type EnvironmentFunc
- type Func
- type PerspectiveFunc
- type ProjectFunc
- type Query
- type ResourceComponentFunc
- type ResourceComponentRelationshipFunc
- type ResourceDefinitionFunc
- type ResourceDefinitionMatchingRuleFunc
- type ResourceFunc
- type ResourceRelationshipFunc
- type ResourceRevisionFunc
- type RoleFunc
- type SettingFunc
- type SubjectFunc
- type SubjectRoleRelationshipFunc
- type TemplateFunc
- type TemplateVersionFunc
- type TokenFunc
- type TraverseCatalog
- type TraverseConnector
- type TraverseCostReport
- type TraverseDistributeLock
- type TraverseEnvironment
- type TraverseEnvironmentConnectorRelationship
- type TraverseFunc
- type TraversePerspective
- type TraverseProject
- type TraverseResource
- type TraverseResourceComponent
- type TraverseResourceComponentRelationship
- type TraverseResourceDefinition
- type TraverseResourceDefinitionMatchingRule
- type TraverseResourceRelationship
- type TraverseResourceRevision
- type TraverseRole
- type TraverseSetting
- type TraverseSubject
- type TraverseSubjectRoleRelationship
- type TraverseTemplate
- type TraverseTemplateVersion
- type TraverseToken
- type TraverseVariable
- type TraverseWorkflow
- type TraverseWorkflowExecution
- type TraverseWorkflowStage
- type TraverseWorkflowStageExecution
- type TraverseWorkflowStep
- type TraverseWorkflowStepExecution
- type VariableFunc
- type WorkflowExecutionFunc
- type WorkflowFunc
- type WorkflowStageExecutionFunc
- type WorkflowStageFunc
- type WorkflowStepExecutionFunc
- type WorkflowStepFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogFunc ¶
The CatalogFunc type is an adapter to allow the use of ordinary function as a Querier.
type ConnectorFunc ¶
The ConnectorFunc type is an adapter to allow the use of ordinary function as a Querier.
type CostReportFunc ¶
The CostReportFunc type is an adapter to allow the use of ordinary function as a Querier.
type DistributeLockFunc ¶
The DistributeLockFunc type is an adapter to allow the use of ordinary function as a Querier.
type EnvironmentConnectorRelationshipFunc ¶
type EnvironmentConnectorRelationshipFunc func(context.Context, *model.EnvironmentConnectorRelationshipQuery) (model.Value, error)
The EnvironmentConnectorRelationshipFunc type is an adapter to allow the use of ordinary function as a Querier.
type EnvironmentFunc ¶
The EnvironmentFunc type is an adapter to allow the use of ordinary function as a Querier.
type Func ¶
The Func type is an adapter that allows ordinary functions to be used as interceptors. Unlike traversal functions, interceptors are skipped during graph traversals. Note that the implementation of Func is different from the one defined in entgo.io/ent.InterceptFunc.
type PerspectiveFunc ¶
The PerspectiveFunc type is an adapter to allow the use of ordinary function as a Querier.
type ProjectFunc ¶
The ProjectFunc type is an adapter to allow the use of ordinary function as a Querier.
type Query ¶
type Query interface { // Type returns the string representation of the query type. Type() string // Limit the number of records to be returned by this query. Limit(int) // Offset to start from. Offset(int) // Unique configures the query builder to filter duplicate records. Unique(bool) // Order specifies how the records should be ordered. Order(...func(*sql.Selector)) // WhereP appends storage-level predicates to the query builder. Using this method, users // can use type-assertion to append predicates that do not depend on any generated package. WhereP(...func(*sql.Selector)) }
The Query interface represents an operation that queries a graph. By using this interface, users can write generic code that manipulates query builders of different types.
type ResourceComponentFunc ¶ added in v0.4.0
type ResourceComponentFunc func(context.Context, *model.ResourceComponentQuery) (model.Value, error)
The ResourceComponentFunc type is an adapter to allow the use of ordinary function as a Querier.
type ResourceComponentRelationshipFunc ¶ added in v0.4.0
type ResourceComponentRelationshipFunc func(context.Context, *model.ResourceComponentRelationshipQuery) (model.Value, error)
The ResourceComponentRelationshipFunc type is an adapter to allow the use of ordinary function as a Querier.
type ResourceDefinitionFunc ¶ added in v0.4.0
type ResourceDefinitionFunc func(context.Context, *model.ResourceDefinitionQuery) (model.Value, error)
The ResourceDefinitionFunc type is an adapter to allow the use of ordinary function as a Querier.
type ResourceDefinitionMatchingRuleFunc ¶ added in v0.4.0
type ResourceDefinitionMatchingRuleFunc func(context.Context, *model.ResourceDefinitionMatchingRuleQuery) (model.Value, error)
The ResourceDefinitionMatchingRuleFunc type is an adapter to allow the use of ordinary function as a Querier.
type ResourceFunc ¶ added in v0.4.0
The ResourceFunc type is an adapter to allow the use of ordinary function as a Querier.
type ResourceRelationshipFunc ¶ added in v0.4.0
type ResourceRelationshipFunc func(context.Context, *model.ResourceRelationshipQuery) (model.Value, error)
The ResourceRelationshipFunc type is an adapter to allow the use of ordinary function as a Querier.
type ResourceRevisionFunc ¶ added in v0.4.0
The ResourceRevisionFunc type is an adapter to allow the use of ordinary function as a Querier.
type SettingFunc ¶
The SettingFunc type is an adapter to allow the use of ordinary function as a Querier.
type SubjectFunc ¶
The SubjectFunc type is an adapter to allow the use of ordinary function as a Querier.
type SubjectRoleRelationshipFunc ¶
type SubjectRoleRelationshipFunc func(context.Context, *model.SubjectRoleRelationshipQuery) (model.Value, error)
The SubjectRoleRelationshipFunc type is an adapter to allow the use of ordinary function as a Querier.
type TemplateFunc ¶
The TemplateFunc type is an adapter to allow the use of ordinary function as a Querier.
type TemplateVersionFunc ¶
The TemplateVersionFunc type is an adapter to allow the use of ordinary function as a Querier.
type TokenFunc ¶
The TokenFunc type is an adapter to allow the use of ordinary function as a Querier.
type TraverseCatalog ¶
type TraverseCatalog func(context.Context, *model.CatalogQuery) error
The TraverseCatalog type is an adapter to allow the use of ordinary function as Traverser.
type TraverseConnector ¶
type TraverseConnector func(context.Context, *model.ConnectorQuery) error
The TraverseConnector type is an adapter to allow the use of ordinary function as Traverser.
type TraverseCostReport ¶
type TraverseCostReport func(context.Context, *model.CostReportQuery) error
The TraverseCostReport type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDistributeLock ¶
type TraverseDistributeLock func(context.Context, *model.DistributeLockQuery) error
The TraverseDistributeLock type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEnvironment ¶
type TraverseEnvironment func(context.Context, *model.EnvironmentQuery) error
The TraverseEnvironment type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEnvironmentConnectorRelationship ¶
type TraverseEnvironmentConnectorRelationship func(context.Context, *model.EnvironmentConnectorRelationshipQuery) error
The TraverseEnvironmentConnectorRelationship type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFunc ¶
The TraverseFunc type is an adapter to allow the use of ordinary function as Traverser. If f is a function with the appropriate signature, TraverseFunc(f) is a Traverser that calls f.
type TraversePerspective ¶
type TraversePerspective func(context.Context, *model.PerspectiveQuery) error
The TraversePerspective type is an adapter to allow the use of ordinary function as Traverser.
type TraverseProject ¶
type TraverseProject func(context.Context, *model.ProjectQuery) error
The TraverseProject type is an adapter to allow the use of ordinary function as Traverser.
type TraverseResource ¶ added in v0.4.0
type TraverseResource func(context.Context, *model.ResourceQuery) error
The TraverseResource type is an adapter to allow the use of ordinary function as Traverser.
type TraverseResourceComponent ¶ added in v0.4.0
type TraverseResourceComponent func(context.Context, *model.ResourceComponentQuery) error
The TraverseResourceComponent type is an adapter to allow the use of ordinary function as Traverser.
type TraverseResourceComponentRelationship ¶ added in v0.4.0
type TraverseResourceComponentRelationship func(context.Context, *model.ResourceComponentRelationshipQuery) error
The TraverseResourceComponentRelationship type is an adapter to allow the use of ordinary function as Traverser.
type TraverseResourceDefinition ¶ added in v0.4.0
type TraverseResourceDefinition func(context.Context, *model.ResourceDefinitionQuery) error
The TraverseResourceDefinition type is an adapter to allow the use of ordinary function as Traverser.
type TraverseResourceDefinitionMatchingRule ¶ added in v0.4.0
type TraverseResourceDefinitionMatchingRule func(context.Context, *model.ResourceDefinitionMatchingRuleQuery) error
The TraverseResourceDefinitionMatchingRule type is an adapter to allow the use of ordinary function as Traverser.
type TraverseResourceRelationship ¶ added in v0.4.0
type TraverseResourceRelationship func(context.Context, *model.ResourceRelationshipQuery) error
The TraverseResourceRelationship type is an adapter to allow the use of ordinary function as Traverser.
type TraverseResourceRevision ¶ added in v0.4.0
type TraverseResourceRevision func(context.Context, *model.ResourceRevisionQuery) error
The TraverseResourceRevision type is an adapter to allow the use of ordinary function as Traverser.
type TraverseRole ¶
The TraverseRole type is an adapter to allow the use of ordinary function as Traverser.
type TraverseSetting ¶
type TraverseSetting func(context.Context, *model.SettingQuery) error
The TraverseSetting type is an adapter to allow the use of ordinary function as Traverser.
type TraverseSubject ¶
type TraverseSubject func(context.Context, *model.SubjectQuery) error
The TraverseSubject type is an adapter to allow the use of ordinary function as Traverser.
type TraverseSubjectRoleRelationship ¶
type TraverseSubjectRoleRelationship func(context.Context, *model.SubjectRoleRelationshipQuery) error
The TraverseSubjectRoleRelationship type is an adapter to allow the use of ordinary function as Traverser.
type TraverseTemplate ¶
type TraverseTemplate func(context.Context, *model.TemplateQuery) error
The TraverseTemplate type is an adapter to allow the use of ordinary function as Traverser.
type TraverseTemplateVersion ¶
type TraverseTemplateVersion func(context.Context, *model.TemplateVersionQuery) error
The TraverseTemplateVersion type is an adapter to allow the use of ordinary function as Traverser.
type TraverseToken ¶
type TraverseToken func(context.Context, *model.TokenQuery) error
The TraverseToken type is an adapter to allow the use of ordinary function as Traverser.
type TraverseVariable ¶
type TraverseVariable func(context.Context, *model.VariableQuery) error
The TraverseVariable type is an adapter to allow the use of ordinary function as Traverser.
type TraverseWorkflow ¶ added in v0.4.0
type TraverseWorkflow func(context.Context, *model.WorkflowQuery) error
The TraverseWorkflow type is an adapter to allow the use of ordinary function as Traverser.
type TraverseWorkflowExecution ¶ added in v0.4.0
type TraverseWorkflowExecution func(context.Context, *model.WorkflowExecutionQuery) error
The TraverseWorkflowExecution type is an adapter to allow the use of ordinary function as Traverser.
type TraverseWorkflowStage ¶ added in v0.4.0
type TraverseWorkflowStage func(context.Context, *model.WorkflowStageQuery) error
The TraverseWorkflowStage type is an adapter to allow the use of ordinary function as Traverser.
type TraverseWorkflowStageExecution ¶ added in v0.4.0
type TraverseWorkflowStageExecution func(context.Context, *model.WorkflowStageExecutionQuery) error
The TraverseWorkflowStageExecution type is an adapter to allow the use of ordinary function as Traverser.
type TraverseWorkflowStep ¶ added in v0.4.0
type TraverseWorkflowStep func(context.Context, *model.WorkflowStepQuery) error
The TraverseWorkflowStep type is an adapter to allow the use of ordinary function as Traverser.
type TraverseWorkflowStepExecution ¶ added in v0.4.0
type TraverseWorkflowStepExecution func(context.Context, *model.WorkflowStepExecutionQuery) error
The TraverseWorkflowStepExecution type is an adapter to allow the use of ordinary function as Traverser.
type VariableFunc ¶
The VariableFunc type is an adapter to allow the use of ordinary function as a Querier.
type WorkflowExecutionFunc ¶ added in v0.4.0
type WorkflowExecutionFunc func(context.Context, *model.WorkflowExecutionQuery) (model.Value, error)
The WorkflowExecutionFunc type is an adapter to allow the use of ordinary function as a Querier.
type WorkflowFunc ¶ added in v0.4.0
The WorkflowFunc type is an adapter to allow the use of ordinary function as a Querier.
type WorkflowStageExecutionFunc ¶ added in v0.4.0
type WorkflowStageExecutionFunc func(context.Context, *model.WorkflowStageExecutionQuery) (model.Value, error)
The WorkflowStageExecutionFunc type is an adapter to allow the use of ordinary function as a Querier.
type WorkflowStageFunc ¶ added in v0.4.0
The WorkflowStageFunc type is an adapter to allow the use of ordinary function as a Querier.
type WorkflowStepExecutionFunc ¶ added in v0.4.0
type WorkflowStepExecutionFunc func(context.Context, *model.WorkflowStepExecutionQuery) (model.Value, error)
The WorkflowStepExecutionFunc type is an adapter to allow the use of ordinary function as a Querier.
type WorkflowStepFunc ¶ added in v0.4.0
The WorkflowStepFunc type is an adapter to allow the use of ordinary function as a Querier.