Documentation
¶
Index ¶
- Constants
- Variables
- func Addresses(v string) predicate.NetworkAdapter
- func AddressesContains(v string) predicate.NetworkAdapter
- func AddressesContainsFold(v string) predicate.NetworkAdapter
- func AddressesEQ(v string) predicate.NetworkAdapter
- func AddressesEqualFold(v string) predicate.NetworkAdapter
- func AddressesGT(v string) predicate.NetworkAdapter
- func AddressesGTE(v string) predicate.NetworkAdapter
- func AddressesHasPrefix(v string) predicate.NetworkAdapter
- func AddressesHasSuffix(v string) predicate.NetworkAdapter
- func AddressesIn(vs ...string) predicate.NetworkAdapter
- func AddressesLT(v string) predicate.NetworkAdapter
- func AddressesLTE(v string) predicate.NetworkAdapter
- func AddressesNEQ(v string) predicate.NetworkAdapter
- func AddressesNotIn(vs ...string) predicate.NetworkAdapter
- func And(predicates ...predicate.NetworkAdapter) predicate.NetworkAdapter
- func DNSDomain(v string) predicate.NetworkAdapter
- func DNSDomainContains(v string) predicate.NetworkAdapter
- func DNSDomainContainsFold(v string) predicate.NetworkAdapter
- func DNSDomainEQ(v string) predicate.NetworkAdapter
- func DNSDomainEqualFold(v string) predicate.NetworkAdapter
- func DNSDomainGT(v string) predicate.NetworkAdapter
- func DNSDomainGTE(v string) predicate.NetworkAdapter
- func DNSDomainHasPrefix(v string) predicate.NetworkAdapter
- func DNSDomainHasSuffix(v string) predicate.NetworkAdapter
- func DNSDomainIn(vs ...string) predicate.NetworkAdapter
- func DNSDomainIsNil() predicate.NetworkAdapter
- func DNSDomainLT(v string) predicate.NetworkAdapter
- func DNSDomainLTE(v string) predicate.NetworkAdapter
- func DNSDomainNEQ(v string) predicate.NetworkAdapter
- func DNSDomainNotIn(vs ...string) predicate.NetworkAdapter
- func DNSDomainNotNil() predicate.NetworkAdapter
- func DNSServers(v string) predicate.NetworkAdapter
- func DNSServersContains(v string) predicate.NetworkAdapter
- func DNSServersContainsFold(v string) predicate.NetworkAdapter
- func DNSServersEQ(v string) predicate.NetworkAdapter
- func DNSServersEqualFold(v string) predicate.NetworkAdapter
- func DNSServersGT(v string) predicate.NetworkAdapter
- func DNSServersGTE(v string) predicate.NetworkAdapter
- func DNSServersHasPrefix(v string) predicate.NetworkAdapter
- func DNSServersHasSuffix(v string) predicate.NetworkAdapter
- func DNSServersIn(vs ...string) predicate.NetworkAdapter
- func DNSServersIsNil() predicate.NetworkAdapter
- func DNSServersLT(v string) predicate.NetworkAdapter
- func DNSServersLTE(v string) predicate.NetworkAdapter
- func DNSServersNEQ(v string) predicate.NetworkAdapter
- func DNSServersNotIn(vs ...string) predicate.NetworkAdapter
- func DNSServersNotNil() predicate.NetworkAdapter
- func DefaultGateway(v string) predicate.NetworkAdapter
- func DefaultGatewayContains(v string) predicate.NetworkAdapter
- func DefaultGatewayContainsFold(v string) predicate.NetworkAdapter
- func DefaultGatewayEQ(v string) predicate.NetworkAdapter
- func DefaultGatewayEqualFold(v string) predicate.NetworkAdapter
- func DefaultGatewayGT(v string) predicate.NetworkAdapter
- func DefaultGatewayGTE(v string) predicate.NetworkAdapter
- func DefaultGatewayHasPrefix(v string) predicate.NetworkAdapter
- func DefaultGatewayHasSuffix(v string) predicate.NetworkAdapter
- func DefaultGatewayIn(vs ...string) predicate.NetworkAdapter
- func DefaultGatewayIsNil() predicate.NetworkAdapter
- func DefaultGatewayLT(v string) predicate.NetworkAdapter
- func DefaultGatewayLTE(v string) predicate.NetworkAdapter
- func DefaultGatewayNEQ(v string) predicate.NetworkAdapter
- func DefaultGatewayNotIn(vs ...string) predicate.NetworkAdapter
- func DefaultGatewayNotNil() predicate.NetworkAdapter
- func DhcpEnabled(v bool) predicate.NetworkAdapter
- func DhcpEnabledEQ(v bool) predicate.NetworkAdapter
- func DhcpEnabledIsNil() predicate.NetworkAdapter
- func DhcpEnabledNEQ(v bool) predicate.NetworkAdapter
- func DhcpEnabledNotNil() predicate.NetworkAdapter
- func DhcpLeaseExpired(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseExpiredEQ(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseExpiredGT(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseExpiredGTE(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseExpiredIn(vs ...time.Time) predicate.NetworkAdapter
- func DhcpLeaseExpiredIsNil() predicate.NetworkAdapter
- func DhcpLeaseExpiredLT(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseExpiredLTE(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseExpiredNEQ(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseExpiredNotIn(vs ...time.Time) predicate.NetworkAdapter
- func DhcpLeaseExpiredNotNil() predicate.NetworkAdapter
- func DhcpLeaseObtained(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseObtainedEQ(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseObtainedGT(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseObtainedGTE(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseObtainedIn(vs ...time.Time) predicate.NetworkAdapter
- func DhcpLeaseObtainedIsNil() predicate.NetworkAdapter
- func DhcpLeaseObtainedLT(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseObtainedLTE(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseObtainedNEQ(v time.Time) predicate.NetworkAdapter
- func DhcpLeaseObtainedNotIn(vs ...time.Time) predicate.NetworkAdapter
- func DhcpLeaseObtainedNotNil() predicate.NetworkAdapter
- func HasOwner() predicate.NetworkAdapter
- func HasOwnerWith(preds ...predicate.Agent) predicate.NetworkAdapter
- func ID(id int) predicate.NetworkAdapter
- func IDEQ(id int) predicate.NetworkAdapter
- func IDGT(id int) predicate.NetworkAdapter
- func IDGTE(id int) predicate.NetworkAdapter
- func IDIn(ids ...int) predicate.NetworkAdapter
- func IDLT(id int) predicate.NetworkAdapter
- func IDLTE(id int) predicate.NetworkAdapter
- func IDNEQ(id int) predicate.NetworkAdapter
- func IDNotIn(ids ...int) predicate.NetworkAdapter
- func MACAddress(v string) predicate.NetworkAdapter
- func MACAddressContains(v string) predicate.NetworkAdapter
- func MACAddressContainsFold(v string) predicate.NetworkAdapter
- func MACAddressEQ(v string) predicate.NetworkAdapter
- func MACAddressEqualFold(v string) predicate.NetworkAdapter
- func MACAddressGT(v string) predicate.NetworkAdapter
- func MACAddressGTE(v string) predicate.NetworkAdapter
- func MACAddressHasPrefix(v string) predicate.NetworkAdapter
- func MACAddressHasSuffix(v string) predicate.NetworkAdapter
- func MACAddressIn(vs ...string) predicate.NetworkAdapter
- func MACAddressLT(v string) predicate.NetworkAdapter
- func MACAddressLTE(v string) predicate.NetworkAdapter
- func MACAddressNEQ(v string) predicate.NetworkAdapter
- func MACAddressNotIn(vs ...string) predicate.NetworkAdapter
- func Name(v string) predicate.NetworkAdapter
- func NameContains(v string) predicate.NetworkAdapter
- func NameContainsFold(v string) predicate.NetworkAdapter
- func NameEQ(v string) predicate.NetworkAdapter
- func NameEqualFold(v string) predicate.NetworkAdapter
- func NameGT(v string) predicate.NetworkAdapter
- func NameGTE(v string) predicate.NetworkAdapter
- func NameHasPrefix(v string) predicate.NetworkAdapter
- func NameHasSuffix(v string) predicate.NetworkAdapter
- func NameIn(vs ...string) predicate.NetworkAdapter
- func NameLT(v string) predicate.NetworkAdapter
- func NameLTE(v string) predicate.NetworkAdapter
- func NameNEQ(v string) predicate.NetworkAdapter
- func NameNotIn(vs ...string) predicate.NetworkAdapter
- func Not(p predicate.NetworkAdapter) predicate.NetworkAdapter
- func Or(predicates ...predicate.NetworkAdapter) predicate.NetworkAdapter
- func Speed(v string) predicate.NetworkAdapter
- func SpeedContains(v string) predicate.NetworkAdapter
- func SpeedContainsFold(v string) predicate.NetworkAdapter
- func SpeedEQ(v string) predicate.NetworkAdapter
- func SpeedEqualFold(v string) predicate.NetworkAdapter
- func SpeedGT(v string) predicate.NetworkAdapter
- func SpeedGTE(v string) predicate.NetworkAdapter
- func SpeedHasPrefix(v string) predicate.NetworkAdapter
- func SpeedHasSuffix(v string) predicate.NetworkAdapter
- func SpeedIn(vs ...string) predicate.NetworkAdapter
- func SpeedLT(v string) predicate.NetworkAdapter
- func SpeedLTE(v string) predicate.NetworkAdapter
- func SpeedNEQ(v string) predicate.NetworkAdapter
- func SpeedNotIn(vs ...string) predicate.NetworkAdapter
- func Subnet(v string) predicate.NetworkAdapter
- func SubnetContains(v string) predicate.NetworkAdapter
- func SubnetContainsFold(v string) predicate.NetworkAdapter
- func SubnetEQ(v string) predicate.NetworkAdapter
- func SubnetEqualFold(v string) predicate.NetworkAdapter
- func SubnetGT(v string) predicate.NetworkAdapter
- func SubnetGTE(v string) predicate.NetworkAdapter
- func SubnetHasPrefix(v string) predicate.NetworkAdapter
- func SubnetHasSuffix(v string) predicate.NetworkAdapter
- func SubnetIn(vs ...string) predicate.NetworkAdapter
- func SubnetIsNil() predicate.NetworkAdapter
- func SubnetLT(v string) predicate.NetworkAdapter
- func SubnetLTE(v string) predicate.NetworkAdapter
- func SubnetNEQ(v string) predicate.NetworkAdapter
- func SubnetNotIn(vs ...string) predicate.NetworkAdapter
- func SubnetNotNil() predicate.NetworkAdapter
- func ValidColumn(column string) bool
- func Virtual(v bool) predicate.NetworkAdapter
- func VirtualEQ(v bool) predicate.NetworkAdapter
- func VirtualIsNil() predicate.NetworkAdapter
- func VirtualNEQ(v bool) predicate.NetworkAdapter
- func VirtualNotNil() predicate.NetworkAdapter
- type OrderOption
- func ByAddresses(opts ...sql.OrderTermOption) OrderOption
- func ByDNSDomain(opts ...sql.OrderTermOption) OrderOption
- func ByDNSServers(opts ...sql.OrderTermOption) OrderOption
- func ByDefaultGateway(opts ...sql.OrderTermOption) OrderOption
- func ByDhcpEnabled(opts ...sql.OrderTermOption) OrderOption
- func ByDhcpLeaseExpired(opts ...sql.OrderTermOption) OrderOption
- func ByDhcpLeaseObtained(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMACAddress(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySpeed(opts ...sql.OrderTermOption) OrderOption
- func BySubnet(opts ...sql.OrderTermOption) OrderOption
- func ByVirtual(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the networkadapter type in the database. Label = "network_adapter" // 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" // FieldMACAddress holds the string denoting the mac_address field in the database. FieldMACAddress = "mac_address" // FieldAddresses holds the string denoting the addresses field in the database. FieldAddresses = "addresses" // FieldSubnet holds the string denoting the subnet field in the database. FieldSubnet = "subnet" // FieldDefaultGateway holds the string denoting the default_gateway field in the database. FieldDefaultGateway = "default_gateway" // FieldDNSServers holds the string denoting the dns_servers field in the database. FieldDNSServers = "dns_servers" // FieldDNSDomain holds the string denoting the dns_domain field in the database. FieldDNSDomain = "dns_domain" // FieldDhcpEnabled holds the string denoting the dhcp_enabled field in the database. FieldDhcpEnabled = "dhcp_enabled" // FieldDhcpLeaseObtained holds the string denoting the dhcp_lease_obtained field in the database. FieldDhcpLeaseObtained = "dhcp_lease_obtained" // FieldDhcpLeaseExpired holds the string denoting the dhcp_lease_expired field in the database. FieldDhcpLeaseExpired = "dhcp_lease_expired" // FieldSpeed holds the string denoting the speed field in the database. FieldSpeed = "speed" // FieldVirtual holds the string denoting the virtual field in the database. FieldVirtual = "virtual" // 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 networkadapter in the database. Table = "network_adapters" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "network_adapters" // 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_networkadapters" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldMACAddress, FieldAddresses, FieldSubnet, FieldDefaultGateway, FieldDNSServers, FieldDNSDomain, FieldDhcpEnabled, FieldDhcpLeaseObtained, FieldDhcpLeaseExpired, FieldSpeed, FieldVirtual, }
Columns holds all SQL columns for networkadapter fields.
var ( // DefaultVirtual holds the default value on creation for the "virtual" field. DefaultVirtual bool )
var ForeignKeys = []string{
"agent_networkadapters",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "network_adapters" table and are not defined as standalone fields in the schema.
Functions ¶
func Addresses ¶
func Addresses(v string) predicate.NetworkAdapter
Addresses applies equality check predicate on the "addresses" field. It's identical to AddressesEQ.
func AddressesContains ¶
func AddressesContains(v string) predicate.NetworkAdapter
AddressesContains applies the Contains predicate on the "addresses" field.
func AddressesContainsFold ¶
func AddressesContainsFold(v string) predicate.NetworkAdapter
AddressesContainsFold applies the ContainsFold predicate on the "addresses" field.
func AddressesEQ ¶
func AddressesEQ(v string) predicate.NetworkAdapter
AddressesEQ applies the EQ predicate on the "addresses" field.
func AddressesEqualFold ¶
func AddressesEqualFold(v string) predicate.NetworkAdapter
AddressesEqualFold applies the EqualFold predicate on the "addresses" field.
func AddressesGT ¶
func AddressesGT(v string) predicate.NetworkAdapter
AddressesGT applies the GT predicate on the "addresses" field.
func AddressesGTE ¶
func AddressesGTE(v string) predicate.NetworkAdapter
AddressesGTE applies the GTE predicate on the "addresses" field.
func AddressesHasPrefix ¶
func AddressesHasPrefix(v string) predicate.NetworkAdapter
AddressesHasPrefix applies the HasPrefix predicate on the "addresses" field.
func AddressesHasSuffix ¶
func AddressesHasSuffix(v string) predicate.NetworkAdapter
AddressesHasSuffix applies the HasSuffix predicate on the "addresses" field.
func AddressesIn ¶
func AddressesIn(vs ...string) predicate.NetworkAdapter
AddressesIn applies the In predicate on the "addresses" field.
func AddressesLT ¶
func AddressesLT(v string) predicate.NetworkAdapter
AddressesLT applies the LT predicate on the "addresses" field.
func AddressesLTE ¶
func AddressesLTE(v string) predicate.NetworkAdapter
AddressesLTE applies the LTE predicate on the "addresses" field.
func AddressesNEQ ¶
func AddressesNEQ(v string) predicate.NetworkAdapter
AddressesNEQ applies the NEQ predicate on the "addresses" field.
func AddressesNotIn ¶
func AddressesNotIn(vs ...string) predicate.NetworkAdapter
AddressesNotIn applies the NotIn predicate on the "addresses" field.
func And ¶
func And(predicates ...predicate.NetworkAdapter) predicate.NetworkAdapter
And groups predicates with the AND operator between them.
func DNSDomain ¶
func DNSDomain(v string) predicate.NetworkAdapter
DNSDomain applies equality check predicate on the "dns_domain" field. It's identical to DNSDomainEQ.
func DNSDomainContains ¶
func DNSDomainContains(v string) predicate.NetworkAdapter
DNSDomainContains applies the Contains predicate on the "dns_domain" field.
func DNSDomainContainsFold ¶
func DNSDomainContainsFold(v string) predicate.NetworkAdapter
DNSDomainContainsFold applies the ContainsFold predicate on the "dns_domain" field.
func DNSDomainEQ ¶
func DNSDomainEQ(v string) predicate.NetworkAdapter
DNSDomainEQ applies the EQ predicate on the "dns_domain" field.
func DNSDomainEqualFold ¶
func DNSDomainEqualFold(v string) predicate.NetworkAdapter
DNSDomainEqualFold applies the EqualFold predicate on the "dns_domain" field.
func DNSDomainGT ¶
func DNSDomainGT(v string) predicate.NetworkAdapter
DNSDomainGT applies the GT predicate on the "dns_domain" field.
func DNSDomainGTE ¶
func DNSDomainGTE(v string) predicate.NetworkAdapter
DNSDomainGTE applies the GTE predicate on the "dns_domain" field.
func DNSDomainHasPrefix ¶
func DNSDomainHasPrefix(v string) predicate.NetworkAdapter
DNSDomainHasPrefix applies the HasPrefix predicate on the "dns_domain" field.
func DNSDomainHasSuffix ¶
func DNSDomainHasSuffix(v string) predicate.NetworkAdapter
DNSDomainHasSuffix applies the HasSuffix predicate on the "dns_domain" field.
func DNSDomainIn ¶
func DNSDomainIn(vs ...string) predicate.NetworkAdapter
DNSDomainIn applies the In predicate on the "dns_domain" field.
func DNSDomainIsNil ¶
func DNSDomainIsNil() predicate.NetworkAdapter
DNSDomainIsNil applies the IsNil predicate on the "dns_domain" field.
func DNSDomainLT ¶
func DNSDomainLT(v string) predicate.NetworkAdapter
DNSDomainLT applies the LT predicate on the "dns_domain" field.
func DNSDomainLTE ¶
func DNSDomainLTE(v string) predicate.NetworkAdapter
DNSDomainLTE applies the LTE predicate on the "dns_domain" field.
func DNSDomainNEQ ¶
func DNSDomainNEQ(v string) predicate.NetworkAdapter
DNSDomainNEQ applies the NEQ predicate on the "dns_domain" field.
func DNSDomainNotIn ¶
func DNSDomainNotIn(vs ...string) predicate.NetworkAdapter
DNSDomainNotIn applies the NotIn predicate on the "dns_domain" field.
func DNSDomainNotNil ¶
func DNSDomainNotNil() predicate.NetworkAdapter
DNSDomainNotNil applies the NotNil predicate on the "dns_domain" field.
func DNSServers ¶
func DNSServers(v string) predicate.NetworkAdapter
DNSServers applies equality check predicate on the "dns_servers" field. It's identical to DNSServersEQ.
func DNSServersContains ¶
func DNSServersContains(v string) predicate.NetworkAdapter
DNSServersContains applies the Contains predicate on the "dns_servers" field.
func DNSServersContainsFold ¶
func DNSServersContainsFold(v string) predicate.NetworkAdapter
DNSServersContainsFold applies the ContainsFold predicate on the "dns_servers" field.
func DNSServersEQ ¶
func DNSServersEQ(v string) predicate.NetworkAdapter
DNSServersEQ applies the EQ predicate on the "dns_servers" field.
func DNSServersEqualFold ¶
func DNSServersEqualFold(v string) predicate.NetworkAdapter
DNSServersEqualFold applies the EqualFold predicate on the "dns_servers" field.
func DNSServersGT ¶
func DNSServersGT(v string) predicate.NetworkAdapter
DNSServersGT applies the GT predicate on the "dns_servers" field.
func DNSServersGTE ¶
func DNSServersGTE(v string) predicate.NetworkAdapter
DNSServersGTE applies the GTE predicate on the "dns_servers" field.
func DNSServersHasPrefix ¶
func DNSServersHasPrefix(v string) predicate.NetworkAdapter
DNSServersHasPrefix applies the HasPrefix predicate on the "dns_servers" field.
func DNSServersHasSuffix ¶
func DNSServersHasSuffix(v string) predicate.NetworkAdapter
DNSServersHasSuffix applies the HasSuffix predicate on the "dns_servers" field.
func DNSServersIn ¶
func DNSServersIn(vs ...string) predicate.NetworkAdapter
DNSServersIn applies the In predicate on the "dns_servers" field.
func DNSServersIsNil ¶
func DNSServersIsNil() predicate.NetworkAdapter
DNSServersIsNil applies the IsNil predicate on the "dns_servers" field.
func DNSServersLT ¶
func DNSServersLT(v string) predicate.NetworkAdapter
DNSServersLT applies the LT predicate on the "dns_servers" field.
func DNSServersLTE ¶
func DNSServersLTE(v string) predicate.NetworkAdapter
DNSServersLTE applies the LTE predicate on the "dns_servers" field.
func DNSServersNEQ ¶
func DNSServersNEQ(v string) predicate.NetworkAdapter
DNSServersNEQ applies the NEQ predicate on the "dns_servers" field.
func DNSServersNotIn ¶
func DNSServersNotIn(vs ...string) predicate.NetworkAdapter
DNSServersNotIn applies the NotIn predicate on the "dns_servers" field.
func DNSServersNotNil ¶
func DNSServersNotNil() predicate.NetworkAdapter
DNSServersNotNil applies the NotNil predicate on the "dns_servers" field.
func DefaultGateway ¶
func DefaultGateway(v string) predicate.NetworkAdapter
DefaultGateway applies equality check predicate on the "default_gateway" field. It's identical to DefaultGatewayEQ.
func DefaultGatewayContains ¶
func DefaultGatewayContains(v string) predicate.NetworkAdapter
DefaultGatewayContains applies the Contains predicate on the "default_gateway" field.
func DefaultGatewayContainsFold ¶
func DefaultGatewayContainsFold(v string) predicate.NetworkAdapter
DefaultGatewayContainsFold applies the ContainsFold predicate on the "default_gateway" field.
func DefaultGatewayEQ ¶
func DefaultGatewayEQ(v string) predicate.NetworkAdapter
DefaultGatewayEQ applies the EQ predicate on the "default_gateway" field.
func DefaultGatewayEqualFold ¶
func DefaultGatewayEqualFold(v string) predicate.NetworkAdapter
DefaultGatewayEqualFold applies the EqualFold predicate on the "default_gateway" field.
func DefaultGatewayGT ¶
func DefaultGatewayGT(v string) predicate.NetworkAdapter
DefaultGatewayGT applies the GT predicate on the "default_gateway" field.
func DefaultGatewayGTE ¶
func DefaultGatewayGTE(v string) predicate.NetworkAdapter
DefaultGatewayGTE applies the GTE predicate on the "default_gateway" field.
func DefaultGatewayHasPrefix ¶
func DefaultGatewayHasPrefix(v string) predicate.NetworkAdapter
DefaultGatewayHasPrefix applies the HasPrefix predicate on the "default_gateway" field.
func DefaultGatewayHasSuffix ¶
func DefaultGatewayHasSuffix(v string) predicate.NetworkAdapter
DefaultGatewayHasSuffix applies the HasSuffix predicate on the "default_gateway" field.
func DefaultGatewayIn ¶
func DefaultGatewayIn(vs ...string) predicate.NetworkAdapter
DefaultGatewayIn applies the In predicate on the "default_gateway" field.
func DefaultGatewayIsNil ¶
func DefaultGatewayIsNil() predicate.NetworkAdapter
DefaultGatewayIsNil applies the IsNil predicate on the "default_gateway" field.
func DefaultGatewayLT ¶
func DefaultGatewayLT(v string) predicate.NetworkAdapter
DefaultGatewayLT applies the LT predicate on the "default_gateway" field.
func DefaultGatewayLTE ¶
func DefaultGatewayLTE(v string) predicate.NetworkAdapter
DefaultGatewayLTE applies the LTE predicate on the "default_gateway" field.
func DefaultGatewayNEQ ¶
func DefaultGatewayNEQ(v string) predicate.NetworkAdapter
DefaultGatewayNEQ applies the NEQ predicate on the "default_gateway" field.
func DefaultGatewayNotIn ¶
func DefaultGatewayNotIn(vs ...string) predicate.NetworkAdapter
DefaultGatewayNotIn applies the NotIn predicate on the "default_gateway" field.
func DefaultGatewayNotNil ¶
func DefaultGatewayNotNil() predicate.NetworkAdapter
DefaultGatewayNotNil applies the NotNil predicate on the "default_gateway" field.
func DhcpEnabled ¶
func DhcpEnabled(v bool) predicate.NetworkAdapter
DhcpEnabled applies equality check predicate on the "dhcp_enabled" field. It's identical to DhcpEnabledEQ.
func DhcpEnabledEQ ¶
func DhcpEnabledEQ(v bool) predicate.NetworkAdapter
DhcpEnabledEQ applies the EQ predicate on the "dhcp_enabled" field.
func DhcpEnabledIsNil ¶
func DhcpEnabledIsNil() predicate.NetworkAdapter
DhcpEnabledIsNil applies the IsNil predicate on the "dhcp_enabled" field.
func DhcpEnabledNEQ ¶
func DhcpEnabledNEQ(v bool) predicate.NetworkAdapter
DhcpEnabledNEQ applies the NEQ predicate on the "dhcp_enabled" field.
func DhcpEnabledNotNil ¶
func DhcpEnabledNotNil() predicate.NetworkAdapter
DhcpEnabledNotNil applies the NotNil predicate on the "dhcp_enabled" field.
func DhcpLeaseExpired ¶
func DhcpLeaseExpired(v time.Time) predicate.NetworkAdapter
DhcpLeaseExpired applies equality check predicate on the "dhcp_lease_expired" field. It's identical to DhcpLeaseExpiredEQ.
func DhcpLeaseExpiredEQ ¶
func DhcpLeaseExpiredEQ(v time.Time) predicate.NetworkAdapter
DhcpLeaseExpiredEQ applies the EQ predicate on the "dhcp_lease_expired" field.
func DhcpLeaseExpiredGT ¶
func DhcpLeaseExpiredGT(v time.Time) predicate.NetworkAdapter
DhcpLeaseExpiredGT applies the GT predicate on the "dhcp_lease_expired" field.
func DhcpLeaseExpiredGTE ¶
func DhcpLeaseExpiredGTE(v time.Time) predicate.NetworkAdapter
DhcpLeaseExpiredGTE applies the GTE predicate on the "dhcp_lease_expired" field.
func DhcpLeaseExpiredIn ¶
func DhcpLeaseExpiredIn(vs ...time.Time) predicate.NetworkAdapter
DhcpLeaseExpiredIn applies the In predicate on the "dhcp_lease_expired" field.
func DhcpLeaseExpiredIsNil ¶
func DhcpLeaseExpiredIsNil() predicate.NetworkAdapter
DhcpLeaseExpiredIsNil applies the IsNil predicate on the "dhcp_lease_expired" field.
func DhcpLeaseExpiredLT ¶
func DhcpLeaseExpiredLT(v time.Time) predicate.NetworkAdapter
DhcpLeaseExpiredLT applies the LT predicate on the "dhcp_lease_expired" field.
func DhcpLeaseExpiredLTE ¶
func DhcpLeaseExpiredLTE(v time.Time) predicate.NetworkAdapter
DhcpLeaseExpiredLTE applies the LTE predicate on the "dhcp_lease_expired" field.
func DhcpLeaseExpiredNEQ ¶
func DhcpLeaseExpiredNEQ(v time.Time) predicate.NetworkAdapter
DhcpLeaseExpiredNEQ applies the NEQ predicate on the "dhcp_lease_expired" field.
func DhcpLeaseExpiredNotIn ¶
func DhcpLeaseExpiredNotIn(vs ...time.Time) predicate.NetworkAdapter
DhcpLeaseExpiredNotIn applies the NotIn predicate on the "dhcp_lease_expired" field.
func DhcpLeaseExpiredNotNil ¶
func DhcpLeaseExpiredNotNil() predicate.NetworkAdapter
DhcpLeaseExpiredNotNil applies the NotNil predicate on the "dhcp_lease_expired" field.
func DhcpLeaseObtained ¶
func DhcpLeaseObtained(v time.Time) predicate.NetworkAdapter
DhcpLeaseObtained applies equality check predicate on the "dhcp_lease_obtained" field. It's identical to DhcpLeaseObtainedEQ.
func DhcpLeaseObtainedEQ ¶
func DhcpLeaseObtainedEQ(v time.Time) predicate.NetworkAdapter
DhcpLeaseObtainedEQ applies the EQ predicate on the "dhcp_lease_obtained" field.
func DhcpLeaseObtainedGT ¶
func DhcpLeaseObtainedGT(v time.Time) predicate.NetworkAdapter
DhcpLeaseObtainedGT applies the GT predicate on the "dhcp_lease_obtained" field.
func DhcpLeaseObtainedGTE ¶
func DhcpLeaseObtainedGTE(v time.Time) predicate.NetworkAdapter
DhcpLeaseObtainedGTE applies the GTE predicate on the "dhcp_lease_obtained" field.
func DhcpLeaseObtainedIn ¶
func DhcpLeaseObtainedIn(vs ...time.Time) predicate.NetworkAdapter
DhcpLeaseObtainedIn applies the In predicate on the "dhcp_lease_obtained" field.
func DhcpLeaseObtainedIsNil ¶
func DhcpLeaseObtainedIsNil() predicate.NetworkAdapter
DhcpLeaseObtainedIsNil applies the IsNil predicate on the "dhcp_lease_obtained" field.
func DhcpLeaseObtainedLT ¶
func DhcpLeaseObtainedLT(v time.Time) predicate.NetworkAdapter
DhcpLeaseObtainedLT applies the LT predicate on the "dhcp_lease_obtained" field.
func DhcpLeaseObtainedLTE ¶
func DhcpLeaseObtainedLTE(v time.Time) predicate.NetworkAdapter
DhcpLeaseObtainedLTE applies the LTE predicate on the "dhcp_lease_obtained" field.
func DhcpLeaseObtainedNEQ ¶
func DhcpLeaseObtainedNEQ(v time.Time) predicate.NetworkAdapter
DhcpLeaseObtainedNEQ applies the NEQ predicate on the "dhcp_lease_obtained" field.
func DhcpLeaseObtainedNotIn ¶
func DhcpLeaseObtainedNotIn(vs ...time.Time) predicate.NetworkAdapter
DhcpLeaseObtainedNotIn applies the NotIn predicate on the "dhcp_lease_obtained" field.
func DhcpLeaseObtainedNotNil ¶
func DhcpLeaseObtainedNotNil() predicate.NetworkAdapter
DhcpLeaseObtainedNotNil applies the NotNil predicate on the "dhcp_lease_obtained" field.
func HasOwner ¶
func HasOwner() predicate.NetworkAdapter
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Agent) predicate.NetworkAdapter
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.NetworkAdapter
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.NetworkAdapter
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.NetworkAdapter
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.NetworkAdapter
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.NetworkAdapter
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.NetworkAdapter
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.NetworkAdapter
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.NetworkAdapter
IDNotIn applies the NotIn predicate on the ID field.
func MACAddress ¶
func MACAddress(v string) predicate.NetworkAdapter
MACAddress applies equality check predicate on the "mac_address" field. It's identical to MACAddressEQ.
func MACAddressContains ¶
func MACAddressContains(v string) predicate.NetworkAdapter
MACAddressContains applies the Contains predicate on the "mac_address" field.
func MACAddressContainsFold ¶
func MACAddressContainsFold(v string) predicate.NetworkAdapter
MACAddressContainsFold applies the ContainsFold predicate on the "mac_address" field.
func MACAddressEQ ¶
func MACAddressEQ(v string) predicate.NetworkAdapter
MACAddressEQ applies the EQ predicate on the "mac_address" field.
func MACAddressEqualFold ¶
func MACAddressEqualFold(v string) predicate.NetworkAdapter
MACAddressEqualFold applies the EqualFold predicate on the "mac_address" field.
func MACAddressGT ¶
func MACAddressGT(v string) predicate.NetworkAdapter
MACAddressGT applies the GT predicate on the "mac_address" field.
func MACAddressGTE ¶
func MACAddressGTE(v string) predicate.NetworkAdapter
MACAddressGTE applies the GTE predicate on the "mac_address" field.
func MACAddressHasPrefix ¶
func MACAddressHasPrefix(v string) predicate.NetworkAdapter
MACAddressHasPrefix applies the HasPrefix predicate on the "mac_address" field.
func MACAddressHasSuffix ¶
func MACAddressHasSuffix(v string) predicate.NetworkAdapter
MACAddressHasSuffix applies the HasSuffix predicate on the "mac_address" field.
func MACAddressIn ¶
func MACAddressIn(vs ...string) predicate.NetworkAdapter
MACAddressIn applies the In predicate on the "mac_address" field.
func MACAddressLT ¶
func MACAddressLT(v string) predicate.NetworkAdapter
MACAddressLT applies the LT predicate on the "mac_address" field.
func MACAddressLTE ¶
func MACAddressLTE(v string) predicate.NetworkAdapter
MACAddressLTE applies the LTE predicate on the "mac_address" field.
func MACAddressNEQ ¶
func MACAddressNEQ(v string) predicate.NetworkAdapter
MACAddressNEQ applies the NEQ predicate on the "mac_address" field.
func MACAddressNotIn ¶
func MACAddressNotIn(vs ...string) predicate.NetworkAdapter
MACAddressNotIn applies the NotIn predicate on the "mac_address" field.
func Name ¶
func Name(v string) predicate.NetworkAdapter
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.NetworkAdapter
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.NetworkAdapter
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.NetworkAdapter
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.NetworkAdapter
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.NetworkAdapter
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.NetworkAdapter
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.NetworkAdapter
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.NetworkAdapter
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.NetworkAdapter
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.NetworkAdapter
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.NetworkAdapter
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.NetworkAdapter
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.NetworkAdapter
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.NetworkAdapter) predicate.NetworkAdapter
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.NetworkAdapter) predicate.NetworkAdapter
Or groups predicates with the OR operator between them.
func Speed ¶
func Speed(v string) predicate.NetworkAdapter
Speed applies equality check predicate on the "speed" field. It's identical to SpeedEQ.
func SpeedContains ¶
func SpeedContains(v string) predicate.NetworkAdapter
SpeedContains applies the Contains predicate on the "speed" field.
func SpeedContainsFold ¶
func SpeedContainsFold(v string) predicate.NetworkAdapter
SpeedContainsFold applies the ContainsFold predicate on the "speed" field.
func SpeedEQ ¶
func SpeedEQ(v string) predicate.NetworkAdapter
SpeedEQ applies the EQ predicate on the "speed" field.
func SpeedEqualFold ¶
func SpeedEqualFold(v string) predicate.NetworkAdapter
SpeedEqualFold applies the EqualFold predicate on the "speed" field.
func SpeedGT ¶
func SpeedGT(v string) predicate.NetworkAdapter
SpeedGT applies the GT predicate on the "speed" field.
func SpeedGTE ¶
func SpeedGTE(v string) predicate.NetworkAdapter
SpeedGTE applies the GTE predicate on the "speed" field.
func SpeedHasPrefix ¶
func SpeedHasPrefix(v string) predicate.NetworkAdapter
SpeedHasPrefix applies the HasPrefix predicate on the "speed" field.
func SpeedHasSuffix ¶
func SpeedHasSuffix(v string) predicate.NetworkAdapter
SpeedHasSuffix applies the HasSuffix predicate on the "speed" field.
func SpeedIn ¶
func SpeedIn(vs ...string) predicate.NetworkAdapter
SpeedIn applies the In predicate on the "speed" field.
func SpeedLT ¶
func SpeedLT(v string) predicate.NetworkAdapter
SpeedLT applies the LT predicate on the "speed" field.
func SpeedLTE ¶
func SpeedLTE(v string) predicate.NetworkAdapter
SpeedLTE applies the LTE predicate on the "speed" field.
func SpeedNEQ ¶
func SpeedNEQ(v string) predicate.NetworkAdapter
SpeedNEQ applies the NEQ predicate on the "speed" field.
func SpeedNotIn ¶
func SpeedNotIn(vs ...string) predicate.NetworkAdapter
SpeedNotIn applies the NotIn predicate on the "speed" field.
func Subnet ¶
func Subnet(v string) predicate.NetworkAdapter
Subnet applies equality check predicate on the "subnet" field. It's identical to SubnetEQ.
func SubnetContains ¶
func SubnetContains(v string) predicate.NetworkAdapter
SubnetContains applies the Contains predicate on the "subnet" field.
func SubnetContainsFold ¶
func SubnetContainsFold(v string) predicate.NetworkAdapter
SubnetContainsFold applies the ContainsFold predicate on the "subnet" field.
func SubnetEQ ¶
func SubnetEQ(v string) predicate.NetworkAdapter
SubnetEQ applies the EQ predicate on the "subnet" field.
func SubnetEqualFold ¶
func SubnetEqualFold(v string) predicate.NetworkAdapter
SubnetEqualFold applies the EqualFold predicate on the "subnet" field.
func SubnetGT ¶
func SubnetGT(v string) predicate.NetworkAdapter
SubnetGT applies the GT predicate on the "subnet" field.
func SubnetGTE ¶
func SubnetGTE(v string) predicate.NetworkAdapter
SubnetGTE applies the GTE predicate on the "subnet" field.
func SubnetHasPrefix ¶
func SubnetHasPrefix(v string) predicate.NetworkAdapter
SubnetHasPrefix applies the HasPrefix predicate on the "subnet" field.
func SubnetHasSuffix ¶
func SubnetHasSuffix(v string) predicate.NetworkAdapter
SubnetHasSuffix applies the HasSuffix predicate on the "subnet" field.
func SubnetIn ¶
func SubnetIn(vs ...string) predicate.NetworkAdapter
SubnetIn applies the In predicate on the "subnet" field.
func SubnetIsNil ¶
func SubnetIsNil() predicate.NetworkAdapter
SubnetIsNil applies the IsNil predicate on the "subnet" field.
func SubnetLT ¶
func SubnetLT(v string) predicate.NetworkAdapter
SubnetLT applies the LT predicate on the "subnet" field.
func SubnetLTE ¶
func SubnetLTE(v string) predicate.NetworkAdapter
SubnetLTE applies the LTE predicate on the "subnet" field.
func SubnetNEQ ¶
func SubnetNEQ(v string) predicate.NetworkAdapter
SubnetNEQ applies the NEQ predicate on the "subnet" field.
func SubnetNotIn ¶
func SubnetNotIn(vs ...string) predicate.NetworkAdapter
SubnetNotIn applies the NotIn predicate on the "subnet" field.
func SubnetNotNil ¶
func SubnetNotNil() predicate.NetworkAdapter
SubnetNotNil applies the NotNil predicate on the "subnet" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Virtual ¶
func Virtual(v bool) predicate.NetworkAdapter
Virtual applies equality check predicate on the "virtual" field. It's identical to VirtualEQ.
func VirtualEQ ¶
func VirtualEQ(v bool) predicate.NetworkAdapter
VirtualEQ applies the EQ predicate on the "virtual" field.
func VirtualIsNil ¶
func VirtualIsNil() predicate.NetworkAdapter
VirtualIsNil applies the IsNil predicate on the "virtual" field.
func VirtualNEQ ¶
func VirtualNEQ(v bool) predicate.NetworkAdapter
VirtualNEQ applies the NEQ predicate on the "virtual" field.
func VirtualNotNil ¶
func VirtualNotNil() predicate.NetworkAdapter
VirtualNotNil applies the NotNil predicate on the "virtual" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the NetworkAdapter queries.
func ByAddresses ¶
func ByAddresses(opts ...sql.OrderTermOption) OrderOption
ByAddresses orders the results by the addresses field.
func ByDNSDomain ¶
func ByDNSDomain(opts ...sql.OrderTermOption) OrderOption
ByDNSDomain orders the results by the dns_domain field.
func ByDNSServers ¶
func ByDNSServers(opts ...sql.OrderTermOption) OrderOption
ByDNSServers orders the results by the dns_servers field.
func ByDefaultGateway ¶
func ByDefaultGateway(opts ...sql.OrderTermOption) OrderOption
ByDefaultGateway orders the results by the default_gateway field.
func ByDhcpEnabled ¶
func ByDhcpEnabled(opts ...sql.OrderTermOption) OrderOption
ByDhcpEnabled orders the results by the dhcp_enabled field.
func ByDhcpLeaseExpired ¶
func ByDhcpLeaseExpired(opts ...sql.OrderTermOption) OrderOption
ByDhcpLeaseExpired orders the results by the dhcp_lease_expired field.
func ByDhcpLeaseObtained ¶
func ByDhcpLeaseObtained(opts ...sql.OrderTermOption) OrderOption
ByDhcpLeaseObtained orders the results by the dhcp_lease_obtained field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMACAddress ¶
func ByMACAddress(opts ...sql.OrderTermOption) OrderOption
ByMACAddress orders the results by the mac_address 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 BySpeed ¶
func BySpeed(opts ...sql.OrderTermOption) OrderOption
BySpeed orders the results by the speed field.
func BySubnet ¶
func BySubnet(opts ...sql.OrderTermOption) OrderOption
BySubnet orders the results by the subnet field.
func ByVirtual ¶
func ByVirtual(opts ...sql.OrderTermOption) OrderOption
ByVirtual orders the results by the virtual field.