{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package workflowcontractversion\n\n## Constants\n\n```go\nconst (\n\t// Label holds the string label denoting the workflowcontractversion type in the database.\n\tLabel = \"workflow_contract_version\"\n\t// FieldID holds the string denoting the id field in the database.\n\tFieldID = \"id\"\n\t// FieldBody holds the string denoting the body field in the database.\n\tFieldBody = \"body\"\n\t// FieldRawBody holds the string denoting the raw_body field in the database.\n\tFieldRawBody = \"raw_body\"\n\t// FieldRawBodyFormat holds the string denoting the raw_body_format field in the database.\n\tFieldRawBodyFormat = \"raw_body_format\"\n\t// FieldRevision holds the string denoting the revision field in the database.\n\tFieldRevision = \"revision\"\n\t// FieldCreatedAt holds the string denoting the created_at field in the database.\n\tFieldCreatedAt = \"created_at\"\n\t// EdgeContract holds the string denoting the contract edge name in mutations.\n\tEdgeContract = \"contract\"\n\t// Table holds the table name of the workflowcontractversion in the database.\n\tTable = \"workflow_contract_versions\"\n\t// ContractTable is the table that holds the contract relation/edge.\n\tContractTable = \"workflow_contract_versions\"\n\t// ContractInverseTable is the table name for the WorkflowContract entity.\n\t// It exists in this package in order to avoid circular dependency with the \"workflowcontract\" package.\n\tContractInverseTable = \"workflow_contracts\"\n\t// ContractColumn is the table column denoting the contract relation/edge.\n\tContractColumn = \"workflow_contract_versions\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\t// RawBodyValidator is a validator for the \"raw_body\" field. It is called by the builders before save.\n\tRawBodyValidator func([]byte) error\n\t// DefaultRevision holds the default value on creation for the \"revision\" field.\n\tDefaultRevision int\n\t// DefaultCreatedAt holds the default value on creation for the \"created_at\" field.\n\tDefaultCreatedAt 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\tFieldBody,\n\tFieldRawBody,\n\tFieldRawBodyFormat,\n\tFieldRevision,\n\tFieldCreatedAt,\n}\n```\nColumns holds all SQL columns for workflowcontractversion fields.\n\n```go\nvar ForeignKeys = []string{\n\t\"workflow_contract_versions\",\n}\n```\nForeignKeys holds the SQL foreign-keys that are owned by the \"workflow\\_contract\\_versions\" table and are not defined as standalone fields in the schema.\n\n## Functions\n\n```go\nfunc And(predicates ...predicate.WorkflowContractVersion) predicate.WorkflowContractVersion\n```\nAnd groups predicates with the AND operator between them.\n\n```go\nfunc Body(v []byte) predicate.WorkflowContractVersion\n```\nBody applies equality check predicate on the \"body\" field. It's identical to BodyEQ.\n\n```go\nfunc BodyEQ(v []byte) predicate.WorkflowContractVersion\n```\nBodyEQ applies the EQ predicate on the \"body\" field.\n\n```go\nfunc BodyGT(v []byte) predicate.WorkflowContractVersion\n```\nBodyGT applies the GT predicate on the \"body\" field.\n\n```go\nfunc BodyGTE(v []byte) predicate.WorkflowContractVersion\n```\nBodyGTE applies the GTE predicate on the \"body\" field.\n\n```go\nfunc BodyIn(vs ...[]byte) predicate.WorkflowContractVersion\n```\nBodyIn applies the In predicate on the \"body\" field.\n\n```go\nfunc BodyIsNil() predicate.WorkflowContractVersion\n```\nBodyIsNil applies the IsNil predicate on the \"body\" field.\n\n```go\nfunc BodyLT(v []byte) predicate.WorkflowContractVersion\n```\nBodyLT applies the LT predicate on the \"body\" field.\n\n```go\nfunc BodyLTE(v []byte) predicate.WorkflowContractVersion\n```\nBodyLTE applies the LTE predicate on the \"body\" field.\n\n```go\nfunc BodyNEQ(v []byte) predicate.WorkflowContractVersion\n```\nBodyNEQ applies the NEQ predicate on the \"body\" field.\n\n```go\nfunc BodyNotIn(vs ...[]byte) predicate.WorkflowContractVersion\n```\nBodyNotIn applies the NotIn predicate on the \"body\" field.\n\n```go\nfunc BodyNotNil() predicate.WorkflowContractVersion\n```\nBodyNotNil applies the NotNil predicate on the \"body\" field.\n\n```go\nfunc CreatedAt(v time.Time) predicate.WorkflowContractVersion\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.WorkflowContractVersion\n```\nCreatedAtEQ applies the EQ predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtGT(v time.Time) predicate.WorkflowContractVersion\n```\nCreatedAtGT applies the GT predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtGTE(v time.Time) predicate.WorkflowContractVersion\n```\nCreatedAtGTE applies the GTE predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtIn(vs ...time.Time) predicate.WorkflowContractVersion\n```\nCreatedAtIn applies the In predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtLT(v time.Time) predicate.WorkflowContractVersion\n```\nCreatedAtLT applies the LT predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtLTE(v time.Time) predicate.WorkflowContractVersion\n```\nCreatedAtLTE applies the LTE predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtNEQ(v time.Time) predicate.WorkflowContractVersion\n```\nCreatedAtNEQ applies the NEQ predicate on the \"created\\_at\" field.\n\n```go\nfunc CreatedAtNotIn(vs ...time.Time) predicate.WorkflowContractVersion\n```\nCreatedAtNotIn applies the NotIn predicate on the \"created\\_at\" field.\n\n```go\nfunc HasContract() predicate.WorkflowContractVersion\n```\nHasContract applies the HasEdge predicate on the \"contract\" edge.\n\n```go\nfunc HasContractWith(preds ...predicate.WorkflowContract) predicate.WorkflowContractVersion\n```\nHasContractWith applies the HasEdge predicate on the \"contract\" edge with a given conditions (other predicates).\n\n```go\nfunc ID(id uuid.UUID) predicate.WorkflowContractVersion\n```\nID filters vertices based on their ID field.\n\n```go\nfunc IDEQ(id uuid.UUID) predicate.WorkflowContractVersion\n```\nIDEQ applies the EQ predicate on the ID field.\n\n```go\nfunc IDGT(id uuid.UUID) predicate.WorkflowContractVersion\n```\nIDGT applies the GT predicate on the ID field.\n\n```go\nfunc IDGTE(id uuid.UUID) predicate.WorkflowContractVersion\n```\nIDGTE applies the GTE predicate on the ID field.\n\n```go\nfunc IDIn(ids ...uuid.UUID) predicate.WorkflowContractVersion\n```\nIDIn applies the In predicate on the ID field.\n\n```go\nfunc IDLT(id uuid.UUID) predicate.WorkflowContractVersion\n```\nIDLT applies the LT predicate on the ID field.\n\n```go\nfunc IDLTE(id uuid.UUID) predicate.WorkflowContractVersion\n```\nIDLTE applies the LTE predicate on the ID field.\n\n```go\nfunc IDNEQ(id uuid.UUID) predicate.WorkflowContractVersion\n```\nIDNEQ applies the NEQ predicate on the ID field.\n\n```go\nfunc IDNotIn(ids ...uuid.UUID) predicate.WorkflowContractVersion\n```\nIDNotIn applies the NotIn predicate on the ID field.\n\n```go\nfunc Not(p predicate.WorkflowContractVersion) predicate.WorkflowContractVersion\n```\nNot applies the not operator on the given predicate.\n\n```go\nfunc Or(predicates ...predicate.WorkflowContractVersion) predicate.WorkflowContractVersion\n```\nOr groups predicates with the OR operator between them.\n\n```go\nfunc RawBody(v []byte) predicate.WorkflowContractVersion\n```\nRawBody applies equality check predicate on the \"raw\\_body\" field. It's identical to RawBodyEQ.\n\n```go\nfunc RawBodyEQ(v []byte) predicate.WorkflowContractVersion\n```\nRawBodyEQ applies the EQ predicate on the \"raw\\_body\" field.\n\n```go\nfunc RawBodyFormatEQ(v unmarshal.RawFormat) predicate.WorkflowContractVersion\n```\nRawBodyFormatEQ applies the EQ predicate on the \"raw\\_body\\_format\" field.\n\n```go\nfunc RawBodyFormatIn(vs ...unmarshal.RawFormat) predicate.WorkflowContractVersion\n```\nRawBodyFormatIn applies the In predicate on the \"raw\\_body\\_format\" field.\n\n```go\nfunc RawBodyFormatNEQ(v unmarshal.RawFormat) predicate.WorkflowContractVersion\n```\nRawBodyFormatNEQ applies the NEQ predicate on the \"raw\\_body\\_format\" field.\n\n```go\nfunc RawBodyFormatNotIn(vs ...unmarshal.RawFormat) predicate.WorkflowContractVersion\n```\nRawBodyFormatNotIn applies the NotIn predicate on the \"raw\\_body\\_format\" field.\n\n```go\nfunc RawBodyFormatValidator(rbf unmarshal.RawFormat) error\n```\nRawBodyFormatValidator is a validator for the \"raw\\_body\\_format\" field enum values. It is called by the builders before save.\n\n```go\nfunc RawBodyGT(v []byte) predicate.WorkflowContractVersion\n```\nRawBodyGT applies the GT predicate on the \"raw\\_body\" field.\n\n```go\nfunc RawBodyGTE(v []byte) predicate.WorkflowContractVersion\n```\nRawBodyGTE applies the GTE predicate on the \"raw\\_body\" field.\n\n```go\nfunc RawBodyIn(vs ...[]byte) predicate.WorkflowContractVersion\n```\nRawBodyIn applies the In predicate on the \"raw\\_body\" field.\n\n```go\nfunc RawBodyLT(v []byte) predicate.WorkflowContractVersion\n```\nRawBodyLT applies the LT predicate on the \"raw\\_body\" field.\n\n```go\nfunc RawBodyLTE(v []byte) predicate.WorkflowContractVersion\n```\nRawBodyLTE applies the LTE predicate on the \"raw\\_body\" field.\n\n```go\nfunc RawBodyNEQ(v []byte) predicate.WorkflowContractVersion\n```\nRawBodyNEQ applies the NEQ predicate on the \"raw\\_body\" field.\n\n```go\nfunc RawBodyNotIn(vs ...[]byte) predicate.WorkflowContractVersion\n```\nRawBodyNotIn applies the NotIn predicate on the \"raw\\_body\" field.\n\n```go\nfunc Revision(v int) predicate.WorkflowContractVersion\n```\nRevision applies equality check predicate on the \"revision\" field. It's identical to RevisionEQ.\n\n```go\nfunc RevisionEQ(v int) predicate.WorkflowContractVersion\n```\nRevisionEQ applies the EQ predicate on the \"revision\" field.\n\n```go\nfunc RevisionGT(v int) predicate.WorkflowContractVersion\n```\nRevisionGT applies the GT predicate on the \"revision\" field.\n\n```go\nfunc RevisionGTE(v int) predicate.WorkflowContractVersion\n```\nRevisionGTE applies the GTE predicate on the \"revision\" field.\n\n```go\nfunc RevisionIn(vs ...int) predicate.WorkflowContractVersion\n```\nRevisionIn applies the In predicate on the \"revision\" field.\n\n```go\nfunc RevisionLT(v int) predicate.WorkflowContractVersion\n```\nRevisionLT applies the LT predicate on the \"revision\" field.\n\n```go\nfunc RevisionLTE(v int) predicate.WorkflowContractVersion\n```\nRevisionLTE applies the LTE predicate on the \"revision\" field.\n\n```go\nfunc RevisionNEQ(v int) predicate.WorkflowContractVersion\n```\nRevisionNEQ applies the NEQ predicate on the \"revision\" field.\n\n```go\nfunc RevisionNotIn(vs ...int) predicate.WorkflowContractVersion\n```\nRevisionNotIn applies the NotIn predicate on the \"revision\" 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 WorkflowContractVersion queries.\n\n```go\nfunc ByContractField(field string, opts ...sql.OrderTermOption) OrderOption\n```\nByContractField orders the results by contract field.\n\n```go\nfunc ByCreatedAt(opts ...sql.OrderTermOption) OrderOption\n```\nByCreatedAt orders the results by the created\\_at field.\n\n```go\nfunc ByID(opts ...sql.OrderTermOption) OrderOption\n```\nByID orders the results by the id field.\n\n```go\nfunc ByRawBodyFormat(opts ...sql.OrderTermOption) OrderOption\n```\nByRawBodyFormat orders the results by the raw\\_body\\_format field.\n\n```go\nfunc ByRevision(opts ...sql.OrderTermOption) OrderOption\n```\nByRevision orders the results by the revision field.\n\n","path":"github.com/chainloop-dev/chainloop/app/controlplane/pkg/data/ent/workflowcontractversion","name":"workflowcontractversion","synopsis":"","isRedistributable":true}
