Documentation ¶
Index ¶
- Constants
- Variables
- func AggregateScore(v float64) predicate.Scorecard
- func AggregateScoreEQ(v float64) predicate.Scorecard
- func AggregateScoreGT(v float64) predicate.Scorecard
- func AggregateScoreGTE(v float64) predicate.Scorecard
- func AggregateScoreIn(vs ...float64) predicate.Scorecard
- func AggregateScoreLT(v float64) predicate.Scorecard
- func AggregateScoreLTE(v float64) predicate.Scorecard
- func AggregateScoreNEQ(v float64) predicate.Scorecard
- func AggregateScoreNotIn(vs ...float64) predicate.Scorecard
- func And(predicates ...predicate.Scorecard) predicate.Scorecard
- func Collector(v string) predicate.Scorecard
- func CollectorContains(v string) predicate.Scorecard
- func CollectorContainsFold(v string) predicate.Scorecard
- func CollectorEQ(v string) predicate.Scorecard
- func CollectorEqualFold(v string) predicate.Scorecard
- func CollectorGT(v string) predicate.Scorecard
- func CollectorGTE(v string) predicate.Scorecard
- func CollectorHasPrefix(v string) predicate.Scorecard
- func CollectorHasSuffix(v string) predicate.Scorecard
- func CollectorIn(vs ...string) predicate.Scorecard
- func CollectorLT(v string) predicate.Scorecard
- func CollectorLTE(v string) predicate.Scorecard
- func CollectorNEQ(v string) predicate.Scorecard
- func CollectorNotIn(vs ...string) predicate.Scorecard
- func HasCertifications() predicate.Scorecard
- func HasCertificationsWith(preds ...predicate.CertifyScorecard) predicate.Scorecard
- func ID(id int) predicate.Scorecard
- func IDEQ(id int) predicate.Scorecard
- func IDGT(id int) predicate.Scorecard
- func IDGTE(id int) predicate.Scorecard
- func IDIn(ids ...int) predicate.Scorecard
- func IDLT(id int) predicate.Scorecard
- func IDLTE(id int) predicate.Scorecard
- func IDNEQ(id int) predicate.Scorecard
- func IDNotIn(ids ...int) predicate.Scorecard
- func Not(p predicate.Scorecard) predicate.Scorecard
- func Or(predicates ...predicate.Scorecard) predicate.Scorecard
- func Origin(v string) predicate.Scorecard
- func OriginContains(v string) predicate.Scorecard
- func OriginContainsFold(v string) predicate.Scorecard
- func OriginEQ(v string) predicate.Scorecard
- func OriginEqualFold(v string) predicate.Scorecard
- func OriginGT(v string) predicate.Scorecard
- func OriginGTE(v string) predicate.Scorecard
- func OriginHasPrefix(v string) predicate.Scorecard
- func OriginHasSuffix(v string) predicate.Scorecard
- func OriginIn(vs ...string) predicate.Scorecard
- func OriginLT(v string) predicate.Scorecard
- func OriginLTE(v string) predicate.Scorecard
- func OriginNEQ(v string) predicate.Scorecard
- func OriginNotIn(vs ...string) predicate.Scorecard
- func ScorecardCommit(v string) predicate.Scorecard
- func ScorecardCommitContains(v string) predicate.Scorecard
- func ScorecardCommitContainsFold(v string) predicate.Scorecard
- func ScorecardCommitEQ(v string) predicate.Scorecard
- func ScorecardCommitEqualFold(v string) predicate.Scorecard
- func ScorecardCommitGT(v string) predicate.Scorecard
- func ScorecardCommitGTE(v string) predicate.Scorecard
- func ScorecardCommitHasPrefix(v string) predicate.Scorecard
- func ScorecardCommitHasSuffix(v string) predicate.Scorecard
- func ScorecardCommitIn(vs ...string) predicate.Scorecard
- func ScorecardCommitLT(v string) predicate.Scorecard
- func ScorecardCommitLTE(v string) predicate.Scorecard
- func ScorecardCommitNEQ(v string) predicate.Scorecard
- func ScorecardCommitNotIn(vs ...string) predicate.Scorecard
- func ScorecardVersion(v string) predicate.Scorecard
- func ScorecardVersionContains(v string) predicate.Scorecard
- func ScorecardVersionContainsFold(v string) predicate.Scorecard
- func ScorecardVersionEQ(v string) predicate.Scorecard
- func ScorecardVersionEqualFold(v string) predicate.Scorecard
- func ScorecardVersionGT(v string) predicate.Scorecard
- func ScorecardVersionGTE(v string) predicate.Scorecard
- func ScorecardVersionHasPrefix(v string) predicate.Scorecard
- func ScorecardVersionHasSuffix(v string) predicate.Scorecard
- func ScorecardVersionIn(vs ...string) predicate.Scorecard
- func ScorecardVersionLT(v string) predicate.Scorecard
- func ScorecardVersionLTE(v string) predicate.Scorecard
- func ScorecardVersionNEQ(v string) predicate.Scorecard
- func ScorecardVersionNotIn(vs ...string) predicate.Scorecard
- func TimeScanned(v time.Time) predicate.Scorecard
- func TimeScannedEQ(v time.Time) predicate.Scorecard
- func TimeScannedGT(v time.Time) predicate.Scorecard
- func TimeScannedGTE(v time.Time) predicate.Scorecard
- func TimeScannedIn(vs ...time.Time) predicate.Scorecard
- func TimeScannedLT(v time.Time) predicate.Scorecard
- func TimeScannedLTE(v time.Time) predicate.Scorecard
- func TimeScannedNEQ(v time.Time) predicate.Scorecard
- func TimeScannedNotIn(vs ...time.Time) predicate.Scorecard
- func ValidColumn(column string) bool
- type OrderOption
- func ByAggregateScore(opts ...sql.OrderTermOption) OrderOption
- func ByCertifications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCertificationsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCollector(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrigin(opts ...sql.OrderTermOption) OrderOption
- func ByScorecardCommit(opts ...sql.OrderTermOption) OrderOption
- func ByScorecardVersion(opts ...sql.OrderTermOption) OrderOption
- func ByTimeScanned(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the scorecard type in the database. Label = "scorecard" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChecks holds the string denoting the checks field in the database. FieldChecks = "checks" // FieldAggregateScore holds the string denoting the aggregate_score field in the database. FieldAggregateScore = "aggregate_score" // FieldTimeScanned holds the string denoting the time_scanned field in the database. FieldTimeScanned = "time_scanned" // FieldScorecardVersion holds the string denoting the scorecard_version field in the database. FieldScorecardVersion = "scorecard_version" // FieldScorecardCommit holds the string denoting the scorecard_commit field in the database. FieldScorecardCommit = "scorecard_commit" // FieldOrigin holds the string denoting the origin field in the database. FieldOrigin = "origin" // FieldCollector holds the string denoting the collector field in the database. FieldCollector = "collector" // EdgeCertifications holds the string denoting the certifications edge name in mutations. EdgeCertifications = "certifications" // Table holds the table name of the scorecard in the database. Table = "scorecards" // CertificationsTable is the table that holds the certifications relation/edge. CertificationsTable = "certify_scorecards" // CertificationsInverseTable is the table name for the CertifyScorecard entity. // It exists in this package in order to avoid circular dependency with the "certifyscorecard" package. CertificationsInverseTable = "certify_scorecards" // CertificationsColumn is the table column denoting the certifications relation/edge. CertificationsColumn = "scorecard_id" )
Variables ¶
var ( // DefaultAggregateScore holds the default value on creation for the "aggregate_score" field. DefaultAggregateScore float64 // DefaultTimeScanned holds the default value on creation for the "time_scanned" field. DefaultTimeScanned func() time.Time )
var Columns = []string{ FieldID, FieldChecks, FieldAggregateScore, FieldTimeScanned, FieldScorecardVersion, FieldScorecardCommit, FieldOrigin, FieldCollector, }
Columns holds all SQL columns for scorecard fields.
Functions ¶
func AggregateScore ¶
AggregateScore applies equality check predicate on the "aggregate_score" field. It's identical to AggregateScoreEQ.
func AggregateScoreEQ ¶
AggregateScoreEQ applies the EQ predicate on the "aggregate_score" field.
func AggregateScoreGT ¶
AggregateScoreGT applies the GT predicate on the "aggregate_score" field.
func AggregateScoreGTE ¶
AggregateScoreGTE applies the GTE predicate on the "aggregate_score" field.
func AggregateScoreIn ¶
AggregateScoreIn applies the In predicate on the "aggregate_score" field.
func AggregateScoreLT ¶
AggregateScoreLT applies the LT predicate on the "aggregate_score" field.
func AggregateScoreLTE ¶
AggregateScoreLTE applies the LTE predicate on the "aggregate_score" field.
func AggregateScoreNEQ ¶
AggregateScoreNEQ applies the NEQ predicate on the "aggregate_score" field.
func AggregateScoreNotIn ¶
AggregateScoreNotIn applies the NotIn predicate on the "aggregate_score" field.
func Collector ¶
Collector applies equality check predicate on the "collector" field. It's identical to CollectorEQ.
func CollectorContains ¶
CollectorContains applies the Contains predicate on the "collector" field.
func CollectorContainsFold ¶
CollectorContainsFold applies the ContainsFold predicate on the "collector" field.
func CollectorEQ ¶
CollectorEQ applies the EQ predicate on the "collector" field.
func CollectorEqualFold ¶
CollectorEqualFold applies the EqualFold predicate on the "collector" field.
func CollectorGT ¶
CollectorGT applies the GT predicate on the "collector" field.
func CollectorGTE ¶
CollectorGTE applies the GTE predicate on the "collector" field.
func CollectorHasPrefix ¶
CollectorHasPrefix applies the HasPrefix predicate on the "collector" field.
func CollectorHasSuffix ¶
CollectorHasSuffix applies the HasSuffix predicate on the "collector" field.
func CollectorIn ¶
CollectorIn applies the In predicate on the "collector" field.
func CollectorLT ¶
CollectorLT applies the LT predicate on the "collector" field.
func CollectorLTE ¶
CollectorLTE applies the LTE predicate on the "collector" field.
func CollectorNEQ ¶
CollectorNEQ applies the NEQ predicate on the "collector" field.
func CollectorNotIn ¶
CollectorNotIn applies the NotIn predicate on the "collector" field.
func HasCertifications ¶
HasCertifications applies the HasEdge predicate on the "certifications" edge.
func HasCertificationsWith ¶
func HasCertificationsWith(preds ...predicate.CertifyScorecard) predicate.Scorecard
HasCertificationsWith applies the HasEdge predicate on the "certifications" edge with a given conditions (other predicates).
func Origin ¶
Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.
func OriginContains ¶
OriginContains applies the Contains predicate on the "origin" field.
func OriginContainsFold ¶
OriginContainsFold applies the ContainsFold predicate on the "origin" field.
func OriginEqualFold ¶
OriginEqualFold applies the EqualFold predicate on the "origin" field.
func OriginHasPrefix ¶
OriginHasPrefix applies the HasPrefix predicate on the "origin" field.
func OriginHasSuffix ¶
OriginHasSuffix applies the HasSuffix predicate on the "origin" field.
func OriginNotIn ¶
OriginNotIn applies the NotIn predicate on the "origin" field.
func ScorecardCommit ¶
ScorecardCommit applies equality check predicate on the "scorecard_commit" field. It's identical to ScorecardCommitEQ.
func ScorecardCommitContains ¶
ScorecardCommitContains applies the Contains predicate on the "scorecard_commit" field.
func ScorecardCommitContainsFold ¶
ScorecardCommitContainsFold applies the ContainsFold predicate on the "scorecard_commit" field.
func ScorecardCommitEQ ¶
ScorecardCommitEQ applies the EQ predicate on the "scorecard_commit" field.
func ScorecardCommitEqualFold ¶
ScorecardCommitEqualFold applies the EqualFold predicate on the "scorecard_commit" field.
func ScorecardCommitGT ¶
ScorecardCommitGT applies the GT predicate on the "scorecard_commit" field.
func ScorecardCommitGTE ¶
ScorecardCommitGTE applies the GTE predicate on the "scorecard_commit" field.
func ScorecardCommitHasPrefix ¶
ScorecardCommitHasPrefix applies the HasPrefix predicate on the "scorecard_commit" field.
func ScorecardCommitHasSuffix ¶
ScorecardCommitHasSuffix applies the HasSuffix predicate on the "scorecard_commit" field.
func ScorecardCommitIn ¶
ScorecardCommitIn applies the In predicate on the "scorecard_commit" field.
func ScorecardCommitLT ¶
ScorecardCommitLT applies the LT predicate on the "scorecard_commit" field.
func ScorecardCommitLTE ¶
ScorecardCommitLTE applies the LTE predicate on the "scorecard_commit" field.
func ScorecardCommitNEQ ¶
ScorecardCommitNEQ applies the NEQ predicate on the "scorecard_commit" field.
func ScorecardCommitNotIn ¶
ScorecardCommitNotIn applies the NotIn predicate on the "scorecard_commit" field.
func ScorecardVersion ¶
ScorecardVersion applies equality check predicate on the "scorecard_version" field. It's identical to ScorecardVersionEQ.
func ScorecardVersionContains ¶
ScorecardVersionContains applies the Contains predicate on the "scorecard_version" field.
func ScorecardVersionContainsFold ¶
ScorecardVersionContainsFold applies the ContainsFold predicate on the "scorecard_version" field.
func ScorecardVersionEQ ¶
ScorecardVersionEQ applies the EQ predicate on the "scorecard_version" field.
func ScorecardVersionEqualFold ¶
ScorecardVersionEqualFold applies the EqualFold predicate on the "scorecard_version" field.
func ScorecardVersionGT ¶
ScorecardVersionGT applies the GT predicate on the "scorecard_version" field.
func ScorecardVersionGTE ¶
ScorecardVersionGTE applies the GTE predicate on the "scorecard_version" field.
func ScorecardVersionHasPrefix ¶
ScorecardVersionHasPrefix applies the HasPrefix predicate on the "scorecard_version" field.
func ScorecardVersionHasSuffix ¶
ScorecardVersionHasSuffix applies the HasSuffix predicate on the "scorecard_version" field.
func ScorecardVersionIn ¶
ScorecardVersionIn applies the In predicate on the "scorecard_version" field.
func ScorecardVersionLT ¶
ScorecardVersionLT applies the LT predicate on the "scorecard_version" field.
func ScorecardVersionLTE ¶
ScorecardVersionLTE applies the LTE predicate on the "scorecard_version" field.
func ScorecardVersionNEQ ¶
ScorecardVersionNEQ applies the NEQ predicate on the "scorecard_version" field.
func ScorecardVersionNotIn ¶
ScorecardVersionNotIn applies the NotIn predicate on the "scorecard_version" field.
func TimeScanned ¶
TimeScanned applies equality check predicate on the "time_scanned" field. It's identical to TimeScannedEQ.
func TimeScannedEQ ¶
TimeScannedEQ applies the EQ predicate on the "time_scanned" field.
func TimeScannedGT ¶
TimeScannedGT applies the GT predicate on the "time_scanned" field.
func TimeScannedGTE ¶
TimeScannedGTE applies the GTE predicate on the "time_scanned" field.
func TimeScannedIn ¶
TimeScannedIn applies the In predicate on the "time_scanned" field.
func TimeScannedLT ¶
TimeScannedLT applies the LT predicate on the "time_scanned" field.
func TimeScannedLTE ¶
TimeScannedLTE applies the LTE predicate on the "time_scanned" field.
func TimeScannedNEQ ¶
TimeScannedNEQ applies the NEQ predicate on the "time_scanned" field.
func TimeScannedNotIn ¶
TimeScannedNotIn applies the NotIn predicate on the "time_scanned" 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 Scorecard queries.
func ByAggregateScore ¶
func ByAggregateScore(opts ...sql.OrderTermOption) OrderOption
ByAggregateScore orders the results by the aggregate_score field.
func ByCertifications ¶
func ByCertifications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCertifications orders the results by certifications terms.
func ByCertificationsCount ¶
func ByCertificationsCount(opts ...sql.OrderTermOption) OrderOption
ByCertificationsCount orders the results by certifications count.
func ByCollector ¶
func ByCollector(opts ...sql.OrderTermOption) OrderOption
ByCollector orders the results by the collector field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrigin ¶
func ByOrigin(opts ...sql.OrderTermOption) OrderOption
ByOrigin orders the results by the origin field.
func ByScorecardCommit ¶
func ByScorecardCommit(opts ...sql.OrderTermOption) OrderOption
ByScorecardCommit orders the results by the scorecard_commit field.
func ByScorecardVersion ¶
func ByScorecardVersion(opts ...sql.OrderTermOption) OrderOption
ByScorecardVersion orders the results by the scorecard_version field.
func ByTimeScanned ¶
func ByTimeScanned(opts ...sql.OrderTermOption) OrderOption
ByTimeScanned orders the results by the time_scanned field.