{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package project\n\n## Constants\n\n```go\nconst (\n\t// Label holds the string label denoting the project type in the database.\n\tLabel = \"project\"\n\t// FieldID holds the string denoting the id field in the database.\n\tFieldID = \"id\"\n\t// FieldName holds the string denoting the name field in the database.\n\tFieldName = \"name\"\n\t// FieldDescription holds the string denoting the description field in the database.\n\tFieldDescription = \"description\"\n\t// FieldCreatedAt holds the string denoting the created_at field in the database.\n\tFieldCreatedAt = \"created_at\"\n\t// FieldUpdatedAt holds the string denoting the updated_at field in the database.\n\tFieldUpdatedAt = \"updated_at\"\n\t// FieldDeletedAt holds the string denoting the deleted_at field in the database.\n\tFieldDeletedAt = \"deleted_at\"\n\t// FieldOrganizationID holds the string denoting the organization_id field in the database.\n\tFieldOrganizationID = \"organization_id\"\n\t// EdgeOrganization holds the string denoting the organization edge name in mutations.\n\tEdgeOrganization = \"organization\"\n\t// EdgeWorkflows holds the string denoting the workflows edge name in mutations.\n\tEdgeWorkflows = \"workflows\"\n\t// EdgeVersions holds the string denoting the versions edge name in mutations.\n\tEdgeVersions = \"versions\"\n\t// Table holds the table name of the project in the database.\n\tTable = \"projects\"\n\t// OrganizationTable is the table that holds the organization relation/edge.\n\tOrganizationTable = \"projects\"\n\t// OrganizationInverseTable is the table name for the Organization entity.\n\t// It exists in this package in order to avoid circular dependency with the \"organization\" package.\n\tOrganizationInverseTable = \"organizations\"\n\t// OrganizationColumn is the table column denoting the organization relation/edge.\n\tOrganizationColumn = \"organization_id\"\n\t// WorkflowsTable is the table that holds the workflows relation/edge.\n\tWorkflowsTable = \"workflows\"\n\t// WorkflowsInverseTable is the table name for the Workflow entity.\n\t// It exists in this package in order to avoid circular dependency with the \"workflow\" package.\n\tWorkflowsInverseTable = \"workflows\"\n\t// WorkflowsColumn is the table column denoting the workflows relation/edge.\n\tWorkflowsColumn = \"project_id\"\n\t// VersionsTable is the table that holds the versions relation/edge.\n\tVersionsTable = \"project_versions\"\n\t// VersionsInverseTable is the table name for the ProjectVersion entity.\n\t// It exists in this package in order to avoid circular dependency with the \"projectversion\" package.\n\tVersionsInverseTable = \"project_versions\"\n\t// VersionsColumn is the table column denoting the versions relation/edge.\n\tVersionsColumn = \"project_id\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\t// NameValidator is a validator for the \"name\" field. It is called by the builders before save.\n\tNameValidator func(string) error\n\t// DefaultCreatedAt holds the default value on creation for the \"created_at\" field.\n\tDefaultCreatedAt func() time.Time\n\t// DefaultUpdatedAt holds the default value on creation for the \"updated_at\" field.\n\tDefaultUpdatedAt func() time.Time\n\t// DefaultID holds the default value on creation for the \"id\" field.\n\tDefaultID func() uuid.UUID\n)\n```\n\n```go\nvar Columns = []string{\n\tFieldID,\n\tFieldName,\n\tFieldDescription,\n\tFieldCreatedAt,\n\tFieldUpdatedAt,\n\tFieldDeletedAt,\n\tFieldOrganizationID,\n}\n```\nColumns holds all SQL columns for project fields.\n\n## Functions\n\n```go\nfunc And(predicates ...predicate.Project) predicate.Project\n```\nAnd groups predicates with the AND operator between them.\n\n```go\nfunc CreatedAt(v time.Time) predicate.Project\n```\nCreatedAt applies equality check predicate on the \"created\\_at\" field. It's identical to CreatedAtEQ.\n\n```go\nfunc CreatedAtEQ(v time.Time) predicate.Project\n```\nCreatedAtEQ applies the EQ predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtGT(v time.Time) predicate.Project\n```\nCreatedAtGT applies the GT predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtGTE(v time.Time) predicate.Project\n```\nCreatedAtGTE applies the GTE predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtIn(vs ...time.Time) predicate.Project\n```\nCreatedAtIn applies the In predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtLT(v time.Time) predicate.Project\n```\nCreatedAtLT applies the LT predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtLTE(v time.Time) predicate.Project\n```\nCreatedAtLTE applies the LTE predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtNEQ(v time.Time) predicate.Project\n```\nCreatedAtNEQ applies the NEQ predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtNotIn(vs ...time.Time) predicate.Project\n```\nCreatedAtNotIn applies the NotIn predicate on the \"created\\_at\" field.\n\n```go\nfunc DeletedAt(v time.Time) predicate.Project\n```\nDeletedAt applies equality check predicate on the \"deleted\\_at\" field. It's identical to DeletedAtEQ.\n\n```go\nfunc DeletedAtEQ(v time.Time) predicate.Project\n```\nDeletedAtEQ applies the EQ predicate on the \"deleted\\_at\" field.\n\n```go\nfunc DeletedAtGT(v time.Time) predicate.Project\n```\nDeletedAtGT applies the GT predicate on the \"deleted\\_at\" field.\n\n```go\nfunc DeletedAtGTE(v time.Time) predicate.Project\n```\nDeletedAtGTE applies the GTE predicate on the \"deleted\\_at\" field.\n\n```go\nfunc DeletedAtIn(vs ...time.Time) predicate.Project\n```\nDeletedAtIn applies the In predicate on the \"deleted\\_at\" field.\n\n```go\nfunc DeletedAtIsNil() predicate.Project\n```\nDeletedAtIsNil applies the IsNil predicate on the \"deleted\\_at\" field.\n\n```go\nfunc DeletedAtLT(v time.Time) predicate.Project\n```\nDeletedAtLT applies the LT predicate on the \"deleted\\_at\" field.\n\n```go\nfunc DeletedAtLTE(v time.Time) predicate.Project\n```\nDeletedAtLTE applies the LTE predicate on the \"deleted\\_at\" field.\n\n```go\nfunc DeletedAtNEQ(v time.Time) predicate.Project\n```\nDeletedAtNEQ applies the NEQ predicate on the \"deleted\\_at\" field.\n\n```go\nfunc DeletedAtNotIn(vs ...time.Time) predicate.Project\n```\nDeletedAtNotIn applies the NotIn predicate on the \"deleted\\_at\" field.\n\n```go\nfunc DeletedAtNotNil() predicate.Project\n```\nDeletedAtNotNil applies the NotNil predicate on the \"deleted\\_at\" field.\n\n```go\nfunc Description(v string) predicate.Project\n```\nDescription applies equality check predicate on the \"description\" field. It's identical to DescriptionEQ.\n\n```go\nfunc DescriptionContains(v string) predicate.Project\n```\nDescriptionContains applies the Contains predicate on the \"description\" field.\n\n```go\nfunc DescriptionContainsFold(v string) predicate.Project\n```\nDescriptionContainsFold applies the ContainsFold predicate on the \"description\" field.\n\n```go\nfunc DescriptionEQ(v string) predicate.Project\n```\nDescriptionEQ applies the EQ predicate on the \"description\" field.\n\n```go\nfunc DescriptionEqualFold(v string) predicate.Project\n```\nDescriptionEqualFold applies the EqualFold predicate on the \"description\" field.\n\n```go\nfunc DescriptionGT(v string) predicate.Project\n```\nDescriptionGT applies the GT predicate on the \"description\" field.\n\n```go\nfunc DescriptionGTE(v string) predicate.Project\n```\nDescriptionGTE applies the GTE predicate on the \"description\" field.\n\n```go\nfunc DescriptionHasPrefix(v string) predicate.Project\n```\nDescriptionHasPrefix applies the HasPrefix predicate on the \"description\" field.\n\n```go\nfunc DescriptionHasSuffix(v string) predicate.Project\n```\nDescriptionHasSuffix applies the HasSuffix predicate on the \"description\" field.\n\n```go\nfunc DescriptionIn(vs ...string) predicate.Project\n```\nDescriptionIn applies the In predicate on the \"description\" field.\n\n```go\nfunc DescriptionIsNil() predicate.Project\n```\nDescriptionIsNil applies the IsNil predicate on the \"description\" field.\n\n```go\nfunc DescriptionLT(v string) predicate.Project\n```\nDescriptionLT applies the LT predicate on the \"description\" field.\n\n```go\nfunc DescriptionLTE(v string) predicate.Project\n```\nDescriptionLTE applies the LTE predicate on the \"description\" field.\n\n```go\nfunc DescriptionNEQ(v string) predicate.Project\n```\nDescriptionNEQ applies the NEQ predicate on the \"description\" field.\n\n```go\nfunc DescriptionNotIn(vs ...string) predicate.Project\n```\nDescriptionNotIn applies the NotIn predicate on the \"description\" field.\n\n```go\nfunc DescriptionNotNil() predicate.Project\n```\nDescriptionNotNil applies the NotNil predicate on the \"description\" field.\n\n```go\nfunc HasOrganization() predicate.Project\n```\nHasOrganization applies the HasEdge predicate on the \"organization\" edge.\n\n```go\nfunc HasOrganizationWith(preds ...predicate.Organization) predicate.Project\n```\nHasOrganizationWith applies the HasEdge predicate on the \"organization\" edge with a given conditions (other predicates).\n\n```go\nfunc HasVersions() predicate.Project\n```\nHasVersions applies the HasEdge predicate on the \"versions\" edge.\n\n```go\nfunc HasVersionsWith(preds ...predicate.ProjectVersion) predicate.Project\n```\nHasVersionsWith applies the HasEdge predicate on the \"versions\" edge with a given conditions (other predicates).\n\n```go\nfunc HasWorkflows() predicate.Project\n```\nHasWorkflows applies the HasEdge predicate on the \"workflows\" edge.\n\n```go\nfunc HasWorkflowsWith(preds ...predicate.Workflow) predicate.Project\n```\nHasWorkflowsWith applies the HasEdge predicate on the \"workflows\" edge with a given conditions (other predicates).\n\n```go\nfunc ID(id uuid.UUID) predicate.Project\n```\nID filters vertices based on their ID field.\n\n```go\nfunc IDEQ(id uuid.UUID) predicate.Project\n```\nIDEQ applies the EQ predicate on the ID field.\n\n```go\nfunc IDGT(id uuid.UUID) predicate.Project\n```\nIDGT applies the GT predicate on the ID field.\n\n```go\nfunc IDGTE(id uuid.UUID) predicate.Project\n```\nIDGTE applies the GTE predicate on the ID field.\n\n```go\nfunc IDIn(ids ...uuid.UUID) predicate.Project\n```\nIDIn applies the In predicate on the ID field.\n\n```go\nfunc IDLT(id uuid.UUID) predicate.Project\n```\nIDLT applies the LT predicate on the ID field.\n\n```go\nfunc IDLTE(id uuid.UUID) predicate.Project\n```\nIDLTE applies the LTE predicate on the ID field.\n\n```go\nfunc IDNEQ(id uuid.UUID) predicate.Project\n```\nIDNEQ applies the NEQ predicate on the ID field.\n\n```go\nfunc IDNotIn(ids ...uuid.UUID) predicate.Project\n```\nIDNotIn applies the NotIn predicate on the ID field.\n\n```go\nfunc Name(v string) predicate.Project\n```\nName applies equality check predicate on the \"name\" field. It's identical to NameEQ.\n\n```go\nfunc NameContains(v string) predicate.Project\n```\nNameContains applies the Contains predicate on the \"name\" field.\n\n```go\nfunc NameContainsFold(v string) predicate.Project\n```\nNameContainsFold applies the ContainsFold predicate on the \"name\" field.\n\n```go\nfunc NameEQ(v string) predicate.Project\n```\nNameEQ applies the EQ predicate on the \"name\" field.\n\n```go\nfunc NameEqualFold(v string) predicate.Project\n```\nNameEqualFold applies the EqualFold predicate on the \"name\" field.\n\n```go\nfunc NameGT(v string) predicate.Project\n```\nNameGT applies the GT predicate on the \"name\" field.\n\n```go\nfunc NameGTE(v string) predicate.Project\n```\nNameGTE applies the GTE predicate on the \"name\" field.\n\n```go\nfunc NameHasPrefix(v string) predicate.Project\n```\nNameHasPrefix applies the HasPrefix predicate on the \"name\" field.\n\n```go\nfunc NameHasSuffix(v string) predicate.Project\n```\nNameHasSuffix applies the HasSuffix predicate on the \"name\" field.\n\n```go\nfunc NameIn(vs ...string) predicate.Project\n```\nNameIn applies the In predicate on the \"name\" field.\n\n```go\nfunc NameLT(v string) predicate.Project\n```\nNameLT applies the LT predicate on the \"name\" field.\n\n```go\nfunc NameLTE(v string) predicate.Project\n```\nNameLTE applies the LTE predicate on the \"name\" field.\n\n```go\nfunc NameNEQ(v string) predicate.Project\n```\nNameNEQ applies the NEQ predicate on the \"name\" field.\n\n```go\nfunc NameNotIn(vs ...string) predicate.Project\n```\nNameNotIn applies the NotIn predicate on the \"name\" field.\n\n```go\nfunc Not(p predicate.Project) predicate.Project\n```\nNot applies the not operator on the given predicate.\n\n```go\nfunc Or(predicates ...predicate.Project) predicate.Project\n```\nOr groups predicates with the OR operator between them.\n\n```go\nfunc OrganizationID(v uuid.UUID) predicate.Project\n```\nOrganizationID applies equality check predicate on the \"organization\\_id\" field. It's identical to OrganizationIDEQ.\n\n```go\nfunc OrganizationIDEQ(v uuid.UUID) predicate.Project\n```\nOrganizationIDEQ applies the EQ predicate on the \"organization\\_id\" field.\n\n```go\nfunc OrganizationIDIn(vs ...uuid.UUID) predicate.Project\n```\nOrganizationIDIn applies the In predicate on the \"organization\\_id\" field.\n\n```go\nfunc OrganizationIDNEQ(v uuid.UUID) predicate.Project\n```\nOrganizationIDNEQ applies the NEQ predicate on the \"organization\\_id\" field.\n\n```go\nfunc OrganizationIDNotIn(vs ...uuid.UUID) predicate.Project\n```\nOrganizationIDNotIn applies the NotIn predicate on the \"organization\\_id\" field.\n\n```go\nfunc UpdatedAt(v time.Time) predicate.Project\n```\nUpdatedAt applies equality check predicate on the \"updated\\_at\" field. It's identical to UpdatedAtEQ.\n\n```go\nfunc UpdatedAtEQ(v time.Time) predicate.Project\n```\nUpdatedAtEQ applies the EQ predicate on the \"updated\\_at\" field.\n\n```go\nfunc UpdatedAtGT(v time.Time) predicate.Project\n```\nUpdatedAtGT applies the GT predicate on the \"updated\\_at\" field.\n\n```go\nfunc UpdatedAtGTE(v time.Time) predicate.Project\n```\nUpdatedAtGTE applies the GTE predicate on the \"updated\\_at\" field.\n\n```go\nfunc UpdatedAtIn(vs ...time.Time) predicate.Project\n```\nUpdatedAtIn applies the In predicate on the \"updated\\_at\" field.\n\n```go\nfunc UpdatedAtLT(v time.Time) predicate.Project\n```\nUpdatedAtLT applies the LT predicate on the \"updated\\_at\" field.\n\n```go\nfunc UpdatedAtLTE(v time.Time) predicate.Project\n```\nUpdatedAtLTE applies the LTE predicate on the \"updated\\_at\" field.\n\n```go\nfunc UpdatedAtNEQ(v time.Time) predicate.Project\n```\nUpdatedAtNEQ applies the NEQ predicate on the \"updated\\_at\" field.\n\n```go\nfunc UpdatedAtNotIn(vs ...time.Time) predicate.Project\n```\nUpdatedAtNotIn applies the NotIn predicate on the \"updated\\_at\" field.\n\n```go\nfunc ValidColumn(column string) bool\n```\nValidColumn reports if the column name is valid (part of the table columns).\n\n## Types\n\n```go\ntype OrderOption func(*sql.Selector)\n```\nOrderOption defines the ordering options for the Project queries.\n\n```go\nfunc ByCreatedAt(opts ...sql.OrderTermOption) OrderOption\n```\nByCreatedAt orders the results by the created\\_at field.\n\n```go\nfunc ByDeletedAt(opts ...sql.OrderTermOption) OrderOption\n```\nByDeletedAt orders the results by the deleted\\_at field.\n\n```go\nfunc ByDescription(opts ...sql.OrderTermOption) OrderOption\n```\nByDescription orders the results by the description field.\n\n```go\nfunc ByID(opts ...sql.OrderTermOption) OrderOption\n```\nByID orders the results by the id field.\n\n```go\nfunc ByName(opts ...sql.OrderTermOption) OrderOption\n```\nByName orders the results by the name field.\n\n```go\nfunc ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption\n```\nByOrganizationField orders the results by organization field.\n\n```go\nfunc ByOrganizationID(opts ...sql.OrderTermOption) OrderOption\n```\nByOrganizationID orders the results by the organization\\_id field.\n\n```go\nfunc ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption\n```\nByUpdatedAt orders the results by the updated\\_at field.\n\n```go\nfunc ByVersions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption\n```\nByVersions orders the results by versions terms.\n\n```go\nfunc ByVersionsCount(opts ...sql.OrderTermOption) OrderOption\n```\nByVersionsCount orders the results by versions count.\n\n```go\nfunc ByWorkflows(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption\n```\nByWorkflows orders the results by workflows terms.\n\n```go\nfunc ByWorkflowsCount(opts ...sql.OrderTermOption) OrderOption\n```\nByWorkflowsCount orders the results by workflows count.\n\n","path":"github.com/chainloop-dev/chainloop/app/controlplane/pkg/data/ent/project","name":"project","synopsis":"","isRedistributable":true}
