printer

package
v0.0.0-...-d46c51b Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the printer type in the database.
	Label = "printer"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldPort holds the string denoting the port field in the database.
	FieldPort = "port"
	// FieldIsDefault holds the string denoting the is_default field in the database.
	FieldIsDefault = "is_default"
	// FieldIsNetwork holds the string denoting the is_network field in the database.
	FieldIsNetwork = "is_network"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// AgentFieldID holds the string denoting the ID field of the Agent.
	AgentFieldID = "oid"
	// Table holds the table name of the printer in the database.
	Table = "printers"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "printers"
	// OwnerInverseTable is the table name for the Agent entity.
	// It exists in this package in order to avoid circular dependency with the "agent" package.
	OwnerInverseTable = "agents"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "agent_printers"
)

Variables

Columns holds all SQL columns for printer fields.

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

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

Functions

func And

func And(predicates ...predicate.Printer) predicate.Printer

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.Printer

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

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Agent) predicate.Printer

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

func ID

func ID(id int) predicate.Printer

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Printer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Printer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Printer

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Printer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Printer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Printer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsDefault

func IsDefault(v bool) predicate.Printer

IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.

func IsDefaultEQ

func IsDefaultEQ(v bool) predicate.Printer

IsDefaultEQ applies the EQ predicate on the "is_default" field.

func IsDefaultIsNil

func IsDefaultIsNil() predicate.Printer

IsDefaultIsNil applies the IsNil predicate on the "is_default" field.

func IsDefaultNEQ

func IsDefaultNEQ(v bool) predicate.Printer

IsDefaultNEQ applies the NEQ predicate on the "is_default" field.

func IsDefaultNotNil

func IsDefaultNotNil() predicate.Printer

IsDefaultNotNil applies the NotNil predicate on the "is_default" field.

func IsNetwork

func IsNetwork(v bool) predicate.Printer

IsNetwork applies equality check predicate on the "is_network" field. It's identical to IsNetworkEQ.

func IsNetworkEQ

func IsNetworkEQ(v bool) predicate.Printer

IsNetworkEQ applies the EQ predicate on the "is_network" field.

func IsNetworkIsNil

func IsNetworkIsNil() predicate.Printer

IsNetworkIsNil applies the IsNil predicate on the "is_network" field.

func IsNetworkNEQ

func IsNetworkNEQ(v bool) predicate.Printer

IsNetworkNEQ applies the NEQ predicate on the "is_network" field.

func IsNetworkNotNil

func IsNetworkNotNil() predicate.Printer

IsNetworkNotNil applies the NotNil predicate on the "is_network" field.

func Name

func Name(v string) predicate.Printer

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

func NameContains

func NameContains(v string) predicate.Printer

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

func NameContainsFold

func NameContainsFold(v string) predicate.Printer

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

func NameEQ

func NameEQ(v string) predicate.Printer

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

func NameEqualFold

func NameEqualFold(v string) predicate.Printer

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

func NameGT

func NameGT(v string) predicate.Printer

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

func NameGTE

func NameGTE(v string) predicate.Printer

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Printer

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Printer

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Printer

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

func NameLTE

func NameLTE(v string) predicate.Printer

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

func NameNEQ

func NameNEQ(v string) predicate.Printer

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

func NameNotIn

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

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.Printer) predicate.Printer

Or groups predicates with the OR operator between them.

func Port

func Port(v string) predicate.Printer

Port applies equality check predicate on the "port" field. It's identical to PortEQ.

func PortContains

func PortContains(v string) predicate.Printer

PortContains applies the Contains predicate on the "port" field.

func PortContainsFold

func PortContainsFold(v string) predicate.Printer

PortContainsFold applies the ContainsFold predicate on the "port" field.

func PortEQ

func PortEQ(v string) predicate.Printer

PortEQ applies the EQ predicate on the "port" field.

func PortEqualFold

func PortEqualFold(v string) predicate.Printer

PortEqualFold applies the EqualFold predicate on the "port" field.

func PortGT

func PortGT(v string) predicate.Printer

PortGT applies the GT predicate on the "port" field.

func PortGTE

func PortGTE(v string) predicate.Printer

PortGTE applies the GTE predicate on the "port" field.

func PortHasPrefix

func PortHasPrefix(v string) predicate.Printer

PortHasPrefix applies the HasPrefix predicate on the "port" field.

func PortHasSuffix

func PortHasSuffix(v string) predicate.Printer

PortHasSuffix applies the HasSuffix predicate on the "port" field.

func PortIn

func PortIn(vs ...string) predicate.Printer

PortIn applies the In predicate on the "port" field.

func PortIsNil

func PortIsNil() predicate.Printer

PortIsNil applies the IsNil predicate on the "port" field.

func PortLT

func PortLT(v string) predicate.Printer

PortLT applies the LT predicate on the "port" field.

func PortLTE

func PortLTE(v string) predicate.Printer

PortLTE applies the LTE predicate on the "port" field.

func PortNEQ

func PortNEQ(v string) predicate.Printer

PortNEQ applies the NEQ predicate on the "port" field.

func PortNotIn

func PortNotIn(vs ...string) predicate.Printer

PortNotIn applies the NotIn predicate on the "port" field.

func PortNotNil

func PortNotNil() predicate.Printer

PortNotNil applies the NotNil predicate on the "port" 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 Printer queries.

func ByID

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

ByID orders the results by the id field.

func ByIsDefault

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

ByIsDefault orders the results by the is_default field.

func ByIsNetwork

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

ByIsNetwork orders the results by the is_network field.

func ByName

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

ByName orders the results by the name field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByPort

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

ByPort orders the results by the port field.

Jump to

Keyboard shortcuts

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