spdxlicense

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the spdxlicense type in the database.
	Label = "spdx_license"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldLicenseID holds the string denoting the license_id field in the database.
	FieldLicenseID = "license_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldReference holds the string denoting the reference field in the database.
	FieldReference = "reference"
	// FieldDetailsURL holds the string denoting the details_url field in the database.
	FieldDetailsURL = "details_url"
	// FieldIsOsiApproved holds the string denoting the is_osi_approved field in the database.
	FieldIsOsiApproved = "is_osi_approved"
	// Table holds the table name of the spdxlicense in the database.
	Table = "spdx_license"
)

Variables

View Source
var (
	Hooks [1]ent.Hook
	// LicenseIDValidator is a validator for the "license_id" field. It is called by the builders before save.
	LicenseIDValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultIsOsiApproved holds the default value on creation for the "is_osi_approved" field.
	DefaultIsOsiApproved bool
)

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"

Columns holds all SQL columns for spdxlicense fields.

Functions

func And

func And(predicates ...predicate.SPDXLicense) predicate.SPDXLicense

And groups predicates with the AND operator between them.

func DetailsURL

func DetailsURL(v string) predicate.SPDXLicense

DetailsURL applies equality check predicate on the "details_url" field. It's identical to DetailsURLEQ.

func DetailsURLContains

func DetailsURLContains(v string) predicate.SPDXLicense

DetailsURLContains applies the Contains predicate on the "details_url" field.

func DetailsURLContainsFold

func DetailsURLContainsFold(v string) predicate.SPDXLicense

DetailsURLContainsFold applies the ContainsFold predicate on the "details_url" field.

func DetailsURLEQ

func DetailsURLEQ(v string) predicate.SPDXLicense

DetailsURLEQ applies the EQ predicate on the "details_url" field.

func DetailsURLEqualFold

func DetailsURLEqualFold(v string) predicate.SPDXLicense

DetailsURLEqualFold applies the EqualFold predicate on the "details_url" field.

func DetailsURLGT

func DetailsURLGT(v string) predicate.SPDXLicense

DetailsURLGT applies the GT predicate on the "details_url" field.

func DetailsURLGTE

func DetailsURLGTE(v string) predicate.SPDXLicense

DetailsURLGTE applies the GTE predicate on the "details_url" field.

func DetailsURLHasPrefix

func DetailsURLHasPrefix(v string) predicate.SPDXLicense

DetailsURLHasPrefix applies the HasPrefix predicate on the "details_url" field.

func DetailsURLHasSuffix

func DetailsURLHasSuffix(v string) predicate.SPDXLicense

DetailsURLHasSuffix applies the HasSuffix predicate on the "details_url" field.

func DetailsURLIn

func DetailsURLIn(vs ...string) predicate.SPDXLicense

DetailsURLIn applies the In predicate on the "details_url" field.

func DetailsURLIsNil

func DetailsURLIsNil() predicate.SPDXLicense

DetailsURLIsNil applies the IsNil predicate on the "details_url" field.

func DetailsURLLT

func DetailsURLLT(v string) predicate.SPDXLicense

DetailsURLLT applies the LT predicate on the "details_url" field.

func DetailsURLLTE

func DetailsURLLTE(v string) predicate.SPDXLicense

DetailsURLLTE applies the LTE predicate on the "details_url" field.

func DetailsURLNEQ

func DetailsURLNEQ(v string) predicate.SPDXLicense

DetailsURLNEQ applies the NEQ predicate on the "details_url" field.

func DetailsURLNotIn

func DetailsURLNotIn(vs ...string) predicate.SPDXLicense

DetailsURLNotIn applies the NotIn predicate on the "details_url" field.

func DetailsURLNotNil

func DetailsURLNotNil() predicate.SPDXLicense

DetailsURLNotNil applies the NotNil predicate on the "details_url" field.

func ID

func ID(id int) predicate.SPDXLicense

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.SPDXLicense

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SPDXLicense

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.SPDXLicense

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.SPDXLicense

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.SPDXLicense

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SPDXLicense

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsOsiApproved

func IsOsiApproved(v bool) predicate.SPDXLicense

IsOsiApproved applies equality check predicate on the "is_osi_approved" field. It's identical to IsOsiApprovedEQ.

func IsOsiApprovedEQ

func IsOsiApprovedEQ(v bool) predicate.SPDXLicense

IsOsiApprovedEQ applies the EQ predicate on the "is_osi_approved" field.

func IsOsiApprovedNEQ

func IsOsiApprovedNEQ(v bool) predicate.SPDXLicense

IsOsiApprovedNEQ applies the NEQ predicate on the "is_osi_approved" field.

func LicenseID

func LicenseID(v string) predicate.SPDXLicense

LicenseID applies equality check predicate on the "license_id" field. It's identical to LicenseIDEQ.

func LicenseIDContains

func LicenseIDContains(v string) predicate.SPDXLicense

LicenseIDContains applies the Contains predicate on the "license_id" field.

func LicenseIDContainsFold

func LicenseIDContainsFold(v string) predicate.SPDXLicense

LicenseIDContainsFold applies the ContainsFold predicate on the "license_id" field.

func LicenseIDEQ

func LicenseIDEQ(v string) predicate.SPDXLicense

LicenseIDEQ applies the EQ predicate on the "license_id" field.

func LicenseIDEqualFold

func LicenseIDEqualFold(v string) predicate.SPDXLicense

LicenseIDEqualFold applies the EqualFold predicate on the "license_id" field.

func LicenseIDGT

func LicenseIDGT(v string) predicate.SPDXLicense

LicenseIDGT applies the GT predicate on the "license_id" field.

func LicenseIDGTE

func LicenseIDGTE(v string) predicate.SPDXLicense

LicenseIDGTE applies the GTE predicate on the "license_id" field.

func LicenseIDHasPrefix

func LicenseIDHasPrefix(v string) predicate.SPDXLicense

LicenseIDHasPrefix applies the HasPrefix predicate on the "license_id" field.

func LicenseIDHasSuffix

func LicenseIDHasSuffix(v string) predicate.SPDXLicense

LicenseIDHasSuffix applies the HasSuffix predicate on the "license_id" field.

func LicenseIDIn

func LicenseIDIn(vs ...string) predicate.SPDXLicense

LicenseIDIn applies the In predicate on the "license_id" field.

func LicenseIDLT

func LicenseIDLT(v string) predicate.SPDXLicense

LicenseIDLT applies the LT predicate on the "license_id" field.

func LicenseIDLTE

func LicenseIDLTE(v string) predicate.SPDXLicense

LicenseIDLTE applies the LTE predicate on the "license_id" field.

func LicenseIDNEQ

func LicenseIDNEQ(v string) predicate.SPDXLicense

LicenseIDNEQ applies the NEQ predicate on the "license_id" field.

func LicenseIDNotIn

func LicenseIDNotIn(vs ...string) predicate.SPDXLicense

LicenseIDNotIn applies the NotIn predicate on the "license_id" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.SPDXLicense

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.SPDXLicense

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.SPDXLicense

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.SPDXLicense

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.SPDXLicense

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.SPDXLicense

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.SPDXLicense

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.SPDXLicense

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.SPDXLicense

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.SPDXLicense

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.SPDXLicense

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.SPDXLicense

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.SPDXLicense

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SPDXLicense) predicate.SPDXLicense

Or groups predicates with the OR operator between them.

func Reference

func Reference(v string) predicate.SPDXLicense

Reference applies equality check predicate on the "reference" field. It's identical to ReferenceEQ.

func ReferenceContains

func ReferenceContains(v string) predicate.SPDXLicense

ReferenceContains applies the Contains predicate on the "reference" field.

func ReferenceContainsFold

func ReferenceContainsFold(v string) predicate.SPDXLicense

ReferenceContainsFold applies the ContainsFold predicate on the "reference" field.

func ReferenceEQ

func ReferenceEQ(v string) predicate.SPDXLicense

ReferenceEQ applies the EQ predicate on the "reference" field.

func ReferenceEqualFold

func ReferenceEqualFold(v string) predicate.SPDXLicense

ReferenceEqualFold applies the EqualFold predicate on the "reference" field.

func ReferenceGT

func ReferenceGT(v string) predicate.SPDXLicense

ReferenceGT applies the GT predicate on the "reference" field.

func ReferenceGTE

func ReferenceGTE(v string) predicate.SPDXLicense

ReferenceGTE applies the GTE predicate on the "reference" field.

func ReferenceHasPrefix

func ReferenceHasPrefix(v string) predicate.SPDXLicense

ReferenceHasPrefix applies the HasPrefix predicate on the "reference" field.

func ReferenceHasSuffix

func ReferenceHasSuffix(v string) predicate.SPDXLicense

ReferenceHasSuffix applies the HasSuffix predicate on the "reference" field.

func ReferenceIn

func ReferenceIn(vs ...string) predicate.SPDXLicense

ReferenceIn applies the In predicate on the "reference" field.

func ReferenceIsNil

func ReferenceIsNil() predicate.SPDXLicense

ReferenceIsNil applies the IsNil predicate on the "reference" field.

func ReferenceLT

func ReferenceLT(v string) predicate.SPDXLicense

ReferenceLT applies the LT predicate on the "reference" field.

func ReferenceLTE

func ReferenceLTE(v string) predicate.SPDXLicense

ReferenceLTE applies the LTE predicate on the "reference" field.

func ReferenceNEQ

func ReferenceNEQ(v string) predicate.SPDXLicense

ReferenceNEQ applies the NEQ predicate on the "reference" field.

func ReferenceNotIn

func ReferenceNotIn(vs ...string) predicate.SPDXLicense

ReferenceNotIn applies the NotIn predicate on the "reference" field.

func ReferenceNotNil

func ReferenceNotNil() predicate.SPDXLicense

ReferenceNotNil applies the NotNil predicate on the "reference" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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