Documentation ¶
Index ¶
- type CatalogFunc
- type ConnectorFunc
- type CostReportFunc
- type DistributeLockFunc
- type EnvironmentConnectorRelationshipFunc
- type EnvironmentFunc
- type Func
- type PerspectiveFunc
- type ProjectFunc
- type Query
- type RoleFunc
- type ServiceFunc
- type ServiceRelationshipFunc
- type ServiceResourceFunc
- type ServiceResourceRelationshipFunc
- type ServiceRevisionFunc
- 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 TraverseRole
- type TraverseService
- type TraverseServiceRelationship
- type TraverseServiceResource
- type TraverseServiceResourceRelationship
- type TraverseServiceRevision
- type TraverseSetting
- type TraverseSubject
- type TraverseSubjectRoleRelationship
- type TraverseTemplate
- type TraverseTemplateVersion
- type TraverseToken
- type TraverseVariable
- type VariableFunc
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 ServiceFunc ¶
The ServiceFunc type is an adapter to allow the use of ordinary function as a Querier.
type ServiceRelationshipFunc ¶
type ServiceRelationshipFunc func(context.Context, *model.ServiceRelationshipQuery) (model.Value, error)
The ServiceRelationshipFunc type is an adapter to allow the use of ordinary function as a Querier.
type ServiceResourceFunc ¶
The ServiceResourceFunc type is an adapter to allow the use of ordinary function as a Querier.
type ServiceResourceRelationshipFunc ¶
type ServiceResourceRelationshipFunc func(context.Context, *model.ServiceResourceRelationshipQuery) (model.Value, error)
The ServiceResourceRelationshipFunc type is an adapter to allow the use of ordinary function as a Querier.
type ServiceRevisionFunc ¶
The ServiceRevisionFunc 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 TraverseRole ¶
The TraverseRole type is an adapter to allow the use of ordinary function as Traverser.
type TraverseService ¶
type TraverseService func(context.Context, *model.ServiceQuery) error
The TraverseService type is an adapter to allow the use of ordinary function as Traverser.
type TraverseServiceRelationship ¶
type TraverseServiceRelationship func(context.Context, *model.ServiceRelationshipQuery) error
The TraverseServiceRelationship type is an adapter to allow the use of ordinary function as Traverser.
type TraverseServiceResource ¶
type TraverseServiceResource func(context.Context, *model.ServiceResourceQuery) error
The TraverseServiceResource type is an adapter to allow the use of ordinary function as Traverser.
type TraverseServiceResourceRelationship ¶
type TraverseServiceResourceRelationship func(context.Context, *model.ServiceResourceRelationshipQuery) error
The TraverseServiceResourceRelationship type is an adapter to allow the use of ordinary function as Traverser.
type TraverseServiceRevision ¶
type TraverseServiceRevision func(context.Context, *model.ServiceRevisionQuery) error
The TraverseServiceRevision 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 VariableFunc ¶
The VariableFunc type is an adapter to allow the use of ordinary function as a Querier.