host

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the host type in the database.
	Label = "host"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldHostname holds the string denoting the hostname field in the database.
	FieldHostname = "hostname"
	// FieldInterface holds the string denoting the interface field in the database.
	FieldInterface = "interface"
	// FieldLastSeen holds the string denoting the lastseen field in the database.
	FieldLastSeen = "last_seen"

	// EdgeBots holds the string denoting the bots edge name in mutations.
	EdgeBots = "bots"
	// EdgeActions holds the string denoting the actions edge name in mutations.
	EdgeActions = "actions"
	// EdgeMember holds the string denoting the member edge name in mutations.
	EdgeMember = "member"

	// Table holds the table name of the host in the database.
	Table = "hosts"
	// BotsTable is the table the holds the bots relation/edge.
	BotsTable = "bots"
	// BotsInverseTable is the table name for the Bot entity.
	// It exists in this package in order to avoid circular dependency with the "bot" package.
	BotsInverseTable = "bots"
	// BotsColumn is the table column denoting the bots relation/edge.
	BotsColumn = "host_bots"
	// ActionsTable is the table the holds the actions relation/edge.
	ActionsTable = "actions"
	// ActionsInverseTable is the table name for the Action entity.
	// It exists in this package in order to avoid circular dependency with the "action" package.
	ActionsInverseTable = "actions"
	// ActionsColumn is the table column denoting the actions relation/edge.
	ActionsColumn = "host_actions"
	// MemberTable is the table the holds the member relation/edge. The primary key declared below.
	MemberTable = "group_members"
	// MemberInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	MemberInverseTable = "groups"
)

Variables

Columns holds all SQL columns for host fields.

View Source
var (
	// DefaultLastSeen holds the default value on creation for the "lastSeen" field.
	DefaultLastSeen int
)
View Source
var (
	// MemberPrimaryKey and MemberColumn2 are the table columns denoting the
	// primary key for the member relation (M2M).
	MemberPrimaryKey = []string{"group_id", "host_id"}
)

Functions

func And

func And(predicates ...predicate.Host) predicate.Host

And groups predicates with the AND operator between them.

func HasActions

func HasActions() predicate.Host

HasActions applies the HasEdge predicate on the "actions" edge.

func HasActionsWith

func HasActionsWith(preds ...predicate.Action) predicate.Host

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

func HasBots

func HasBots() predicate.Host

HasBots applies the HasEdge predicate on the "bots" edge.

func HasBotsWith

func HasBotsWith(preds ...predicate.Bot) predicate.Host

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

func HasMember

func HasMember() predicate.Host

HasMember applies the HasEdge predicate on the "member" edge.

func HasMemberWith

func HasMemberWith(preds ...predicate.Group) predicate.Host

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

func Hostname

func Hostname(v string) predicate.Host

Hostname applies equality check predicate on the "hostname" field. It's identical to HostnameEQ.

func HostnameContains

func HostnameContains(v string) predicate.Host

HostnameContains applies the Contains predicate on the "hostname" field.

func HostnameContainsFold

func HostnameContainsFold(v string) predicate.Host

HostnameContainsFold applies the ContainsFold predicate on the "hostname" field.

func HostnameEQ

func HostnameEQ(v string) predicate.Host

HostnameEQ applies the EQ predicate on the "hostname" field.

func HostnameEqualFold

func HostnameEqualFold(v string) predicate.Host

HostnameEqualFold applies the EqualFold predicate on the "hostname" field.

func HostnameGT

func HostnameGT(v string) predicate.Host

HostnameGT applies the GT predicate on the "hostname" field.

func HostnameGTE

func HostnameGTE(v string) predicate.Host

HostnameGTE applies the GTE predicate on the "hostname" field.

func HostnameHasPrefix

func HostnameHasPrefix(v string) predicate.Host

HostnameHasPrefix applies the HasPrefix predicate on the "hostname" field.

func HostnameHasSuffix

func HostnameHasSuffix(v string) predicate.Host

HostnameHasSuffix applies the HasSuffix predicate on the "hostname" field.

func HostnameIn

func HostnameIn(vs ...string) predicate.Host

HostnameIn applies the In predicate on the "hostname" field.

func HostnameLT

func HostnameLT(v string) predicate.Host

HostnameLT applies the LT predicate on the "hostname" field.

func HostnameLTE

func HostnameLTE(v string) predicate.Host

HostnameLTE applies the LTE predicate on the "hostname" field.

func HostnameNEQ

func HostnameNEQ(v string) predicate.Host

HostnameNEQ applies the NEQ predicate on the "hostname" field.

func HostnameNotIn

func HostnameNotIn(vs ...string) predicate.Host

HostnameNotIn applies the NotIn predicate on the "hostname" field.

func ID

func ID(id int) predicate.Host

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Host

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Host

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Host

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Host

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Host

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Host

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Interface

func Interface(v string) predicate.Host

Interface applies equality check predicate on the "interface" field. It's identical to InterfaceEQ.

func InterfaceContains

func InterfaceContains(v string) predicate.Host

InterfaceContains applies the Contains predicate on the "interface" field.

func InterfaceContainsFold

func InterfaceContainsFold(v string) predicate.Host

InterfaceContainsFold applies the ContainsFold predicate on the "interface" field.

func InterfaceEQ

func InterfaceEQ(v string) predicate.Host

InterfaceEQ applies the EQ predicate on the "interface" field.

func InterfaceEqualFold

func InterfaceEqualFold(v string) predicate.Host

InterfaceEqualFold applies the EqualFold predicate on the "interface" field.

func InterfaceGT

func InterfaceGT(v string) predicate.Host

InterfaceGT applies the GT predicate on the "interface" field.

func InterfaceGTE

func InterfaceGTE(v string) predicate.Host

InterfaceGTE applies the GTE predicate on the "interface" field.

func InterfaceHasPrefix

func InterfaceHasPrefix(v string) predicate.Host

InterfaceHasPrefix applies the HasPrefix predicate on the "interface" field.

func InterfaceHasSuffix

func InterfaceHasSuffix(v string) predicate.Host

InterfaceHasSuffix applies the HasSuffix predicate on the "interface" field.

func InterfaceIn

func InterfaceIn(vs ...string) predicate.Host

InterfaceIn applies the In predicate on the "interface" field.

func InterfaceLT

func InterfaceLT(v string) predicate.Host

InterfaceLT applies the LT predicate on the "interface" field.

func InterfaceLTE

func InterfaceLTE(v string) predicate.Host

InterfaceLTE applies the LTE predicate on the "interface" field.

func InterfaceNEQ

func InterfaceNEQ(v string) predicate.Host

InterfaceNEQ applies the NEQ predicate on the "interface" field.

func InterfaceNotIn

func InterfaceNotIn(vs ...string) predicate.Host

InterfaceNotIn applies the NotIn predicate on the "interface" field.

func LastSeen

func LastSeen(v int) predicate.Host

LastSeen applies equality check predicate on the "lastSeen" field. It's identical to LastSeenEQ.

func LastSeenEQ

func LastSeenEQ(v int) predicate.Host

LastSeenEQ applies the EQ predicate on the "lastSeen" field.

func LastSeenGT

func LastSeenGT(v int) predicate.Host

LastSeenGT applies the GT predicate on the "lastSeen" field.

func LastSeenGTE

func LastSeenGTE(v int) predicate.Host

LastSeenGTE applies the GTE predicate on the "lastSeen" field.

func LastSeenIn

func LastSeenIn(vs ...int) predicate.Host

LastSeenIn applies the In predicate on the "lastSeen" field.

func LastSeenLT

func LastSeenLT(v int) predicate.Host

LastSeenLT applies the LT predicate on the "lastSeen" field.

func LastSeenLTE

func LastSeenLTE(v int) predicate.Host

LastSeenLTE applies the LTE predicate on the "lastSeen" field.

func LastSeenNEQ

func LastSeenNEQ(v int) predicate.Host

LastSeenNEQ applies the NEQ predicate on the "lastSeen" field.

func LastSeenNotIn

func LastSeenNotIn(vs ...int) predicate.Host

LastSeenNotIn applies the NotIn predicate on the "lastSeen" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Host) predicate.Host

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