scorecard

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for scorecard fields.

Functions

func AggregateScore

func AggregateScore(v float64) predicate.Scorecard

AggregateScore applies equality check predicate on the "aggregate_score" field. It's identical to AggregateScoreEQ.

func AggregateScoreEQ

func AggregateScoreEQ(v float64) predicate.Scorecard

AggregateScoreEQ applies the EQ predicate on the "aggregate_score" field.

func AggregateScoreGT

func AggregateScoreGT(v float64) predicate.Scorecard

AggregateScoreGT applies the GT predicate on the "aggregate_score" field.

func AggregateScoreGTE

func AggregateScoreGTE(v float64) predicate.Scorecard

AggregateScoreGTE applies the GTE predicate on the "aggregate_score" field.

func AggregateScoreIn

func AggregateScoreIn(vs ...float64) predicate.Scorecard

AggregateScoreIn applies the In predicate on the "aggregate_score" field.

func AggregateScoreLT

func AggregateScoreLT(v float64) predicate.Scorecard

AggregateScoreLT applies the LT predicate on the "aggregate_score" field.

func AggregateScoreLTE

func AggregateScoreLTE(v float64) predicate.Scorecard

AggregateScoreLTE applies the LTE predicate on the "aggregate_score" field.

func AggregateScoreNEQ

func AggregateScoreNEQ(v float64) predicate.Scorecard

AggregateScoreNEQ applies the NEQ predicate on the "aggregate_score" field.

func AggregateScoreNotIn

func AggregateScoreNotIn(vs ...float64) predicate.Scorecard

AggregateScoreNotIn applies the NotIn predicate on the "aggregate_score" field.

func And

func And(predicates ...predicate.Scorecard) predicate.Scorecard

And groups predicates with the AND operator between them.

func Collector

func Collector(v string) predicate.Scorecard

Collector applies equality check predicate on the "collector" field. It's identical to CollectorEQ.

func CollectorContains

func CollectorContains(v string) predicate.Scorecard

CollectorContains applies the Contains predicate on the "collector" field.

func CollectorContainsFold

func CollectorContainsFold(v string) predicate.Scorecard

CollectorContainsFold applies the ContainsFold predicate on the "collector" field.

func CollectorEQ

func CollectorEQ(v string) predicate.Scorecard

CollectorEQ applies the EQ predicate on the "collector" field.

func CollectorEqualFold

func CollectorEqualFold(v string) predicate.Scorecard

CollectorEqualFold applies the EqualFold predicate on the "collector" field.

func CollectorGT

func CollectorGT(v string) predicate.Scorecard

CollectorGT applies the GT predicate on the "collector" field.

func CollectorGTE

func CollectorGTE(v string) predicate.Scorecard

CollectorGTE applies the GTE predicate on the "collector" field.

func CollectorHasPrefix

func CollectorHasPrefix(v string) predicate.Scorecard

CollectorHasPrefix applies the HasPrefix predicate on the "collector" field.

func CollectorHasSuffix

func CollectorHasSuffix(v string) predicate.Scorecard

CollectorHasSuffix applies the HasSuffix predicate on the "collector" field.

func CollectorIn

func CollectorIn(vs ...string) predicate.Scorecard

CollectorIn applies the In predicate on the "collector" field.

func CollectorLT

func CollectorLT(v string) predicate.Scorecard

CollectorLT applies the LT predicate on the "collector" field.

func CollectorLTE

func CollectorLTE(v string) predicate.Scorecard

CollectorLTE applies the LTE predicate on the "collector" field.

func CollectorNEQ

func CollectorNEQ(v string) predicate.Scorecard

CollectorNEQ applies the NEQ predicate on the "collector" field.

func CollectorNotIn

func CollectorNotIn(vs ...string) predicate.Scorecard

CollectorNotIn applies the NotIn predicate on the "collector" field.

func HasCertifications

func HasCertifications() predicate.Scorecard

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 ID

func ID(id int) predicate.Scorecard

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Scorecard

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Scorecard

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Scorecard

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Scorecard

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Scorecard

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Scorecard

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Scorecard

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Scorecard

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Scorecard) predicate.Scorecard

Or groups predicates with the OR operator between them.

func Origin

func Origin(v string) predicate.Scorecard

Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ.

func OriginContains

func OriginContains(v string) predicate.Scorecard

OriginContains applies the Contains predicate on the "origin" field.

func OriginContainsFold

func OriginContainsFold(v string) predicate.Scorecard

OriginContainsFold applies the ContainsFold predicate on the "origin" field.

func OriginEQ

func OriginEQ(v string) predicate.Scorecard

OriginEQ applies the EQ predicate on the "origin" field.

func OriginEqualFold

func OriginEqualFold(v string) predicate.Scorecard

OriginEqualFold applies the EqualFold predicate on the "origin" field.

func OriginGT

func OriginGT(v string) predicate.Scorecard

OriginGT applies the GT predicate on the "origin" field.

func OriginGTE

func OriginGTE(v string) predicate.Scorecard

OriginGTE applies the GTE predicate on the "origin" field.

func OriginHasPrefix

func OriginHasPrefix(v string) predicate.Scorecard

OriginHasPrefix applies the HasPrefix predicate on the "origin" field.

func OriginHasSuffix

func OriginHasSuffix(v string) predicate.Scorecard

OriginHasSuffix applies the HasSuffix predicate on the "origin" field.

func OriginIn

func OriginIn(vs ...string) predicate.Scorecard

OriginIn applies the In predicate on the "origin" field.

func OriginLT

func OriginLT(v string) predicate.Scorecard

OriginLT applies the LT predicate on the "origin" field.

func OriginLTE

func OriginLTE(v string) predicate.Scorecard

OriginLTE applies the LTE predicate on the "origin" field.

func OriginNEQ

func OriginNEQ(v string) predicate.Scorecard

OriginNEQ applies the NEQ predicate on the "origin" field.

func OriginNotIn

func OriginNotIn(vs ...string) predicate.Scorecard

OriginNotIn applies the NotIn predicate on the "origin" field.

func ScorecardCommit

func ScorecardCommit(v string) predicate.Scorecard

ScorecardCommit applies equality check predicate on the "scorecard_commit" field. It's identical to ScorecardCommitEQ.

func ScorecardCommitContains

func ScorecardCommitContains(v string) predicate.Scorecard

ScorecardCommitContains applies the Contains predicate on the "scorecard_commit" field.

func ScorecardCommitContainsFold

func ScorecardCommitContainsFold(v string) predicate.Scorecard

ScorecardCommitContainsFold applies the ContainsFold predicate on the "scorecard_commit" field.

func ScorecardCommitEQ

func ScorecardCommitEQ(v string) predicate.Scorecard

ScorecardCommitEQ applies the EQ predicate on the "scorecard_commit" field.

func ScorecardCommitEqualFold

func ScorecardCommitEqualFold(v string) predicate.Scorecard

ScorecardCommitEqualFold applies the EqualFold predicate on the "scorecard_commit" field.

func ScorecardCommitGT

func ScorecardCommitGT(v string) predicate.Scorecard

ScorecardCommitGT applies the GT predicate on the "scorecard_commit" field.

func ScorecardCommitGTE

func ScorecardCommitGTE(v string) predicate.Scorecard

ScorecardCommitGTE applies the GTE predicate on the "scorecard_commit" field.

func ScorecardCommitHasPrefix

func ScorecardCommitHasPrefix(v string) predicate.Scorecard

ScorecardCommitHasPrefix applies the HasPrefix predicate on the "scorecard_commit" field.

func ScorecardCommitHasSuffix

func ScorecardCommitHasSuffix(v string) predicate.Scorecard

ScorecardCommitHasSuffix applies the HasSuffix predicate on the "scorecard_commit" field.

func ScorecardCommitIn

func ScorecardCommitIn(vs ...string) predicate.Scorecard

ScorecardCommitIn applies the In predicate on the "scorecard_commit" field.

func ScorecardCommitLT

func ScorecardCommitLT(v string) predicate.Scorecard

ScorecardCommitLT applies the LT predicate on the "scorecard_commit" field.

func ScorecardCommitLTE

func ScorecardCommitLTE(v string) predicate.Scorecard

ScorecardCommitLTE applies the LTE predicate on the "scorecard_commit" field.

func ScorecardCommitNEQ

func ScorecardCommitNEQ(v string) predicate.Scorecard

ScorecardCommitNEQ applies the NEQ predicate on the "scorecard_commit" field.

func ScorecardCommitNotIn

func ScorecardCommitNotIn(vs ...string) predicate.Scorecard

ScorecardCommitNotIn applies the NotIn predicate on the "scorecard_commit" field.

func ScorecardVersion

func ScorecardVersion(v string) predicate.Scorecard

ScorecardVersion applies equality check predicate on the "scorecard_version" field. It's identical to ScorecardVersionEQ.

func ScorecardVersionContains

func ScorecardVersionContains(v string) predicate.Scorecard

ScorecardVersionContains applies the Contains predicate on the "scorecard_version" field.

func ScorecardVersionContainsFold

func ScorecardVersionContainsFold(v string) predicate.Scorecard

ScorecardVersionContainsFold applies the ContainsFold predicate on the "scorecard_version" field.

func ScorecardVersionEQ

func ScorecardVersionEQ(v string) predicate.Scorecard

ScorecardVersionEQ applies the EQ predicate on the "scorecard_version" field.

func ScorecardVersionEqualFold

func ScorecardVersionEqualFold(v string) predicate.Scorecard

ScorecardVersionEqualFold applies the EqualFold predicate on the "scorecard_version" field.

func ScorecardVersionGT

func ScorecardVersionGT(v string) predicate.Scorecard

ScorecardVersionGT applies the GT predicate on the "scorecard_version" field.

func ScorecardVersionGTE

func ScorecardVersionGTE(v string) predicate.Scorecard

ScorecardVersionGTE applies the GTE predicate on the "scorecard_version" field.

func ScorecardVersionHasPrefix

func ScorecardVersionHasPrefix(v string) predicate.Scorecard

ScorecardVersionHasPrefix applies the HasPrefix predicate on the "scorecard_version" field.

func ScorecardVersionHasSuffix

func ScorecardVersionHasSuffix(v string) predicate.Scorecard

ScorecardVersionHasSuffix applies the HasSuffix predicate on the "scorecard_version" field.

func ScorecardVersionIn

func ScorecardVersionIn(vs ...string) predicate.Scorecard

ScorecardVersionIn applies the In predicate on the "scorecard_version" field.

func ScorecardVersionLT

func ScorecardVersionLT(v string) predicate.Scorecard

ScorecardVersionLT applies the LT predicate on the "scorecard_version" field.

func ScorecardVersionLTE

func ScorecardVersionLTE(v string) predicate.Scorecard

ScorecardVersionLTE applies the LTE predicate on the "scorecard_version" field.

func ScorecardVersionNEQ

func ScorecardVersionNEQ(v string) predicate.Scorecard

ScorecardVersionNEQ applies the NEQ predicate on the "scorecard_version" field.

func ScorecardVersionNotIn

func ScorecardVersionNotIn(vs ...string) predicate.Scorecard

ScorecardVersionNotIn applies the NotIn predicate on the "scorecard_version" field.

func TimeScanned

func TimeScanned(v time.Time) predicate.Scorecard

TimeScanned applies equality check predicate on the "time_scanned" field. It's identical to TimeScannedEQ.

func TimeScannedEQ

func TimeScannedEQ(v time.Time) predicate.Scorecard

TimeScannedEQ applies the EQ predicate on the "time_scanned" field.

func TimeScannedGT

func TimeScannedGT(v time.Time) predicate.Scorecard

TimeScannedGT applies the GT predicate on the "time_scanned" field.

func TimeScannedGTE

func TimeScannedGTE(v time.Time) predicate.Scorecard

TimeScannedGTE applies the GTE predicate on the "time_scanned" field.

func TimeScannedIn

func TimeScannedIn(vs ...time.Time) predicate.Scorecard

TimeScannedIn applies the In predicate on the "time_scanned" field.

func TimeScannedLT

func TimeScannedLT(v time.Time) predicate.Scorecard

TimeScannedLT applies the LT predicate on the "time_scanned" field.

func TimeScannedLTE

func TimeScannedLTE(v time.Time) predicate.Scorecard

TimeScannedLTE applies the LTE predicate on the "time_scanned" field.

func TimeScannedNEQ

func TimeScannedNEQ(v time.Time) predicate.Scorecard

TimeScannedNEQ applies the NEQ predicate on the "time_scanned" field.

func TimeScannedNotIn

func TimeScannedNotIn(vs ...time.Time) predicate.Scorecard

TimeScannedNotIn applies the NotIn predicate on the "time_scanned" 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 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.

Jump to

Keyboard shortcuts

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