purpose

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the purpose type in the database.
	Label = "purpose"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNodeID holds the string denoting the node_id field in the database.
	FieldNodeID = "node_id"
	// FieldPrimaryPurpose holds the string denoting the primary_purpose field in the database.
	FieldPrimaryPurpose = "primary_purpose"
	// EdgeNode holds the string denoting the node edge name in mutations.
	EdgeNode = "node"
	// Table holds the table name of the purpose in the database.
	Table = "purposes"
	// NodeTable is the table that holds the node relation/edge.
	NodeTable = "purposes"
	// NodeInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodeInverseTable = "nodes"
	// NodeColumn is the table column denoting the node relation/edge.
	NodeColumn = "node_id"
)

Variables

Columns holds all SQL columns for purpose fields.

Functions

func And

func And(predicates ...predicate.Purpose) predicate.Purpose

And groups predicates with the AND operator between them.

func HasNode

func HasNode() predicate.Purpose

HasNode applies the HasEdge predicate on the "node" edge.

func HasNodeWith

func HasNodeWith(preds ...predicate.Node) predicate.Purpose

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

func ID

func ID(id int) predicate.Purpose

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Purpose

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Purpose

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Purpose

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Purpose

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Purpose

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Purpose

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func NodeID

func NodeID(v string) predicate.Purpose

NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.

func NodeIDContains

func NodeIDContains(v string) predicate.Purpose

NodeIDContains applies the Contains predicate on the "node_id" field.

func NodeIDContainsFold

func NodeIDContainsFold(v string) predicate.Purpose

NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.

func NodeIDEQ

func NodeIDEQ(v string) predicate.Purpose

NodeIDEQ applies the EQ predicate on the "node_id" field.

func NodeIDEqualFold

func NodeIDEqualFold(v string) predicate.Purpose

NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.

func NodeIDGT

func NodeIDGT(v string) predicate.Purpose

NodeIDGT applies the GT predicate on the "node_id" field.

func NodeIDGTE

func NodeIDGTE(v string) predicate.Purpose

NodeIDGTE applies the GTE predicate on the "node_id" field.

func NodeIDHasPrefix

func NodeIDHasPrefix(v string) predicate.Purpose

NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.

func NodeIDHasSuffix

func NodeIDHasSuffix(v string) predicate.Purpose

NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.

func NodeIDIn

func NodeIDIn(vs ...string) predicate.Purpose

NodeIDIn applies the In predicate on the "node_id" field.

func NodeIDIsNil

func NodeIDIsNil() predicate.Purpose

NodeIDIsNil applies the IsNil predicate on the "node_id" field.

func NodeIDLT

func NodeIDLT(v string) predicate.Purpose

NodeIDLT applies the LT predicate on the "node_id" field.

func NodeIDLTE

func NodeIDLTE(v string) predicate.Purpose

NodeIDLTE applies the LTE predicate on the "node_id" field.

func NodeIDNEQ

func NodeIDNEQ(v string) predicate.Purpose

NodeIDNEQ applies the NEQ predicate on the "node_id" field.

func NodeIDNotIn

func NodeIDNotIn(vs ...string) predicate.Purpose

NodeIDNotIn applies the NotIn predicate on the "node_id" field.

func NodeIDNotNil

func NodeIDNotNil() predicate.Purpose

NodeIDNotNil applies the NotNil predicate on the "node_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Purpose) predicate.Purpose

Or groups predicates with the OR operator between them.

func PrimaryPurposeEQ

func PrimaryPurposeEQ(v PrimaryPurpose) predicate.Purpose

PrimaryPurposeEQ applies the EQ predicate on the "primary_purpose" field.

func PrimaryPurposeIn

func PrimaryPurposeIn(vs ...PrimaryPurpose) predicate.Purpose

PrimaryPurposeIn applies the In predicate on the "primary_purpose" field.

func PrimaryPurposeNEQ

func PrimaryPurposeNEQ(v PrimaryPurpose) predicate.Purpose

PrimaryPurposeNEQ applies the NEQ predicate on the "primary_purpose" field.

func PrimaryPurposeNotIn

func PrimaryPurposeNotIn(vs ...PrimaryPurpose) predicate.Purpose

PrimaryPurposeNotIn applies the NotIn predicate on the "primary_purpose" field.

func PrimaryPurposeValidator

func PrimaryPurposeValidator(pp PrimaryPurpose) error

PrimaryPurposeValidator is a validator for the "primary_purpose" 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 OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Purpose queries.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByNodeField

func ByNodeField(field string, opts ...sql.OrderTermOption) OrderOption

ByNodeField orders the results by node field.

func ByNodeID

func ByNodeID(opts ...sql.OrderTermOption) OrderOption

ByNodeID orders the results by the node_id field.

func ByPrimaryPurpose

func ByPrimaryPurpose(opts ...sql.OrderTermOption) OrderOption

ByPrimaryPurpose orders the results by the primary_purpose field.

type PrimaryPurpose

type PrimaryPurpose string

PrimaryPurpose defines the type for the "primary_purpose" enum field.

const (
	PrimaryPurposeUNKNOWN_PURPOSE        PrimaryPurpose = "UNKNOWN_PURPOSE"
	PrimaryPurposeAPPLICATION            PrimaryPurpose = "APPLICATION"
	PrimaryPurposeARCHIVE                PrimaryPurpose = "ARCHIVE"
	PrimaryPurposeBOM                    PrimaryPurpose = "BOM"
	PrimaryPurposeCONFIGURATION          PrimaryPurpose = "CONFIGURATION"
	PrimaryPurposeCONTAINER              PrimaryPurpose = "CONTAINER"
	PrimaryPurposeDATA                   PrimaryPurpose = "DATA"
	PrimaryPurposeDEVICE                 PrimaryPurpose = "DEVICE"
	PrimaryPurposeDEVICE_DRIVER          PrimaryPurpose = "DEVICE_DRIVER"
	PrimaryPurposeDOCUMENTATION          PrimaryPurpose = "DOCUMENTATION"
	PrimaryPurposeEVIDENCE               PrimaryPurpose = "EVIDENCE"
	PrimaryPurposeEXECUTABLE             PrimaryPurpose = "EXECUTABLE"
	PrimaryPurposeFILE                   PrimaryPurpose = "FILE"
	PrimaryPurposeFIRMWARE               PrimaryPurpose = "FIRMWARE"
	PrimaryPurposeFRAMEWORK              PrimaryPurpose = "FRAMEWORK"
	PrimaryPurposeINSTALL                PrimaryPurpose = "INSTALL"
	PrimaryPurposeLIBRARY                PrimaryPurpose = "LIBRARY"
	PrimaryPurposeMACHINE_LEARNING_MODEL PrimaryPurpose = "MACHINE_LEARNING_MODEL"
	PrimaryPurposeMANIFEST               PrimaryPurpose = "MANIFEST"
	PrimaryPurposeMODEL                  PrimaryPurpose = "MODEL"
	PrimaryPurposeMODULE                 PrimaryPurpose = "MODULE"
	PrimaryPurposeOPERATING_SYSTEM       PrimaryPurpose = "OPERATING_SYSTEM"
	PrimaryPurposeOTHER                  PrimaryPurpose = "OTHER"
	PrimaryPurposePATCH                  PrimaryPurpose = "PATCH"
	PrimaryPurposePLATFORM               PrimaryPurpose = "PLATFORM"
	PrimaryPurposeREQUIREMENT            PrimaryPurpose = "REQUIREMENT"
	PrimaryPurposeSOURCE                 PrimaryPurpose = "SOURCE"
	PrimaryPurposeSPECIFICATION          PrimaryPurpose = "SPECIFICATION"
	PrimaryPurposeTEST                   PrimaryPurpose = "TEST"
)

PrimaryPurpose values.

func (PrimaryPurpose) String

func (pp PrimaryPurpose) String() string

Jump to

Keyboard shortcuts

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