releasecomponent

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the releasecomponent type in the database.
	Label = "release_component"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// EdgeRelease holds the string denoting the release edge name in mutations.
	EdgeRelease = "release"
	// EdgeScans holds the string denoting the scans edge name in mutations.
	EdgeScans = "scans"
	// EdgeComponent holds the string denoting the component edge name in mutations.
	EdgeComponent = "component"
	// 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"
	// Table holds the table name of the releasecomponent in the database.
	Table = "release_component"
	// ReleaseTable is the table that holds the release relation/edge.
	ReleaseTable = "release_component"
	// ReleaseInverseTable is the table name for the Release entity.
	// It exists in this package in order to avoid circular dependency with the "release" package.
	ReleaseInverseTable = "release"
	// ReleaseColumn is the table column denoting the release relation/edge.
	ReleaseColumn = "release_component_release"
	// ScansTable is the table that holds the scans relation/edge. The primary key declared below.
	ScansTable = "release_component_scans"
	// ScansInverseTable is the table name for the CodeScan entity.
	// It exists in this package in order to avoid circular dependency with the "codescan" package.
	ScansInverseTable = "code_scan"
	// ComponentTable is the table that holds the component relation/edge.
	ComponentTable = "release_component"
	// ComponentInverseTable is the table name for the Component entity.
	// It exists in this package in order to avoid circular dependency with the "component" package.
	ComponentInverseTable = "component"
	// ComponentColumn is the table column denoting the component relation/edge.
	ComponentColumn = "release_component_component"
	// 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_component"
	// 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_component"
)
View Source
const DefaultType = TypeEmbedded

TypeEmbedded is the default value of the Type enum.

Variables

View Source
var Columns = []string{
	FieldID,
	FieldType,
}

Columns holds all SQL columns for releasecomponent fields.

View Source
var ForeignKeys = []string{
	"release_component_release",
	"release_component_component",
}

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

View Source
var (
	Hooks [1]ent.Hook
)

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"
View Source
var (
	// ScansPrimaryKey and ScansColumn2 are the table columns denoting the
	// primary key for the scans relation (M2M).
	ScansPrimaryKey = []string{"release_component_id", "code_scan_id"}
)

Functions

func And

And groups predicates with the AND operator between them.

func HasComponent

func HasComponent() predicate.ReleaseComponent

HasComponent applies the HasEdge predicate on the "component" edge.

func HasComponentWith

func HasComponentWith(preds ...predicate.Component) predicate.ReleaseComponent

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

func HasLicenses

func HasLicenses() predicate.ReleaseComponent

HasLicenses applies the HasEdge predicate on the "licenses" edge.

func HasLicensesWith

func HasLicensesWith(preds ...predicate.ReleaseLicense) predicate.ReleaseComponent

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

func HasRelease

func HasRelease() predicate.ReleaseComponent

HasRelease applies the HasEdge predicate on the "release" edge.

func HasReleaseWith

func HasReleaseWith(preds ...predicate.Release) predicate.ReleaseComponent

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

func HasScans

func HasScans() predicate.ReleaseComponent

HasScans applies the HasEdge predicate on the "scans" edge.

func HasScansWith

func HasScansWith(preds ...predicate.CodeScan) predicate.ReleaseComponent

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

func HasVulnerabilities

func HasVulnerabilities() predicate.ReleaseComponent

HasVulnerabilities applies the HasEdge predicate on the "vulnerabilities" edge.

func HasVulnerabilitiesWith

func HasVulnerabilitiesWith(preds ...predicate.ReleaseVulnerability) predicate.ReleaseComponent

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.ReleaseComponent

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.ReleaseComponent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.ReleaseComponent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func TypeEQ

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.ReleaseComponent

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.ReleaseComponent

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.ReleaseComponent

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeEmbedded    Type = "embedded"
	TypeDistributed Type = "distributed"
	TypeDevelopment Type = "development"
)

Type values.

func (Type) MarshalGQL

func (_type Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (_type *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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