Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Release) predicate.Release
- func HasArtifacts() predicate.Release
- func HasArtifactsWith(preds ...predicate.Artifact) predicate.Release
- func HasCodeScans() predicate.Release
- func HasCodeScansWith(preds ...predicate.CodeScan) predicate.Release
- func HasCommit() predicate.Release
- func HasCommitWith(preds ...predicate.GitCommit) predicate.Release
- func HasComponents() predicate.Release
- func HasComponentsWith(preds ...predicate.ReleaseComponent) predicate.Release
- func HasDependencies() predicate.Release
- func HasDependenciesWith(preds ...predicate.Release) predicate.Release
- func HasHeadOf() predicate.Release
- func HasHeadOfWith(preds ...predicate.Repo) predicate.Release
- func HasLicenses() predicate.Release
- func HasLicensesWith(preds ...predicate.ReleaseLicense) predicate.Release
- func HasLog() predicate.Release
- func HasLogWith(preds ...predicate.ReleaseEntry) predicate.Release
- func HasSubreleases() predicate.Release
- func HasSubreleasesWith(preds ...predicate.Release) predicate.Release
- func HasTestRuns() predicate.Release
- func HasTestRunsWith(preds ...predicate.TestRun) predicate.Release
- func HasViolations() predicate.Release
- func HasViolationsWith(preds ...predicate.ReleasePolicyViolation) predicate.Release
- func HasVulnerabilities() predicate.Release
- func HasVulnerabilitiesWith(preds ...predicate.ReleaseVulnerability) predicate.Release
- func HasVulnerabilityReviews() predicate.Release
- func HasVulnerabilityReviewsWith(preds ...predicate.VulnerabilityReview) predicate.Release
- func ID(id int) predicate.Release
- func IDEQ(id int) predicate.Release
- func IDGT(id int) predicate.Release
- func IDGTE(id int) predicate.Release
- func IDIn(ids ...int) predicate.Release
- func IDLT(id int) predicate.Release
- func IDLTE(id int) predicate.Release
- func IDNEQ(id int) predicate.Release
- func IDNotIn(ids ...int) predicate.Release
- func LabelsIsNil() predicate.Release
- func LabelsNotNil() predicate.Release
- func Name(v string) predicate.Release
- func NameContains(v string) predicate.Release
- func NameContainsFold(v string) predicate.Release
- func NameEQ(v string) predicate.Release
- func NameEqualFold(v string) predicate.Release
- func NameGT(v string) predicate.Release
- func NameGTE(v string) predicate.Release
- func NameHasPrefix(v string) predicate.Release
- func NameHasSuffix(v string) predicate.Release
- func NameIn(vs ...string) predicate.Release
- func NameLT(v string) predicate.Release
- func NameLTE(v string) predicate.Release
- func NameNEQ(v string) predicate.Release
- func NameNotIn(vs ...string) predicate.Release
- func Not(p predicate.Release) predicate.Release
- func Or(predicates ...predicate.Release) predicate.Release
- func ValidColumn(column string) bool
- func Version(v string) predicate.Release
- func VersionContains(v string) predicate.Release
- func VersionContainsFold(v string) predicate.Release
- func VersionEQ(v string) predicate.Release
- func VersionEqualFold(v string) predicate.Release
- func VersionGT(v string) predicate.Release
- func VersionGTE(v string) predicate.Release
- func VersionHasPrefix(v string) predicate.Release
- func VersionHasSuffix(v string) predicate.Release
- func VersionIn(vs ...string) predicate.Release
- func VersionLT(v string) predicate.Release
- func VersionLTE(v string) predicate.Release
- func VersionNEQ(v string) predicate.Release
- func VersionNotIn(vs ...string) predicate.Release
Constants ¶
const ( // Label holds the string label denoting the release type in the database. Label = "release" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldLabels holds the string denoting the labels field in the database. FieldLabels = "labels" // EdgeSubreleases holds the string denoting the subreleases edge name in mutations. EdgeSubreleases = "subreleases" // EdgeDependencies holds the string denoting the dependencies edge name in mutations. EdgeDependencies = "dependencies" // EdgeCommit holds the string denoting the commit edge name in mutations. EdgeCommit = "commit" // EdgeHeadOf holds the string denoting the head_of edge name in mutations. EdgeHeadOf = "head_of" // EdgeLog holds the string denoting the log edge name in mutations. EdgeLog = "log" // EdgeViolations holds the string denoting the violations edge name in mutations. EdgeViolations = "violations" // EdgeArtifacts holds the string denoting the artifacts edge name in mutations. EdgeArtifacts = "artifacts" // EdgeComponents holds the string denoting the components edge name in mutations. EdgeComponents = "components" // EdgeVulnerabilities holds the string denoting the vulnerabilities edge name in mutations. EdgeVulnerabilities = "vulnerabilities" // EdgeLicenses holds the string denoting the licenses edge name in mutations. EdgeLicenses = "licenses" // EdgeCodeScans holds the string denoting the code_scans edge name in mutations. EdgeCodeScans = "code_scans" // EdgeTestRuns holds the string denoting the test_runs edge name in mutations. EdgeTestRuns = "test_runs" // EdgeVulnerabilityReviews holds the string denoting the vulnerability_reviews edge name in mutations. EdgeVulnerabilityReviews = "vulnerability_reviews" // Table holds the table name of the release in the database. Table = "release" // SubreleasesTable is the table that holds the subreleases relation/edge. The primary key declared below. SubreleasesTable = "release_dependencies" // DependenciesTable is the table that holds the dependencies relation/edge. The primary key declared below. DependenciesTable = "release_dependencies" // CommitTable is the table that holds the commit relation/edge. CommitTable = "release" // CommitInverseTable is the table name for the GitCommit entity. // It exists in this package in order to avoid circular dependency with the "gitcommit" package. CommitInverseTable = "commit" // CommitColumn is the table column denoting the commit relation/edge. CommitColumn = "git_commit_release" // HeadOfTable is the table that holds the head_of relation/edge. HeadOfTable = "release" // HeadOfInverseTable is the table name for the Repo entity. // It exists in this package in order to avoid circular dependency with the "repo" package. HeadOfInverseTable = "repo" // HeadOfColumn is the table column denoting the head_of relation/edge. HeadOfColumn = "repo_head" // LogTable is the table that holds the log relation/edge. LogTable = "release_entry" // LogInverseTable is the table name for the ReleaseEntry entity. // It exists in this package in order to avoid circular dependency with the "releaseentry" package. LogInverseTable = "release_entry" // LogColumn is the table column denoting the log relation/edge. LogColumn = "release_entry_release" // ViolationsTable is the table that holds the violations relation/edge. ViolationsTable = "release_policy_violation" // ViolationsInverseTable is the table name for the ReleasePolicyViolation entity. // It exists in this package in order to avoid circular dependency with the "releasepolicyviolation" package. ViolationsInverseTable = "release_policy_violation" // ViolationsColumn is the table column denoting the violations relation/edge. ViolationsColumn = "release_policy_violation_release" // ArtifactsTable is the table that holds the artifacts relation/edge. ArtifactsTable = "artifact" // ArtifactsInverseTable is the table name for the Artifact entity. // It exists in this package in order to avoid circular dependency with the "artifact" package. ArtifactsInverseTable = "artifact" // ArtifactsColumn is the table column denoting the artifacts relation/edge. ArtifactsColumn = "artifact_release" // ComponentsTable is the table that holds the components relation/edge. ComponentsTable = "release_component" // ComponentsInverseTable is the table name for the ReleaseComponent entity. // It exists in this package in order to avoid circular dependency with the "releasecomponent" package. ComponentsInverseTable = "release_component" // ComponentsColumn is the table column denoting the components relation/edge. ComponentsColumn = "release_component_release" // VulnerabilitiesTable is the table that holds the vulnerabilities relation/edge. VulnerabilitiesTable = "release_vulnerability" // VulnerabilitiesInverseTable is the table name for the ReleaseVulnerability entity. // It exists in this package in order to avoid circular dependency with the "releasevulnerability" package. VulnerabilitiesInverseTable = "release_vulnerability" // VulnerabilitiesColumn is the table column denoting the vulnerabilities relation/edge. VulnerabilitiesColumn = "release_vulnerability_release" // LicensesTable is the table that holds the licenses relation/edge. LicensesTable = "release_license" // LicensesInverseTable is the table name for the ReleaseLicense entity. // It exists in this package in order to avoid circular dependency with the "releaselicense" package. LicensesInverseTable = "release_license" // LicensesColumn is the table column denoting the licenses relation/edge. LicensesColumn = "release_license_release" // CodeScansTable is the table that holds the code_scans relation/edge. CodeScansTable = "code_scan" // CodeScansInverseTable is the table name for the CodeScan entity. // It exists in this package in order to avoid circular dependency with the "codescan" package. CodeScansInverseTable = "code_scan" // CodeScansColumn is the table column denoting the code_scans relation/edge. CodeScansColumn = "code_scan_release" // TestRunsTable is the table that holds the test_runs relation/edge. TestRunsTable = "test_run" // TestRunsInverseTable is the table name for the TestRun entity. // It exists in this package in order to avoid circular dependency with the "testrun" package. TestRunsInverseTable = "test_run" // TestRunsColumn is the table column denoting the test_runs relation/edge. TestRunsColumn = "test_run_release" // VulnerabilityReviewsTable is the table that holds the vulnerability_reviews relation/edge. The primary key declared below. VulnerabilityReviewsTable = "vulnerability_review_releases" // VulnerabilityReviewsInverseTable is the table name for the VulnerabilityReview entity. // It exists in this package in order to avoid circular dependency with the "vulnerabilityreview" package. VulnerabilityReviewsInverseTable = "vulnerability_review" )
Variables ¶
var ( // SubreleasesPrimaryKey and SubreleasesColumn2 are the table columns denoting the // primary key for the subreleases relation (M2M). SubreleasesPrimaryKey = []string{"release_id", "subrelease_id"} // DependenciesPrimaryKey and DependenciesColumn2 are the table columns denoting the // primary key for the dependencies relation (M2M). DependenciesPrimaryKey = []string{"release_id", "subrelease_id"} // VulnerabilityReviewsPrimaryKey and VulnerabilityReviewsColumn2 are the table columns denoting the // primary key for the vulnerability_reviews relation (M2M). VulnerabilityReviewsPrimaryKey = []string{"vulnerability_review_id", "release_id"} )
var ( Hooks [1]ent.Hook // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // VersionValidator is a validator for the "version" field. It is called by the builders before save. VersionValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/valocode/bubbly/ent/runtime"
var Columns = []string{ FieldID, FieldName, FieldVersion, FieldLabels, }
Columns holds all SQL columns for release fields.
var ForeignKeys = []string{
"git_commit_release",
"repo_head",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "release" table and are not defined as standalone fields in the schema.
Functions ¶
func HasArtifacts ¶
HasArtifacts applies the HasEdge predicate on the "artifacts" edge.
func HasArtifactsWith ¶
HasArtifactsWith applies the HasEdge predicate on the "artifacts" edge with a given conditions (other predicates).
func HasCodeScans ¶
HasCodeScans applies the HasEdge predicate on the "code_scans" edge.
func HasCodeScansWith ¶
HasCodeScansWith applies the HasEdge predicate on the "code_scans" edge with a given conditions (other predicates).
func HasCommitWith ¶
HasCommitWith applies the HasEdge predicate on the "commit" edge with a given conditions (other predicates).
func HasComponents ¶
HasComponents applies the HasEdge predicate on the "components" edge.
func HasComponentsWith ¶
func HasComponentsWith(preds ...predicate.ReleaseComponent) predicate.Release
HasComponentsWith applies the HasEdge predicate on the "components" edge with a given conditions (other predicates).
func HasDependencies ¶
HasDependencies applies the HasEdge predicate on the "dependencies" edge.
func HasDependenciesWith ¶
HasDependenciesWith applies the HasEdge predicate on the "dependencies" edge with a given conditions (other predicates).
func HasHeadOfWith ¶
HasHeadOfWith applies the HasEdge predicate on the "head_of" edge with a given conditions (other predicates).
func HasLicenses ¶
HasLicenses applies the HasEdge predicate on the "licenses" edge.
func HasLicensesWith ¶
func HasLicensesWith(preds ...predicate.ReleaseLicense) predicate.Release
HasLicensesWith applies the HasEdge predicate on the "licenses" edge with a given conditions (other predicates).
func HasLogWith ¶
func HasLogWith(preds ...predicate.ReleaseEntry) predicate.Release
HasLogWith applies the HasEdge predicate on the "log" edge with a given conditions (other predicates).
func HasSubreleases ¶
HasSubreleases applies the HasEdge predicate on the "subreleases" edge.
func HasSubreleasesWith ¶
HasSubreleasesWith applies the HasEdge predicate on the "subreleases" edge with a given conditions (other predicates).
func HasTestRuns ¶
HasTestRuns applies the HasEdge predicate on the "test_runs" edge.
func HasTestRunsWith ¶
HasTestRunsWith applies the HasEdge predicate on the "test_runs" edge with a given conditions (other predicates).
func HasViolations ¶
HasViolations applies the HasEdge predicate on the "violations" edge.
func HasViolationsWith ¶
func HasViolationsWith(preds ...predicate.ReleasePolicyViolation) predicate.Release
HasViolationsWith applies the HasEdge predicate on the "violations" edge with a given conditions (other predicates).
func HasVulnerabilities ¶
HasVulnerabilities applies the HasEdge predicate on the "vulnerabilities" edge.
func HasVulnerabilitiesWith ¶
func HasVulnerabilitiesWith(preds ...predicate.ReleaseVulnerability) predicate.Release
HasVulnerabilitiesWith applies the HasEdge predicate on the "vulnerabilities" edge with a given conditions (other predicates).
func HasVulnerabilityReviews ¶
HasVulnerabilityReviews applies the HasEdge predicate on the "vulnerability_reviews" edge.
func HasVulnerabilityReviewsWith ¶
func HasVulnerabilityReviewsWith(preds ...predicate.VulnerabilityReview) predicate.Release
HasVulnerabilityReviewsWith applies the HasEdge predicate on the "vulnerability_reviews" edge with a given conditions (other predicates).
func LabelsIsNil ¶
LabelsIsNil applies the IsNil predicate on the "labels" field.
func LabelsNotNil ¶
LabelsNotNil applies the NotNil predicate on the "labels" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
This section is empty.