workspace

package
v0.0.0-...-c20d9b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for workspace fields.

Functions

func And

func And(predicates ...predicate.Workspace) predicate.Workspace

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Workspace

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Workspace

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Workspace

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Workspace

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Workspace

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Workspace

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Workspace

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Workspace

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Workspace

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.Workspace

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Workspace

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Workspace

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Workspace

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Workspace

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Workspace

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Workspace

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Workspace

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Workspace

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Workspace

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Workspace

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Workspace

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Workspace

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Workspace

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Workspace

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Workspace

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasFiles

func HasFiles() predicate.Workspace

HasFiles applies the HasEdge predicate on the "files" edge.

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 HasOwner

func HasOwner() predicate.Workspace

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Workspace

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasSecurityScannings

func HasSecurityScannings() predicate.Workspace

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 ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Workspace

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Workspace

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Workspace

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Workspace

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Workspace

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Workspace

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Workspace

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Workspace

IDNotIn applies the NotIn predicate on the ID field.

func LastAccessedAt

func LastAccessedAt(v time.Time) predicate.Workspace

LastAccessedAt applies equality check predicate on the "last_accessed_at" field. It's identical to LastAccessedAtEQ.

func LastAccessedAtEQ

func LastAccessedAtEQ(v time.Time) predicate.Workspace

LastAccessedAtEQ applies the EQ predicate on the "last_accessed_at" field.

func LastAccessedAtGT

func LastAccessedAtGT(v time.Time) predicate.Workspace

LastAccessedAtGT applies the GT predicate on the "last_accessed_at" field.

func LastAccessedAtGTE

func LastAccessedAtGTE(v time.Time) predicate.Workspace

LastAccessedAtGTE applies the GTE predicate on the "last_accessed_at" field.

func LastAccessedAtIn

func LastAccessedAtIn(vs ...time.Time) predicate.Workspace

LastAccessedAtIn applies the In predicate on the "last_accessed_at" field.

func LastAccessedAtLT

func LastAccessedAtLT(v time.Time) predicate.Workspace

LastAccessedAtLT applies the LT predicate on the "last_accessed_at" field.

func LastAccessedAtLTE

func LastAccessedAtLTE(v time.Time) predicate.Workspace

LastAccessedAtLTE applies the LTE predicate on the "last_accessed_at" field.

func LastAccessedAtNEQ

func LastAccessedAtNEQ(v time.Time) predicate.Workspace

LastAccessedAtNEQ applies the NEQ predicate on the "last_accessed_at" field.

func LastAccessedAtNotIn

func LastAccessedAtNotIn(vs ...time.Time) predicate.Workspace

LastAccessedAtNotIn applies the NotIn predicate on the "last_accessed_at" field.

func Name

func Name(v string) predicate.Workspace

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Workspace

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Workspace

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Workspace

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Workspace

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Workspace

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Workspace

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Workspace

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Workspace

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Workspace

NameIn applies the In predicate on the "name" field.

func NameIsNil

func NameIsNil() predicate.Workspace

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Workspace

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Workspace

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Workspace

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Workspace

NameNotIn applies the NotIn predicate on the "name" field.

func NameNotNil

func NameNotNil() predicate.Workspace

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Workspace) predicate.Workspace

Or groups predicates with the OR operator between them.

func RootPath

func RootPath(v string) predicate.Workspace

RootPath applies equality check predicate on the "root_path" field. It's identical to RootPathEQ.

func RootPathContains

func RootPathContains(v string) predicate.Workspace

RootPathContains applies the Contains predicate on the "root_path" field.

func RootPathContainsFold

func RootPathContainsFold(v string) predicate.Workspace

RootPathContainsFold applies the ContainsFold predicate on the "root_path" field.

func RootPathEQ

func RootPathEQ(v string) predicate.Workspace

RootPathEQ applies the EQ predicate on the "root_path" field.

func RootPathEqualFold

func RootPathEqualFold(v string) predicate.Workspace

RootPathEqualFold applies the EqualFold predicate on the "root_path" field.

func RootPathGT

func RootPathGT(v string) predicate.Workspace

RootPathGT applies the GT predicate on the "root_path" field.

func RootPathGTE

func RootPathGTE(v string) predicate.Workspace

RootPathGTE applies the GTE predicate on the "root_path" field.

func RootPathHasPrefix

func RootPathHasPrefix(v string) predicate.Workspace

RootPathHasPrefix applies the HasPrefix predicate on the "root_path" field.

func RootPathHasSuffix

func RootPathHasSuffix(v string) predicate.Workspace

RootPathHasSuffix applies the HasSuffix predicate on the "root_path" field.

func RootPathIn

func RootPathIn(vs ...string) predicate.Workspace

RootPathIn applies the In predicate on the "root_path" field.

func RootPathLT

func RootPathLT(v string) predicate.Workspace

RootPathLT applies the LT predicate on the "root_path" field.

func RootPathLTE

func RootPathLTE(v string) predicate.Workspace

RootPathLTE applies the LTE predicate on the "root_path" field.

func RootPathNEQ

func RootPathNEQ(v string) predicate.Workspace

RootPathNEQ applies the NEQ predicate on the "root_path" field.

func RootPathNotIn

func RootPathNotIn(vs ...string) predicate.Workspace

RootPathNotIn applies the NotIn predicate on the "root_path" field.

func SettingsIsNil

func SettingsIsNil() predicate.Workspace

SettingsIsNil applies the IsNil predicate on the "settings" field.

func SettingsNotNil

func SettingsNotNil() predicate.Workspace

SettingsNotNil applies the NotNil predicate on the "settings" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Workspace

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Workspace

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Workspace

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Workspace

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Workspace

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Workspace

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Workspace

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Workspace

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Workspace

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v uuid.UUID) predicate.Workspace

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.Workspace

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.Workspace

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.Workspace

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.Workspace

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL