Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Workspace) predicate.Workspace
- func CreatedAt(v time.Time) predicate.Workspace
- func CreatedAtEQ(v time.Time) predicate.Workspace
- func CreatedAtGT(v time.Time) predicate.Workspace
- func CreatedAtGTE(v time.Time) predicate.Workspace
- func CreatedAtIn(vs ...time.Time) predicate.Workspace
- func CreatedAtLT(v time.Time) predicate.Workspace
- func CreatedAtLTE(v time.Time) predicate.Workspace
- func CreatedAtNEQ(v time.Time) predicate.Workspace
- func CreatedAtNotIn(vs ...time.Time) predicate.Workspace
- func Description(v string) predicate.Workspace
- func DescriptionContains(v string) predicate.Workspace
- func DescriptionContainsFold(v string) predicate.Workspace
- func DescriptionEQ(v string) predicate.Workspace
- func DescriptionEqualFold(v string) predicate.Workspace
- func DescriptionGT(v string) predicate.Workspace
- func DescriptionGTE(v string) predicate.Workspace
- func DescriptionHasPrefix(v string) predicate.Workspace
- func DescriptionHasSuffix(v string) predicate.Workspace
- func DescriptionIn(vs ...string) predicate.Workspace
- func DescriptionIsNil() predicate.Workspace
- func DescriptionLT(v string) predicate.Workspace
- func DescriptionLTE(v string) predicate.Workspace
- func DescriptionNEQ(v string) predicate.Workspace
- func DescriptionNotIn(vs ...string) predicate.Workspace
- func DescriptionNotNil() predicate.Workspace
- func HasFiles() predicate.Workspace
- func HasFilesWith(preds ...predicate.WorkspaceFile) predicate.Workspace
- func HasOwner() predicate.Workspace
- func HasOwnerWith(preds ...predicate.User) predicate.Workspace
- func HasSecurityScannings() predicate.Workspace
- func HasSecurityScanningsWith(preds ...predicate.SecurityScanning) predicate.Workspace
- func ID(id uuid.UUID) predicate.Workspace
- func IDEQ(id uuid.UUID) predicate.Workspace
- func IDGT(id uuid.UUID) predicate.Workspace
- func IDGTE(id uuid.UUID) predicate.Workspace
- func IDIn(ids ...uuid.UUID) predicate.Workspace
- func IDLT(id uuid.UUID) predicate.Workspace
- func IDLTE(id uuid.UUID) predicate.Workspace
- func IDNEQ(id uuid.UUID) predicate.Workspace
- func IDNotIn(ids ...uuid.UUID) predicate.Workspace
- func LastAccessedAt(v time.Time) predicate.Workspace
- func LastAccessedAtEQ(v time.Time) predicate.Workspace
- func LastAccessedAtGT(v time.Time) predicate.Workspace
- func LastAccessedAtGTE(v time.Time) predicate.Workspace
- func LastAccessedAtIn(vs ...time.Time) predicate.Workspace
- func LastAccessedAtLT(v time.Time) predicate.Workspace
- func LastAccessedAtLTE(v time.Time) predicate.Workspace
- func LastAccessedAtNEQ(v time.Time) predicate.Workspace
- func LastAccessedAtNotIn(vs ...time.Time) predicate.Workspace
- func Name(v string) predicate.Workspace
- func NameContains(v string) predicate.Workspace
- func NameContainsFold(v string) predicate.Workspace
- func NameEQ(v string) predicate.Workspace
- func NameEqualFold(v string) predicate.Workspace
- func NameGT(v string) predicate.Workspace
- func NameGTE(v string) predicate.Workspace
- func NameHasPrefix(v string) predicate.Workspace
- func NameHasSuffix(v string) predicate.Workspace
- func NameIn(vs ...string) predicate.Workspace
- func NameIsNil() predicate.Workspace
- func NameLT(v string) predicate.Workspace
- func NameLTE(v string) predicate.Workspace
- func NameNEQ(v string) predicate.Workspace
- func NameNotIn(vs ...string) predicate.Workspace
- func NameNotNil() predicate.Workspace
- func Not(p predicate.Workspace) predicate.Workspace
- func Or(predicates ...predicate.Workspace) predicate.Workspace
- func RootPath(v string) predicate.Workspace
- func RootPathContains(v string) predicate.Workspace
- func RootPathContainsFold(v string) predicate.Workspace
- func RootPathEQ(v string) predicate.Workspace
- func RootPathEqualFold(v string) predicate.Workspace
- func RootPathGT(v string) predicate.Workspace
- func RootPathGTE(v string) predicate.Workspace
- func RootPathHasPrefix(v string) predicate.Workspace
- func RootPathHasSuffix(v string) predicate.Workspace
- func RootPathIn(vs ...string) predicate.Workspace
- func RootPathLT(v string) predicate.Workspace
- func RootPathLTE(v string) predicate.Workspace
- func RootPathNEQ(v string) predicate.Workspace
- func RootPathNotIn(vs ...string) predicate.Workspace
- func SettingsIsNil() predicate.Workspace
- func SettingsNotNil() predicate.Workspace
- func UpdatedAt(v time.Time) predicate.Workspace
- func UpdatedAtEQ(v time.Time) predicate.Workspace
- func UpdatedAtGT(v time.Time) predicate.Workspace
- func UpdatedAtGTE(v time.Time) predicate.Workspace
- func UpdatedAtIn(vs ...time.Time) predicate.Workspace
- func UpdatedAtLT(v time.Time) predicate.Workspace
- func UpdatedAtLTE(v time.Time) predicate.Workspace
- func UpdatedAtNEQ(v time.Time) predicate.Workspace
- func UpdatedAtNotIn(vs ...time.Time) predicate.Workspace
- func UserID(v uuid.UUID) predicate.Workspace
- func UserIDEQ(v uuid.UUID) predicate.Workspace
- func UserIDIn(vs ...uuid.UUID) predicate.Workspace
- func UserIDNEQ(v uuid.UUID) predicate.Workspace
- func UserIDNotIn(vs ...uuid.UUID) predicate.Workspace
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastAccessedAt(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRootPath(opts ...sql.OrderTermOption) OrderOption
- func BySecurityScannings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySecurityScanningsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the workspace type in the database. Label = "workspace" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldRootPath holds the string denoting the root_path field in the database. FieldRootPath = "root_path" // FieldSettings holds the string denoting the settings field in the database. FieldSettings = "settings" // FieldLastAccessedAt holds the string denoting the last_accessed_at field in the database. FieldLastAccessedAt = "last_accessed_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeSecurityScannings holds the string denoting the security_scannings edge name in mutations. EdgeSecurityScannings = "security_scannings" // Table holds the table name of the workspace in the database. Table = "workspaces" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "workspaces" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_id" // FilesTable is the table that holds the files relation/edge. FilesTable = "workspace_files" // FilesInverseTable is the table name for the WorkspaceFile entity. // It exists in this package in order to avoid circular dependency with the "workspacefile" package. FilesInverseTable = "workspace_files" // FilesColumn is the table column denoting the files relation/edge. FilesColumn = "workspace_id" // SecurityScanningsTable is the table that holds the security_scannings relation/edge. SecurityScanningsTable = "security_scannings" // SecurityScanningsInverseTable is the table name for the SecurityScanning entity. // It exists in this package in order to avoid circular dependency with the "securityscanning" package. SecurityScanningsInverseTable = "security_scannings" // SecurityScanningsColumn is the table column denoting the security_scannings relation/edge. SecurityScanningsColumn = "workspace_id" )
Variables ¶
var ( // RootPathValidator is a validator for the "root_path" field. It is called by the builders before save. RootPathValidator func(string) error // DefaultLastAccessedAt holds the default value on creation for the "last_accessed_at" field. DefaultLastAccessedAt func() time.Time // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldUserID, FieldName, FieldDescription, FieldRootPath, FieldSettings, FieldLastAccessedAt, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for workspace fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasFilesWith ¶
func HasFilesWith(preds ...predicate.WorkspaceFile) predicate.Workspace
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasSecurityScannings ¶
HasSecurityScannings applies the HasEdge predicate on the "security_scannings" edge.
func HasSecurityScanningsWith ¶
func HasSecurityScanningsWith(preds ...predicate.SecurityScanning) predicate.Workspace
HasSecurityScanningsWith applies the HasEdge predicate on the "security_scannings" edge with a given conditions (other predicates).
func LastAccessedAt ¶
LastAccessedAt applies equality check predicate on the "last_accessed_at" field. It's identical to LastAccessedAtEQ.
func LastAccessedAtEQ ¶
LastAccessedAtEQ applies the EQ predicate on the "last_accessed_at" field.
func LastAccessedAtGT ¶
LastAccessedAtGT applies the GT predicate on the "last_accessed_at" field.
func LastAccessedAtGTE ¶
LastAccessedAtGTE applies the GTE predicate on the "last_accessed_at" field.
func LastAccessedAtIn ¶
LastAccessedAtIn applies the In predicate on the "last_accessed_at" field.
func LastAccessedAtLT ¶
LastAccessedAtLT applies the LT predicate on the "last_accessed_at" field.
func LastAccessedAtLTE ¶
LastAccessedAtLTE applies the LTE predicate on the "last_accessed_at" field.
func LastAccessedAtNEQ ¶
LastAccessedAtNEQ applies the NEQ predicate on the "last_accessed_at" field.
func LastAccessedAtNotIn ¶
LastAccessedAtNotIn applies the NotIn predicate on the "last_accessed_at" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func RootPath ¶
RootPath applies equality check predicate on the "root_path" field. It's identical to RootPathEQ.
func RootPathContains ¶
RootPathContains applies the Contains predicate on the "root_path" field.
func RootPathContainsFold ¶
RootPathContainsFold applies the ContainsFold predicate on the "root_path" field.
func RootPathEQ ¶
RootPathEQ applies the EQ predicate on the "root_path" field.
func RootPathEqualFold ¶
RootPathEqualFold applies the EqualFold predicate on the "root_path" field.
func RootPathGT ¶
RootPathGT applies the GT predicate on the "root_path" field.
func RootPathGTE ¶
RootPathGTE applies the GTE predicate on the "root_path" field.
func RootPathHasPrefix ¶
RootPathHasPrefix applies the HasPrefix predicate on the "root_path" field.
func RootPathHasSuffix ¶
RootPathHasSuffix applies the HasSuffix predicate on the "root_path" field.
func RootPathIn ¶
RootPathIn applies the In predicate on the "root_path" field.
func RootPathLT ¶
RootPathLT applies the LT predicate on the "root_path" field.
func RootPathLTE ¶
RootPathLTE applies the LTE predicate on the "root_path" field.
func RootPathNEQ ¶
RootPathNEQ applies the NEQ predicate on the "root_path" field.
func RootPathNotIn ¶
RootPathNotIn applies the NotIn predicate on the "root_path" field.
func SettingsIsNil ¶
SettingsIsNil applies the IsNil predicate on the "settings" field.
func SettingsNotNil ¶
SettingsNotNil applies the NotNil predicate on the "settings" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Workspace queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByFiles ¶
func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFiles orders the results by files terms.
func ByFilesCount ¶
func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
ByFilesCount orders the results by files count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastAccessedAt ¶
func ByLastAccessedAt(opts ...sql.OrderTermOption) OrderOption
ByLastAccessedAt orders the results by the last_accessed_at field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByRootPath ¶
func ByRootPath(opts ...sql.OrderTermOption) OrderOption
ByRootPath orders the results by the root_path field.
func BySecurityScannings ¶
func BySecurityScannings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySecurityScannings orders the results by security_scannings terms.
func BySecurityScanningsCount ¶
func BySecurityScanningsCount(opts ...sql.OrderTermOption) OrderOption
BySecurityScanningsCount orders the results by security_scannings count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.