Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Target) predicate.Target
- func HasCredentials() predicate.Target
- func HasCredentialsWith(preds ...predicate.Credential) predicate.Target
- func HasTags() predicate.Target
- func HasTagsWith(preds ...predicate.Tag) predicate.Target
- func HasTasks() predicate.Target
- func HasTasksWith(preds ...predicate.Task) predicate.Target
- func Hostname(v string) predicate.Target
- func HostnameContains(v string) predicate.Target
- func HostnameContainsFold(v string) predicate.Target
- func HostnameEQ(v string) predicate.Target
- func HostnameEqualFold(v string) predicate.Target
- func HostnameGT(v string) predicate.Target
- func HostnameGTE(v string) predicate.Target
- func HostnameHasPrefix(v string) predicate.Target
- func HostnameHasSuffix(v string) predicate.Target
- func HostnameIn(vs ...string) predicate.Target
- func HostnameIsNil() predicate.Target
- func HostnameLT(v string) predicate.Target
- func HostnameLTE(v string) predicate.Target
- func HostnameNEQ(v string) predicate.Target
- func HostnameNotIn(vs ...string) predicate.Target
- func HostnameNotNil() predicate.Target
- func ID(id int) predicate.Target
- func IDEQ(id int) predicate.Target
- func IDGT(id int) predicate.Target
- func IDGTE(id int) predicate.Target
- func IDIn(ids ...int) predicate.Target
- func IDLT(id int) predicate.Target
- func IDLTE(id int) predicate.Target
- func IDNEQ(id int) predicate.Target
- func IDNotIn(ids ...int) predicate.Target
- func LastSeen(v time.Time) predicate.Target
- func LastSeenEQ(v time.Time) predicate.Target
- func LastSeenGT(v time.Time) predicate.Target
- func LastSeenGTE(v time.Time) predicate.Target
- func LastSeenIn(vs ...time.Time) predicate.Target
- func LastSeenIsNil() predicate.Target
- func LastSeenLT(v time.Time) predicate.Target
- func LastSeenLTE(v time.Time) predicate.Target
- func LastSeenNEQ(v time.Time) predicate.Target
- func LastSeenNotIn(vs ...time.Time) predicate.Target
- func LastSeenNotNil() predicate.Target
- func MachineUUID(v string) predicate.Target
- func MachineUUIDContains(v string) predicate.Target
- func MachineUUIDContainsFold(v string) predicate.Target
- func MachineUUIDEQ(v string) predicate.Target
- func MachineUUIDEqualFold(v string) predicate.Target
- func MachineUUIDGT(v string) predicate.Target
- func MachineUUIDGTE(v string) predicate.Target
- func MachineUUIDHasPrefix(v string) predicate.Target
- func MachineUUIDHasSuffix(v string) predicate.Target
- func MachineUUIDIn(vs ...string) predicate.Target
- func MachineUUIDIsNil() predicate.Target
- func MachineUUIDLT(v string) predicate.Target
- func MachineUUIDLTE(v string) predicate.Target
- func MachineUUIDNEQ(v string) predicate.Target
- func MachineUUIDNotIn(vs ...string) predicate.Target
- func MachineUUIDNotNil() predicate.Target
- func Name(v string) predicate.Target
- func NameContains(v string) predicate.Target
- func NameContainsFold(v string) predicate.Target
- func NameEQ(v string) predicate.Target
- func NameEqualFold(v string) predicate.Target
- func NameGT(v string) predicate.Target
- func NameGTE(v string) predicate.Target
- func NameHasPrefix(v string) predicate.Target
- func NameHasSuffix(v string) predicate.Target
- func NameIn(vs ...string) predicate.Target
- func NameLT(v string) predicate.Target
- func NameLTE(v string) predicate.Target
- func NameNEQ(v string) predicate.Target
- func NameNotIn(vs ...string) predicate.Target
- func Not(p predicate.Target) predicate.Target
- func OSEQ(v OS) predicate.Target
- func OSIn(vs ...OS) predicate.Target
- func OSNEQ(v OS) predicate.Target
- func OSNotIn(vs ...OS) predicate.Target
- func OSValidator(_os OS) error
- func Or(predicates ...predicate.Target) predicate.Target
- func PrimaryIP(v string) predicate.Target
- func PrimaryIPContains(v string) predicate.Target
- func PrimaryIPContainsFold(v string) predicate.Target
- func PrimaryIPEQ(v string) predicate.Target
- func PrimaryIPEqualFold(v string) predicate.Target
- func PrimaryIPGT(v string) predicate.Target
- func PrimaryIPGTE(v string) predicate.Target
- func PrimaryIPHasPrefix(v string) predicate.Target
- func PrimaryIPHasSuffix(v string) predicate.Target
- func PrimaryIPIn(vs ...string) predicate.Target
- func PrimaryIPLT(v string) predicate.Target
- func PrimaryIPLTE(v string) predicate.Target
- func PrimaryIPNEQ(v string) predicate.Target
- func PrimaryIPNotIn(vs ...string) predicate.Target
- func PrimaryMAC(v string) predicate.Target
- func PrimaryMACContains(v string) predicate.Target
- func PrimaryMACContainsFold(v string) predicate.Target
- func PrimaryMACEQ(v string) predicate.Target
- func PrimaryMACEqualFold(v string) predicate.Target
- func PrimaryMACGT(v string) predicate.Target
- func PrimaryMACGTE(v string) predicate.Target
- func PrimaryMACHasPrefix(v string) predicate.Target
- func PrimaryMACHasSuffix(v string) predicate.Target
- func PrimaryMACIn(vs ...string) predicate.Target
- func PrimaryMACIsNil() predicate.Target
- func PrimaryMACLT(v string) predicate.Target
- func PrimaryMACLTE(v string) predicate.Target
- func PrimaryMACNEQ(v string) predicate.Target
- func PrimaryMACNotIn(vs ...string) predicate.Target
- func PrimaryMACNotNil() predicate.Target
- func PublicIP(v string) predicate.Target
- func PublicIPContains(v string) predicate.Target
- func PublicIPContainsFold(v string) predicate.Target
- func PublicIPEQ(v string) predicate.Target
- func PublicIPEqualFold(v string) predicate.Target
- func PublicIPGT(v string) predicate.Target
- func PublicIPGTE(v string) predicate.Target
- func PublicIPHasPrefix(v string) predicate.Target
- func PublicIPHasSuffix(v string) predicate.Target
- func PublicIPIn(vs ...string) predicate.Target
- func PublicIPIsNil() predicate.Target
- func PublicIPLT(v string) predicate.Target
- func PublicIPLTE(v string) predicate.Target
- func PublicIPNEQ(v string) predicate.Target
- func PublicIPNotIn(vs ...string) predicate.Target
- func PublicIPNotNil() predicate.Target
- func ValidColumn(column string) bool
- type OS
Constants ¶
const ( // Label holds the string label denoting the target type in the database. Label = "target" // 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" // FieldOS holds the string denoting the os field in the database. FieldOS = "os" // FieldPrimaryIP holds the string denoting the primaryip field in the database. FieldPrimaryIP = "primary_ip" // FieldMachineUUID holds the string denoting the machineuuid field in the database. FieldMachineUUID = "machine_uuid" // FieldPublicIP holds the string denoting the publicip field in the database. FieldPublicIP = "public_ip" // FieldPrimaryMAC holds the string denoting the primarymac field in the database. FieldPrimaryMAC = "primary_mac" // FieldHostname holds the string denoting the hostname field in the database. FieldHostname = "hostname" // FieldLastSeen holds the string denoting the lastseen field in the database. FieldLastSeen = "last_seen" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // EdgeCredentials holds the string denoting the credentials edge name in mutations. EdgeCredentials = "credentials" // Table holds the table name of the target in the database. Table = "targets" // TasksTable is the table that holds the tasks relation/edge. TasksTable = "tasks" // TasksInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TasksInverseTable = "tasks" // TasksColumn is the table column denoting the tasks relation/edge. TasksColumn = "target_tasks" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "target_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tags" // CredentialsTable is the table that holds the credentials relation/edge. CredentialsTable = "credentials" // CredentialsInverseTable is the table name for the Credential entity. // It exists in this package in order to avoid circular dependency with the "credential" package. CredentialsInverseTable = "credentials" // CredentialsColumn is the table column denoting the credentials relation/edge. CredentialsColumn = "target_credentials" )
Variables ¶
var ( // NameValidator is a validator for the "Name" field. It is called by the builders before save. NameValidator func(string) error // MachineUUIDValidator is a validator for the "MachineUUID" field. It is called by the builders before save. MachineUUIDValidator func(string) error )
var Columns = []string{ FieldID, FieldName, FieldOS, FieldPrimaryIP, FieldMachineUUID, FieldPublicIP, FieldPrimaryMAC, FieldHostname, FieldLastSeen, }
Columns holds all SQL columns for target fields.
var ( // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"target_id", "tag_id"} )
Functions ¶
func HasCredentials ¶
HasCredentials applies the HasEdge predicate on the "credentials" edge.
func HasCredentialsWith ¶
func HasCredentialsWith(preds ...predicate.Credential) predicate.Target
HasCredentialsWith applies the HasEdge predicate on the "credentials" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func Hostname ¶
Hostname applies equality check predicate on the "Hostname" field. It's identical to HostnameEQ.
func HostnameContains ¶
HostnameContains applies the Contains predicate on the "Hostname" field.
func HostnameContainsFold ¶
HostnameContainsFold applies the ContainsFold predicate on the "Hostname" field.
func HostnameEQ ¶
HostnameEQ applies the EQ predicate on the "Hostname" field.
func HostnameEqualFold ¶
HostnameEqualFold applies the EqualFold predicate on the "Hostname" field.
func HostnameGT ¶
HostnameGT applies the GT predicate on the "Hostname" field.
func HostnameGTE ¶
HostnameGTE applies the GTE predicate on the "Hostname" field.
func HostnameHasPrefix ¶
HostnameHasPrefix applies the HasPrefix predicate on the "Hostname" field.
func HostnameHasSuffix ¶
HostnameHasSuffix applies the HasSuffix predicate on the "Hostname" field.
func HostnameIn ¶
HostnameIn applies the In predicate on the "Hostname" field.
func HostnameIsNil ¶
HostnameIsNil applies the IsNil predicate on the "Hostname" field.
func HostnameLT ¶
HostnameLT applies the LT predicate on the "Hostname" field.
func HostnameLTE ¶
HostnameLTE applies the LTE predicate on the "Hostname" field.
func HostnameNEQ ¶
HostnameNEQ applies the NEQ predicate on the "Hostname" field.
func HostnameNotIn ¶
HostnameNotIn applies the NotIn predicate on the "Hostname" field.
func HostnameNotNil ¶
HostnameNotNil applies the NotNil predicate on the "Hostname" field.
func LastSeen ¶
LastSeen applies equality check predicate on the "LastSeen" field. It's identical to LastSeenEQ.
func LastSeenEQ ¶
LastSeenEQ applies the EQ predicate on the "LastSeen" field.
func LastSeenGT ¶
LastSeenGT applies the GT predicate on the "LastSeen" field.
func LastSeenGTE ¶
LastSeenGTE applies the GTE predicate on the "LastSeen" field.
func LastSeenIn ¶
LastSeenIn applies the In predicate on the "LastSeen" field.
func LastSeenIsNil ¶
LastSeenIsNil applies the IsNil predicate on the "LastSeen" field.
func LastSeenLT ¶
LastSeenLT applies the LT predicate on the "LastSeen" field.
func LastSeenLTE ¶
LastSeenLTE applies the LTE predicate on the "LastSeen" field.
func LastSeenNEQ ¶
LastSeenNEQ applies the NEQ predicate on the "LastSeen" field.
func LastSeenNotIn ¶
LastSeenNotIn applies the NotIn predicate on the "LastSeen" field.
func LastSeenNotNil ¶
LastSeenNotNil applies the NotNil predicate on the "LastSeen" field.
func MachineUUID ¶
MachineUUID applies equality check predicate on the "MachineUUID" field. It's identical to MachineUUIDEQ.
func MachineUUIDContains ¶
MachineUUIDContains applies the Contains predicate on the "MachineUUID" field.
func MachineUUIDContainsFold ¶
MachineUUIDContainsFold applies the ContainsFold predicate on the "MachineUUID" field.
func MachineUUIDEQ ¶
MachineUUIDEQ applies the EQ predicate on the "MachineUUID" field.
func MachineUUIDEqualFold ¶
MachineUUIDEqualFold applies the EqualFold predicate on the "MachineUUID" field.
func MachineUUIDGT ¶
MachineUUIDGT applies the GT predicate on the "MachineUUID" field.
func MachineUUIDGTE ¶
MachineUUIDGTE applies the GTE predicate on the "MachineUUID" field.
func MachineUUIDHasPrefix ¶
MachineUUIDHasPrefix applies the HasPrefix predicate on the "MachineUUID" field.
func MachineUUIDHasSuffix ¶
MachineUUIDHasSuffix applies the HasSuffix predicate on the "MachineUUID" field.
func MachineUUIDIn ¶
MachineUUIDIn applies the In predicate on the "MachineUUID" field.
func MachineUUIDIsNil ¶
MachineUUIDIsNil applies the IsNil predicate on the "MachineUUID" field.
func MachineUUIDLT ¶
MachineUUIDLT applies the LT predicate on the "MachineUUID" field.
func MachineUUIDLTE ¶
MachineUUIDLTE applies the LTE predicate on the "MachineUUID" field.
func MachineUUIDNEQ ¶
MachineUUIDNEQ applies the NEQ predicate on the "MachineUUID" field.
func MachineUUIDNotIn ¶
MachineUUIDNotIn applies the NotIn predicate on the "MachineUUID" field.
func MachineUUIDNotNil ¶
MachineUUIDNotNil applies the NotNil predicate on the "MachineUUID" field.
func NameContains ¶
NameContains applies the Contains predicate on the "Name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "Name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "Name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "Name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "Name" field.
func OSValidator ¶ added in v0.4.0
OSValidator is a validator for the "OS" field enum values. It is called by the builders before save.
func PrimaryIP ¶
PrimaryIP applies equality check predicate on the "PrimaryIP" field. It's identical to PrimaryIPEQ.
func PrimaryIPContains ¶
PrimaryIPContains applies the Contains predicate on the "PrimaryIP" field.
func PrimaryIPContainsFold ¶
PrimaryIPContainsFold applies the ContainsFold predicate on the "PrimaryIP" field.
func PrimaryIPEQ ¶
PrimaryIPEQ applies the EQ predicate on the "PrimaryIP" field.
func PrimaryIPEqualFold ¶
PrimaryIPEqualFold applies the EqualFold predicate on the "PrimaryIP" field.
func PrimaryIPGT ¶
PrimaryIPGT applies the GT predicate on the "PrimaryIP" field.
func PrimaryIPGTE ¶
PrimaryIPGTE applies the GTE predicate on the "PrimaryIP" field.
func PrimaryIPHasPrefix ¶
PrimaryIPHasPrefix applies the HasPrefix predicate on the "PrimaryIP" field.
func PrimaryIPHasSuffix ¶
PrimaryIPHasSuffix applies the HasSuffix predicate on the "PrimaryIP" field.
func PrimaryIPIn ¶
PrimaryIPIn applies the In predicate on the "PrimaryIP" field.
func PrimaryIPLT ¶
PrimaryIPLT applies the LT predicate on the "PrimaryIP" field.
func PrimaryIPLTE ¶
PrimaryIPLTE applies the LTE predicate on the "PrimaryIP" field.
func PrimaryIPNEQ ¶
PrimaryIPNEQ applies the NEQ predicate on the "PrimaryIP" field.
func PrimaryIPNotIn ¶
PrimaryIPNotIn applies the NotIn predicate on the "PrimaryIP" field.
func PrimaryMAC ¶
PrimaryMAC applies equality check predicate on the "PrimaryMAC" field. It's identical to PrimaryMACEQ.
func PrimaryMACContains ¶
PrimaryMACContains applies the Contains predicate on the "PrimaryMAC" field.
func PrimaryMACContainsFold ¶
PrimaryMACContainsFold applies the ContainsFold predicate on the "PrimaryMAC" field.
func PrimaryMACEQ ¶
PrimaryMACEQ applies the EQ predicate on the "PrimaryMAC" field.
func PrimaryMACEqualFold ¶
PrimaryMACEqualFold applies the EqualFold predicate on the "PrimaryMAC" field.
func PrimaryMACGT ¶
PrimaryMACGT applies the GT predicate on the "PrimaryMAC" field.
func PrimaryMACGTE ¶
PrimaryMACGTE applies the GTE predicate on the "PrimaryMAC" field.
func PrimaryMACHasPrefix ¶
PrimaryMACHasPrefix applies the HasPrefix predicate on the "PrimaryMAC" field.
func PrimaryMACHasSuffix ¶
PrimaryMACHasSuffix applies the HasSuffix predicate on the "PrimaryMAC" field.
func PrimaryMACIn ¶
PrimaryMACIn applies the In predicate on the "PrimaryMAC" field.
func PrimaryMACIsNil ¶
PrimaryMACIsNil applies the IsNil predicate on the "PrimaryMAC" field.
func PrimaryMACLT ¶
PrimaryMACLT applies the LT predicate on the "PrimaryMAC" field.
func PrimaryMACLTE ¶
PrimaryMACLTE applies the LTE predicate on the "PrimaryMAC" field.
func PrimaryMACNEQ ¶
PrimaryMACNEQ applies the NEQ predicate on the "PrimaryMAC" field.
func PrimaryMACNotIn ¶
PrimaryMACNotIn applies the NotIn predicate on the "PrimaryMAC" field.
func PrimaryMACNotNil ¶
PrimaryMACNotNil applies the NotNil predicate on the "PrimaryMAC" field.
func PublicIP ¶
PublicIP applies equality check predicate on the "PublicIP" field. It's identical to PublicIPEQ.
func PublicIPContains ¶
PublicIPContains applies the Contains predicate on the "PublicIP" field.
func PublicIPContainsFold ¶
PublicIPContainsFold applies the ContainsFold predicate on the "PublicIP" field.
func PublicIPEQ ¶
PublicIPEQ applies the EQ predicate on the "PublicIP" field.
func PublicIPEqualFold ¶
PublicIPEqualFold applies the EqualFold predicate on the "PublicIP" field.
func PublicIPGT ¶
PublicIPGT applies the GT predicate on the "PublicIP" field.
func PublicIPGTE ¶
PublicIPGTE applies the GTE predicate on the "PublicIP" field.
func PublicIPHasPrefix ¶
PublicIPHasPrefix applies the HasPrefix predicate on the "PublicIP" field.
func PublicIPHasSuffix ¶
PublicIPHasSuffix applies the HasSuffix predicate on the "PublicIP" field.
func PublicIPIn ¶
PublicIPIn applies the In predicate on the "PublicIP" field.
func PublicIPIsNil ¶
PublicIPIsNil applies the IsNil predicate on the "PublicIP" field.
func PublicIPLT ¶
PublicIPLT applies the LT predicate on the "PublicIP" field.
func PublicIPLTE ¶
PublicIPLTE applies the LTE predicate on the "PublicIP" field.
func PublicIPNEQ ¶
PublicIPNEQ applies the NEQ predicate on the "PublicIP" field.
func PublicIPNotIn ¶
PublicIPNotIn applies the NotIn predicate on the "PublicIP" field.
func PublicIPNotNil ¶
PublicIPNotNil applies the NotNil predicate on the "PublicIP" field.
func ValidColumn ¶ added in v0.4.3
ValidColumn reports if the column name is valid (part of the table columns).