package
0.0.0-20231222022803-663e6fc3512b
Repository: https://github.com/kubetasker/kubetaskerserver.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

As is a pseudo aggregation function for renaming another other functions with custom names.
Asc applies the given fields in ASC order.
Count applies the "count" aggregation function on each group.
Debug enables debug logging on the ent.Driver.
Desc applies the given fields in DESC order.
Driver configures the client driver.
FromContext returns a Client stored inside a context, or nil if there isn't one.
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
IsNotFound returns a boolean indicating whether the error is a not found error.
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
IsNotSingular returns a boolean indicating whether the error is a not singular error.
IsValidationError returns a boolean indicating whether the error is a validation error.
Log sets the logging function for debug mode.
MaskNotFound masks not found error.
Max applies the "max" aggregation function on the given field of each group.
Mean applies the "mean" aggregation function on the given field of each group.
Min applies the "min" aggregation function on the given field of each group.
NewAPIClient returns a client for the API from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewDepartmentClient returns a client for the Department from the given config.
NewDictionaryClient returns a client for the Dictionary from the given config.
NewDictionaryDetailClient returns a client for the DictionaryDetail from the given config.
NewMenuClient returns a client for the Menu from the given config.
NewOauthProviderClient returns a client for the OauthProvider from the given config.
NewPositionClient returns a client for the Position from the given config.
NewRoleClient returns a client for the Role from the given config.
NewTokenClient returns a client for the Token from the given config.
NewTxContext returns a new context with the given Tx attached.
NewUserClient returns a client for the User from the given config.
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it.
Sum applies the "sum" aggregation function on the given field of each group.
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

# Constants

Operation types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OrderDirectionAsc specifies an ascending order.
OrderDirectionDesc specifies a descending order.
Node types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultAPIOrder is the default ordering of API.
DefaultDepartmentOrder is the default ordering of Department.
DefaultDictionaryDetailOrder is the default ordering of DictionaryDetail.
DefaultDictionaryOrder is the default ordering of Dictionary.
DefaultMenuOrder is the default ordering of Menu.
DefaultOauthProviderOrder is the default ordering of OauthProvider.
DefaultPositionOrder is the default ordering of Position.
DefaultRoleOrder is the default ordering of Role.
DefaultTokenOrder is the default ordering of Token.
DefaultUserOrder is the default ordering of User.
ErrTxStarted is returned when trying to start a new transaction from a transactional client.

# Structs

API is the model entity for the API schema.
APIClient is a client for the API schema.
APICreate is the builder for creating a API entity.
APICreateBulk is the builder for creating many API entities in bulk.
APIDelete is the builder for deleting a API entity.
APIDeleteOne is the builder for deleting a single API entity.
APIGroupBy is the group-by builder for API entities.
APIMutation represents an operation that mutates the API nodes in the graph.
APIPageList is API PageList result.
No description provided by the author
APIQuery is the builder for querying API entities.
APISelect is the builder for selecting fields of API entities.
APIUpdate is the builder for updating API entities.
APIUpdateOne is the builder for updating a single API entity.
Client is the client that holds all ent builders.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
Department is the model entity for the Department schema.
DepartmentClient is a client for the Department schema.
DepartmentCreate is the builder for creating a Department entity.
DepartmentCreateBulk is the builder for creating many Department entities in bulk.
DepartmentDelete is the builder for deleting a Department entity.
DepartmentDeleteOne is the builder for deleting a single Department entity.
DepartmentEdges holds the relations/edges for other nodes in the graph.
DepartmentGroupBy is the group-by builder for Department entities.
DepartmentMutation represents an operation that mutates the Department nodes in the graph.
DepartmentPageList is Department PageList result.
No description provided by the author
DepartmentQuery is the builder for querying Department entities.
DepartmentSelect is the builder for selecting fields of Department entities.
DepartmentUpdate is the builder for updating Department entities.
DepartmentUpdateOne is the builder for updating a single Department entity.
Dictionary is the model entity for the Dictionary schema.
DictionaryClient is a client for the Dictionary schema.
DictionaryCreate is the builder for creating a Dictionary entity.
DictionaryCreateBulk is the builder for creating many Dictionary entities in bulk.
DictionaryDelete is the builder for deleting a Dictionary entity.
DictionaryDeleteOne is the builder for deleting a single Dictionary entity.
DictionaryDetail is the model entity for the DictionaryDetail schema.
DictionaryDetailClient is a client for the DictionaryDetail schema.
DictionaryDetailCreate is the builder for creating a DictionaryDetail entity.
DictionaryDetailCreateBulk is the builder for creating many DictionaryDetail entities in bulk.
DictionaryDetailDelete is the builder for deleting a DictionaryDetail entity.
DictionaryDetailDeleteOne is the builder for deleting a single DictionaryDetail entity.
DictionaryDetailEdges holds the relations/edges for other nodes in the graph.
DictionaryDetailGroupBy is the group-by builder for DictionaryDetail entities.
DictionaryDetailMutation represents an operation that mutates the DictionaryDetail nodes in the graph.
DictionaryDetailPageList is DictionaryDetail PageList result.
No description provided by the author
DictionaryDetailQuery is the builder for querying DictionaryDetail entities.
DictionaryDetailSelect is the builder for selecting fields of DictionaryDetail entities.
DictionaryDetailUpdate is the builder for updating DictionaryDetail entities.
DictionaryDetailUpdateOne is the builder for updating a single DictionaryDetail entity.
DictionaryEdges holds the relations/edges for other nodes in the graph.
DictionaryGroupBy is the group-by builder for Dictionary entities.
DictionaryMutation represents an operation that mutates the Dictionary nodes in the graph.
DictionaryPageList is Dictionary PageList result.
No description provided by the author
DictionaryQuery is the builder for querying Dictionary entities.
DictionarySelect is the builder for selecting fields of Dictionary entities.
DictionaryUpdate is the builder for updating Dictionary entities.
DictionaryUpdateOne is the builder for updating a single Dictionary entity.
Menu is the model entity for the Menu schema.
MenuClient is a client for the Menu schema.
MenuCreate is the builder for creating a Menu entity.
MenuCreateBulk is the builder for creating many Menu entities in bulk.
MenuDelete is the builder for deleting a Menu entity.
MenuDeleteOne is the builder for deleting a single Menu entity.
MenuEdges holds the relations/edges for other nodes in the graph.
MenuGroupBy is the group-by builder for Menu entities.
MenuMutation represents an operation that mutates the Menu nodes in the graph.
MenuPageList is Menu PageList result.
No description provided by the author
MenuQuery is the builder for querying Menu entities.
MenuSelect is the builder for selecting fields of Menu entities.
MenuUpdate is the builder for updating Menu entities.
MenuUpdateOne is the builder for updating a single Menu entity.
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
NotLoadedError returns when trying to get a node that was not loaded by the query.
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
OauthProvider is the model entity for the OauthProvider schema.
OauthProviderClient is a client for the OauthProvider schema.
OauthProviderCreate is the builder for creating a OauthProvider entity.
OauthProviderCreateBulk is the builder for creating many OauthProvider entities in bulk.
OauthProviderDelete is the builder for deleting a OauthProvider entity.
OauthProviderDeleteOne is the builder for deleting a single OauthProvider entity.
OauthProviderGroupBy is the group-by builder for OauthProvider entities.
OauthProviderMutation represents an operation that mutates the OauthProvider nodes in the graph.
OauthProviderPageList is OauthProvider PageList result.
No description provided by the author
OauthProviderQuery is the builder for querying OauthProvider entities.
OauthProviderSelect is the builder for selecting fields of OauthProvider entities.
OauthProviderUpdate is the builder for updating OauthProvider entities.
OauthProviderUpdateOne is the builder for updating a single OauthProvider entity.
No description provided by the author
Position is the model entity for the Position schema.
PositionClient is a client for the Position schema.
PositionCreate is the builder for creating a Position entity.
PositionCreateBulk is the builder for creating many Position entities in bulk.
PositionDelete is the builder for deleting a Position entity.
PositionDeleteOne is the builder for deleting a single Position entity.
PositionEdges holds the relations/edges for other nodes in the graph.
PositionGroupBy is the group-by builder for Position entities.
PositionMutation represents an operation that mutates the Position nodes in the graph.
PositionPageList is Position PageList result.
No description provided by the author
PositionQuery is the builder for querying Position entities.
PositionSelect is the builder for selecting fields of Position entities.
PositionUpdate is the builder for updating Position entities.
PositionUpdateOne is the builder for updating a single Position entity.
Role is the model entity for the Role schema.
RoleClient is a client for the Role schema.
RoleCreate is the builder for creating a Role entity.
RoleCreateBulk is the builder for creating many Role entities in bulk.
RoleDelete is the builder for deleting a Role entity.
RoleDeleteOne is the builder for deleting a single Role entity.
RoleEdges holds the relations/edges for other nodes in the graph.
RoleGroupBy is the group-by builder for Role entities.
RoleMutation represents an operation that mutates the Role nodes in the graph.
RolePageList is Role PageList result.
No description provided by the author
RoleQuery is the builder for querying Role entities.
RoleSelect is the builder for selecting fields of Role entities.
RoleUpdate is the builder for updating Role entities.
RoleUpdateOne is the builder for updating a single Role entity.
Token is the model entity for the Token schema.
TokenClient is a client for the Token schema.
TokenCreate is the builder for creating a Token entity.
TokenCreateBulk is the builder for creating many Token entities in bulk.
TokenDelete is the builder for deleting a Token entity.
TokenDeleteOne is the builder for deleting a single Token entity.
TokenGroupBy is the group-by builder for Token entities.
TokenMutation represents an operation that mutates the Token nodes in the graph.
TokenPageList is Token PageList result.
No description provided by the author
TokenQuery is the builder for querying Token entities.
TokenSelect is the builder for selecting fields of Token entities.
TokenUpdate is the builder for updating Token entities.
TokenUpdateOne is the builder for updating a single Token entity.
Tx is a transactional client that is created by calling Client.Tx().
User is the model entity for the User schema.
UserClient is a client for the User schema.
UserCreate is the builder for creating a User entity.
UserCreateBulk is the builder for creating many User entities in bulk.
UserDelete is the builder for deleting a User entity.
UserDeleteOne is the builder for deleting a single User entity.
UserEdges holds the relations/edges for other nodes in the graph.
UserGroupBy is the group-by builder for User entities.
UserMutation represents an operation that mutates the User nodes in the graph.
UserPageList is User PageList result.
No description provided by the author
UserQuery is the builder for querying User entities.
UserSelect is the builder for selecting fields of User entities.
UserUpdate is the builder for updating User entities.
UserUpdateOne is the builder for updating a single User entity.
ValidationError returns when validating a field or edge fails.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

AggregateFunc applies an aggregation step on the group-by traversal/selector.
APIPaginateOption enables pagination customization.
APIs is a parsable slice of API.
No description provided by the author
No description provided by the author
DepartmentPaginateOption enables pagination customization.
Departments is a parsable slice of Department.
Dictionaries is a parsable slice of Dictionary.
DictionaryDetailPaginateOption enables pagination customization.
DictionaryDetails is a parsable slice of DictionaryDetail.
DictionaryPaginateOption enables pagination customization.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
MenuPaginateOption enables pagination customization.
Menus is a parsable slice of Menu.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
OauthProviderPaginateOption enables pagination customization.
OauthProviders is a parsable slice of OauthProvider.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
OrderDirection defines the directions in which to order a list of items.
OrderFunc applies an ordering on the sql selector.
ent aliases to avoid import conflicts in user's code.
PositionPaginateOption enables pagination customization.
Positions is a parsable slice of Position.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
RolePaginateOption enables pagination customization.
Roles is a parsable slice of Role.
No description provided by the author
No description provided by the author
TokenPaginateOption enables pagination customization.
Tokens is a parsable slice of Token.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
UserPaginateOption enables pagination customization.
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.