network

package
v0.0.0-...-e544f65 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the network type in the database.
	Label = "network"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIndex holds the string denoting the index field in the database.
	FieldIndex = "idx"
	// FieldMTU holds the string denoting the mtu field in the database.
	FieldMTU = "mtu"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldHardwareAddr holds the string denoting the hardwareaddr field in the database.
	FieldHardwareAddr = "mac"
	// FieldFlags holds the string denoting the flags field in the database.
	FieldFlags = "flags"
	// FieldAddrs holds the string denoting the addrs field in the database.
	FieldAddrs = "addrs"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeHostID holds the string denoting the host_id edge name in mutations.
	EdgeHostID = "host_id"
	// Table holds the table name of the network in the database.
	Table = "networks"
	// HostIDTable is the table that holds the host_id relation/edge.
	HostIDTable = "networks"
	// HostIDInverseTable is the table name for the Host entity.
	// It exists in this package in order to avoid circular dependency with the "host" package.
	HostIDInverseTable = "hosts"
	// HostIDColumn is the table column denoting the host_id relation/edge.
	HostIDColumn = "host_network"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for network fields.

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

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

Functions

func AddrsIsNil

func AddrsIsNil() predicate.Network

AddrsIsNil applies the IsNil predicate on the "addrs" field.

func AddrsNotNil

func AddrsNotNil() predicate.Network

AddrsNotNil applies the NotNil predicate on the "addrs" field.

func And

func And(predicates ...predicate.Network) predicate.Network

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Network

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Network

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Network

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Network

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Network

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Network

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Network

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Network

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Network

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func FlagsIsNil

func FlagsIsNil() predicate.Network

FlagsIsNil applies the IsNil predicate on the "Flags" field.

func FlagsNotNil

func FlagsNotNil() predicate.Network

FlagsNotNil applies the NotNil predicate on the "Flags" field.

func HardwareAddr

func HardwareAddr(v string) predicate.Network

HardwareAddr applies equality check predicate on the "HardwareAddr" field. It's identical to HardwareAddrEQ.

func HardwareAddrContains

func HardwareAddrContains(v string) predicate.Network

HardwareAddrContains applies the Contains predicate on the "HardwareAddr" field.

func HardwareAddrContainsFold

func HardwareAddrContainsFold(v string) predicate.Network

HardwareAddrContainsFold applies the ContainsFold predicate on the "HardwareAddr" field.

func HardwareAddrEQ

func HardwareAddrEQ(v string) predicate.Network

HardwareAddrEQ applies the EQ predicate on the "HardwareAddr" field.

func HardwareAddrEqualFold

func HardwareAddrEqualFold(v string) predicate.Network

HardwareAddrEqualFold applies the EqualFold predicate on the "HardwareAddr" field.

func HardwareAddrGT

func HardwareAddrGT(v string) predicate.Network

HardwareAddrGT applies the GT predicate on the "HardwareAddr" field.

func HardwareAddrGTE

func HardwareAddrGTE(v string) predicate.Network

HardwareAddrGTE applies the GTE predicate on the "HardwareAddr" field.

func HardwareAddrHasPrefix

func HardwareAddrHasPrefix(v string) predicate.Network

HardwareAddrHasPrefix applies the HasPrefix predicate on the "HardwareAddr" field.

func HardwareAddrHasSuffix

func HardwareAddrHasSuffix(v string) predicate.Network

HardwareAddrHasSuffix applies the HasSuffix predicate on the "HardwareAddr" field.

func HardwareAddrIn

func HardwareAddrIn(vs ...string) predicate.Network

HardwareAddrIn applies the In predicate on the "HardwareAddr" field.

func HardwareAddrLT

func HardwareAddrLT(v string) predicate.Network

HardwareAddrLT applies the LT predicate on the "HardwareAddr" field.

func HardwareAddrLTE

func HardwareAddrLTE(v string) predicate.Network

HardwareAddrLTE applies the LTE predicate on the "HardwareAddr" field.

func HardwareAddrNEQ

func HardwareAddrNEQ(v string) predicate.Network

HardwareAddrNEQ applies the NEQ predicate on the "HardwareAddr" field.

func HardwareAddrNotIn

func HardwareAddrNotIn(vs ...string) predicate.Network

HardwareAddrNotIn applies the NotIn predicate on the "HardwareAddr" field.

func HasHostID

func HasHostID() predicate.Network

HasHostID applies the HasEdge predicate on the "host_id" edge.

func HasHostIDWith

func HasHostIDWith(preds ...predicate.Host) predicate.Network

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

func ID

func ID(id int) predicate.Network

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Network

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Network

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Network

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Network

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Network

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Network

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Index

func Index(v int) predicate.Network

Index applies equality check predicate on the "Index" field. It's identical to IndexEQ.

func IndexEQ

func IndexEQ(v int) predicate.Network

IndexEQ applies the EQ predicate on the "Index" field.

func IndexGT

func IndexGT(v int) predicate.Network

IndexGT applies the GT predicate on the "Index" field.

func IndexGTE

func IndexGTE(v int) predicate.Network

IndexGTE applies the GTE predicate on the "Index" field.

func IndexIn

func IndexIn(vs ...int) predicate.Network

IndexIn applies the In predicate on the "Index" field.

func IndexLT

func IndexLT(v int) predicate.Network

IndexLT applies the LT predicate on the "Index" field.

func IndexLTE

func IndexLTE(v int) predicate.Network

IndexLTE applies the LTE predicate on the "Index" field.

func IndexNEQ

func IndexNEQ(v int) predicate.Network

IndexNEQ applies the NEQ predicate on the "Index" field.

func IndexNotIn

func IndexNotIn(vs ...int) predicate.Network

IndexNotIn applies the NotIn predicate on the "Index" field.

func MTU

func MTU(v int) predicate.Network

MTU applies equality check predicate on the "MTU" field. It's identical to MTUEQ.

func MTUEQ

func MTUEQ(v int) predicate.Network

MTUEQ applies the EQ predicate on the "MTU" field.

func MTUGT

func MTUGT(v int) predicate.Network

MTUGT applies the GT predicate on the "MTU" field.

func MTUGTE

func MTUGTE(v int) predicate.Network

MTUGTE applies the GTE predicate on the "MTU" field.

func MTUIn

func MTUIn(vs ...int) predicate.Network

MTUIn applies the In predicate on the "MTU" field.

func MTULT

func MTULT(v int) predicate.Network

MTULT applies the LT predicate on the "MTU" field.

func MTULTE

func MTULTE(v int) predicate.Network

MTULTE applies the LTE predicate on the "MTU" field.

func MTUNEQ

func MTUNEQ(v int) predicate.Network

MTUNEQ applies the NEQ predicate on the "MTU" field.

func MTUNotIn

func MTUNotIn(vs ...int) predicate.Network

MTUNotIn applies the NotIn predicate on the "MTU" field.

func Name

func Name(v string) predicate.Network

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

func NameContains

func NameContains(v string) predicate.Network

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

func NameContainsFold

func NameContainsFold(v string) predicate.Network

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

func NameEQ

func NameEQ(v string) predicate.Network

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

func NameEqualFold

func NameEqualFold(v string) predicate.Network

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

func NameGT

func NameGT(v string) predicate.Network

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

func NameGTE

func NameGTE(v string) predicate.Network

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Network

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Network

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Network

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

func NameLTE

func NameLTE(v string) predicate.Network

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

func NameNEQ

func NameNEQ(v string) predicate.Network

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Network

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Network

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Network

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Network

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Network

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Network

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Network

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Network

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Network

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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