license

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the license type in the database.
	Label = "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"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeSpdx holds the string denoting the spdx edge name in mutations.
	EdgeSpdx = "spdx"
	// EdgeComponents holds the string denoting the components edge name in mutations.
	EdgeComponents = "components"
	// EdgeInstances holds the string denoting the instances edge name in mutations.
	EdgeInstances = "instances"
	// Table holds the table name of the license in the database.
	Table = "license"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "license"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organization"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "license_owner"
	// SpdxTable is the table that holds the spdx relation/edge.
	SpdxTable = "license"
	// SpdxInverseTable is the table name for the SPDXLicense entity.
	// It exists in this package in order to avoid circular dependency with the "spdxlicense" package.
	SpdxInverseTable = "spdx_license"
	// SpdxColumn is the table column denoting the spdx relation/edge.
	SpdxColumn = "license_spdx"
	// ComponentsTable is the table that holds the components relation/edge. The primary key declared below.
	ComponentsTable = "component_licenses"
	// ComponentsInverseTable is the table name for the Component entity.
	// It exists in this package in order to avoid circular dependency with the "component" package.
	ComponentsInverseTable = "component"
	// InstancesTable is the table that holds the instances relation/edge.
	InstancesTable = "release_license"
	// InstancesInverseTable is the table name for the ReleaseLicense entity.
	// It exists in this package in order to avoid circular dependency with the "releaselicense" package.
	InstancesInverseTable = "release_license"
	// InstancesColumn is the table column denoting the instances relation/edge.
	InstancesColumn = "release_license_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
)

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 license fields.

View Source
var (
	// ComponentsPrimaryKey and ComponentsColumn2 are the table columns denoting the
	// primary key for the components relation (M2M).
	ComponentsPrimaryKey = []string{"component_id", "license_id"}
)
View Source
var ForeignKeys = []string{
	"license_owner",
	"license_spdx",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "license" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.License) predicate.License

And groups predicates with the AND operator between them.

func HasComponents

func HasComponents() predicate.License

HasComponents applies the HasEdge predicate on the "components" edge.

func HasComponentsWith

func HasComponentsWith(preds ...predicate.Component) predicate.License

HasComponentsWith applies the HasEdge predicate on the "components" edge with a given conditions (other predicates).

func HasInstances

func HasInstances() predicate.License

HasInstances applies the HasEdge predicate on the "instances" edge.

func HasInstancesWith

func HasInstancesWith(preds ...predicate.ReleaseLicense) predicate.License

HasInstancesWith applies the HasEdge predicate on the "instances" edge with a given conditions (other predicates).

func HasOwner

func HasOwner() predicate.License

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.License

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasSpdx

func HasSpdx() predicate.License

HasSpdx applies the HasEdge predicate on the "spdx" edge.

func HasSpdxWith

func HasSpdxWith(preds ...predicate.SPDXLicense) predicate.License

HasSpdxWith applies the HasEdge predicate on the "spdx" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.License

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.License

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.License

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.License

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.License

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.License

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.License

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LicenseID

func LicenseID(v string) predicate.License

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

func LicenseIDContains

func LicenseIDContains(v string) predicate.License

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

func LicenseIDContainsFold

func LicenseIDContainsFold(v string) predicate.License

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

func LicenseIDEQ

func LicenseIDEQ(v string) predicate.License

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

func LicenseIDEqualFold

func LicenseIDEqualFold(v string) predicate.License

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

func LicenseIDGT

func LicenseIDGT(v string) predicate.License

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

func LicenseIDGTE

func LicenseIDGTE(v string) predicate.License

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

func LicenseIDHasPrefix

func LicenseIDHasPrefix(v string) predicate.License

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

func LicenseIDHasSuffix

func LicenseIDHasSuffix(v string) predicate.License

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

func LicenseIDIn

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

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

func LicenseIDLT

func LicenseIDLT(v string) predicate.License

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

func LicenseIDLTE

func LicenseIDLTE(v string) predicate.License

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

func LicenseIDNEQ

func LicenseIDNEQ(v string) predicate.License

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

func LicenseIDNotIn

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

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

func Name

func Name(v string) predicate.License

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

func NameContains

func NameContains(v string) predicate.License

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

func NameContainsFold

func NameContainsFold(v string) predicate.License

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

func NameEQ

func NameEQ(v string) predicate.License

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

func NameEqualFold

func NameEqualFold(v string) predicate.License

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

func NameGT

func NameGT(v string) predicate.License

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

func NameGTE

func NameGTE(v string) predicate.License

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.License

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.License

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

func NameIn

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

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

func NameIsNil

func NameIsNil() predicate.License

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.License

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

func NameLTE

func NameLTE(v string) predicate.License

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

func NameNEQ

func NameNEQ(v string) predicate.License

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

func NameNotIn

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

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

func NameNotNil

func NameNotNil() predicate.License

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.License) predicate.License

Or groups predicates with the OR operator between them.

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