netbird

package
v0.0.0-...-d4cf3a4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the netbird type in the database.
	Label = "netbird"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldInstalled holds the string denoting the installed field in the database.
	FieldInstalled = "installed"
	// FieldServiceStatus holds the string denoting the service_status field in the database.
	FieldServiceStatus = "service_status"
	// FieldIP holds the string denoting the ip field in the database.
	FieldIP = "ip"
	// FieldProfile holds the string denoting the profile field in the database.
	FieldProfile = "profile"
	// FieldManagementURL holds the string denoting the management_url field in the database.
	FieldManagementURL = "management_url"
	// FieldManagementConnected holds the string denoting the management_connected field in the database.
	FieldManagementConnected = "management_connected"
	// FieldSignalURL holds the string denoting the signal_url field in the database.
	FieldSignalURL = "signal_url"
	// FieldSignalConnected holds the string denoting the signal_connected field in the database.
	FieldSignalConnected = "signal_connected"
	// FieldSSHEnabled holds the string denoting the ssh_enabled field in the database.
	FieldSSHEnabled = "ssh_enabled"
	// FieldPeersTotal holds the string denoting the peers_total field in the database.
	FieldPeersTotal = "peers_total"
	// FieldPeersConnected holds the string denoting the peers_connected field in the database.
	FieldPeersConnected = "peers_connected"
	// FieldProfilesAvailable holds the string denoting the profiles_available field in the database.
	FieldProfilesAvailable = "profiles_available"
	// FieldDNSServer holds the string denoting the dns_server field in the database.
	FieldDNSServer = "dns_server"
	// 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 netbird in the database.
	Table = "netbirds"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "netbirds"
	// 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_netbird"
)

Variables

View Source
var (
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion string
	// DefaultInstalled holds the default value on creation for the "installed" field.
	DefaultInstalled bool
	// DefaultServiceStatus holds the default value on creation for the "service_status" field.
	DefaultServiceStatus string
	// DefaultIP holds the default value on creation for the "ip" field.
	DefaultIP string
	// DefaultProfile holds the default value on creation for the "profile" field.
	DefaultProfile string
	// DefaultManagementURL holds the default value on creation for the "management_url" field.
	DefaultManagementURL string
	// DefaultManagementConnected holds the default value on creation for the "management_connected" field.
	DefaultManagementConnected bool
	// DefaultSignalURL holds the default value on creation for the "signal_url" field.
	DefaultSignalURL string
	// DefaultSignalConnected holds the default value on creation for the "signal_connected" field.
	DefaultSignalConnected bool
	// DefaultSSHEnabled holds the default value on creation for the "ssh_enabled" field.
	DefaultSSHEnabled bool
	// DefaultPeersTotal holds the default value on creation for the "peers_total" field.
	DefaultPeersTotal int
	// DefaultPeersConnected holds the default value on creation for the "peers_connected" field.
	DefaultPeersConnected int
	// DefaultProfilesAvailable holds the default value on creation for the "profiles_available" field.
	DefaultProfilesAvailable string
	// DefaultDNSServer holds the default value on creation for the "dns_server" field.
	DefaultDNSServer string
)

Columns holds all SQL columns for netbird fields.

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

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

Functions

func And

func And(predicates ...predicate.Netbird) predicate.Netbird

And groups predicates with the AND operator between them.

func DNSServer

func DNSServer(v string) predicate.Netbird

DNSServer applies equality check predicate on the "dns_server" field. It's identical to DNSServerEQ.

func DNSServerContains

func DNSServerContains(v string) predicate.Netbird

DNSServerContains applies the Contains predicate on the "dns_server" field.

func DNSServerContainsFold

func DNSServerContainsFold(v string) predicate.Netbird

DNSServerContainsFold applies the ContainsFold predicate on the "dns_server" field.

func DNSServerEQ

func DNSServerEQ(v string) predicate.Netbird

DNSServerEQ applies the EQ predicate on the "dns_server" field.

func DNSServerEqualFold

func DNSServerEqualFold(v string) predicate.Netbird

DNSServerEqualFold applies the EqualFold predicate on the "dns_server" field.

func DNSServerGT

func DNSServerGT(v string) predicate.Netbird

DNSServerGT applies the GT predicate on the "dns_server" field.

func DNSServerGTE

func DNSServerGTE(v string) predicate.Netbird

DNSServerGTE applies the GTE predicate on the "dns_server" field.

func DNSServerHasPrefix

func DNSServerHasPrefix(v string) predicate.Netbird

DNSServerHasPrefix applies the HasPrefix predicate on the "dns_server" field.

func DNSServerHasSuffix

func DNSServerHasSuffix(v string) predicate.Netbird

DNSServerHasSuffix applies the HasSuffix predicate on the "dns_server" field.

func DNSServerIn

func DNSServerIn(vs ...string) predicate.Netbird

DNSServerIn applies the In predicate on the "dns_server" field.

func DNSServerIsNil

func DNSServerIsNil() predicate.Netbird

DNSServerIsNil applies the IsNil predicate on the "dns_server" field.

func DNSServerLT

func DNSServerLT(v string) predicate.Netbird

DNSServerLT applies the LT predicate on the "dns_server" field.

func DNSServerLTE

func DNSServerLTE(v string) predicate.Netbird

DNSServerLTE applies the LTE predicate on the "dns_server" field.

func DNSServerNEQ

func DNSServerNEQ(v string) predicate.Netbird

DNSServerNEQ applies the NEQ predicate on the "dns_server" field.

func DNSServerNotIn

func DNSServerNotIn(vs ...string) predicate.Netbird

DNSServerNotIn applies the NotIn predicate on the "dns_server" field.

func DNSServerNotNil

func DNSServerNotNil() predicate.Netbird

DNSServerNotNil applies the NotNil predicate on the "dns_server" field.

func HasOwner

func HasOwner() predicate.Netbird

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

func HasOwnerWith

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

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

func ID

func ID(id int) predicate.Netbird

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Netbird

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Netbird

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Netbird

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Netbird

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Netbird

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Netbird

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IP

func IP(v string) predicate.Netbird

IP applies equality check predicate on the "ip" field. It's identical to IPEQ.

func IPContains

func IPContains(v string) predicate.Netbird

IPContains applies the Contains predicate on the "ip" field.

func IPContainsFold

func IPContainsFold(v string) predicate.Netbird

IPContainsFold applies the ContainsFold predicate on the "ip" field.

func IPEQ

func IPEQ(v string) predicate.Netbird

IPEQ applies the EQ predicate on the "ip" field.

func IPEqualFold

func IPEqualFold(v string) predicate.Netbird

IPEqualFold applies the EqualFold predicate on the "ip" field.

func IPGT

func IPGT(v string) predicate.Netbird

IPGT applies the GT predicate on the "ip" field.

func IPGTE

func IPGTE(v string) predicate.Netbird

IPGTE applies the GTE predicate on the "ip" field.

func IPHasPrefix

func IPHasPrefix(v string) predicate.Netbird

IPHasPrefix applies the HasPrefix predicate on the "ip" field.

func IPHasSuffix

func IPHasSuffix(v string) predicate.Netbird

IPHasSuffix applies the HasSuffix predicate on the "ip" field.

func IPIn

func IPIn(vs ...string) predicate.Netbird

IPIn applies the In predicate on the "ip" field.

func IPIsNil

func IPIsNil() predicate.Netbird

IPIsNil applies the IsNil predicate on the "ip" field.

func IPLT

func IPLT(v string) predicate.Netbird

IPLT applies the LT predicate on the "ip" field.

func IPLTE

func IPLTE(v string) predicate.Netbird

IPLTE applies the LTE predicate on the "ip" field.

func IPNEQ

func IPNEQ(v string) predicate.Netbird

IPNEQ applies the NEQ predicate on the "ip" field.

func IPNotIn

func IPNotIn(vs ...string) predicate.Netbird

IPNotIn applies the NotIn predicate on the "ip" field.

func IPNotNil

func IPNotNil() predicate.Netbird

IPNotNil applies the NotNil predicate on the "ip" field.

func Installed

func Installed(v bool) predicate.Netbird

Installed applies equality check predicate on the "installed" field. It's identical to InstalledEQ.

func InstalledEQ

func InstalledEQ(v bool) predicate.Netbird

InstalledEQ applies the EQ predicate on the "installed" field.

func InstalledNEQ

func InstalledNEQ(v bool) predicate.Netbird

InstalledNEQ applies the NEQ predicate on the "installed" field.

func ManagementConnected

func ManagementConnected(v bool) predicate.Netbird

ManagementConnected applies equality check predicate on the "management_connected" field. It's identical to ManagementConnectedEQ.

func ManagementConnectedEQ

func ManagementConnectedEQ(v bool) predicate.Netbird

ManagementConnectedEQ applies the EQ predicate on the "management_connected" field.

func ManagementConnectedNEQ

func ManagementConnectedNEQ(v bool) predicate.Netbird

ManagementConnectedNEQ applies the NEQ predicate on the "management_connected" field.

func ManagementURL

func ManagementURL(v string) predicate.Netbird

ManagementURL applies equality check predicate on the "management_url" field. It's identical to ManagementURLEQ.

func ManagementURLContains

func ManagementURLContains(v string) predicate.Netbird

ManagementURLContains applies the Contains predicate on the "management_url" field.

func ManagementURLContainsFold

func ManagementURLContainsFold(v string) predicate.Netbird

ManagementURLContainsFold applies the ContainsFold predicate on the "management_url" field.

func ManagementURLEQ

func ManagementURLEQ(v string) predicate.Netbird

ManagementURLEQ applies the EQ predicate on the "management_url" field.

func ManagementURLEqualFold

func ManagementURLEqualFold(v string) predicate.Netbird

ManagementURLEqualFold applies the EqualFold predicate on the "management_url" field.

func ManagementURLGT

func ManagementURLGT(v string) predicate.Netbird

ManagementURLGT applies the GT predicate on the "management_url" field.

func ManagementURLGTE

func ManagementURLGTE(v string) predicate.Netbird

ManagementURLGTE applies the GTE predicate on the "management_url" field.

func ManagementURLHasPrefix

func ManagementURLHasPrefix(v string) predicate.Netbird

ManagementURLHasPrefix applies the HasPrefix predicate on the "management_url" field.

func ManagementURLHasSuffix

func ManagementURLHasSuffix(v string) predicate.Netbird

ManagementURLHasSuffix applies the HasSuffix predicate on the "management_url" field.

func ManagementURLIn

func ManagementURLIn(vs ...string) predicate.Netbird

ManagementURLIn applies the In predicate on the "management_url" field.

func ManagementURLIsNil

func ManagementURLIsNil() predicate.Netbird

ManagementURLIsNil applies the IsNil predicate on the "management_url" field.

func ManagementURLLT

func ManagementURLLT(v string) predicate.Netbird

ManagementURLLT applies the LT predicate on the "management_url" field.

func ManagementURLLTE

func ManagementURLLTE(v string) predicate.Netbird

ManagementURLLTE applies the LTE predicate on the "management_url" field.

func ManagementURLNEQ

func ManagementURLNEQ(v string) predicate.Netbird

ManagementURLNEQ applies the NEQ predicate on the "management_url" field.

func ManagementURLNotIn

func ManagementURLNotIn(vs ...string) predicate.Netbird

ManagementURLNotIn applies the NotIn predicate on the "management_url" field.

func ManagementURLNotNil

func ManagementURLNotNil() predicate.Netbird

ManagementURLNotNil applies the NotNil predicate on the "management_url" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Netbird) predicate.Netbird

Or groups predicates with the OR operator between them.

func PeersConnected

func PeersConnected(v int) predicate.Netbird

PeersConnected applies equality check predicate on the "peers_connected" field. It's identical to PeersConnectedEQ.

func PeersConnectedEQ

func PeersConnectedEQ(v int) predicate.Netbird

PeersConnectedEQ applies the EQ predicate on the "peers_connected" field.

func PeersConnectedGT

func PeersConnectedGT(v int) predicate.Netbird

PeersConnectedGT applies the GT predicate on the "peers_connected" field.

func PeersConnectedGTE

func PeersConnectedGTE(v int) predicate.Netbird

PeersConnectedGTE applies the GTE predicate on the "peers_connected" field.

func PeersConnectedIn

func PeersConnectedIn(vs ...int) predicate.Netbird

PeersConnectedIn applies the In predicate on the "peers_connected" field.

func PeersConnectedIsNil

func PeersConnectedIsNil() predicate.Netbird

PeersConnectedIsNil applies the IsNil predicate on the "peers_connected" field.

func PeersConnectedLT

func PeersConnectedLT(v int) predicate.Netbird

PeersConnectedLT applies the LT predicate on the "peers_connected" field.

func PeersConnectedLTE

func PeersConnectedLTE(v int) predicate.Netbird

PeersConnectedLTE applies the LTE predicate on the "peers_connected" field.

func PeersConnectedNEQ

func PeersConnectedNEQ(v int) predicate.Netbird

PeersConnectedNEQ applies the NEQ predicate on the "peers_connected" field.

func PeersConnectedNotIn

func PeersConnectedNotIn(vs ...int) predicate.Netbird

PeersConnectedNotIn applies the NotIn predicate on the "peers_connected" field.

func PeersConnectedNotNil

func PeersConnectedNotNil() predicate.Netbird

PeersConnectedNotNil applies the NotNil predicate on the "peers_connected" field.

func PeersTotal

func PeersTotal(v int) predicate.Netbird

PeersTotal applies equality check predicate on the "peers_total" field. It's identical to PeersTotalEQ.

func PeersTotalEQ

func PeersTotalEQ(v int) predicate.Netbird

PeersTotalEQ applies the EQ predicate on the "peers_total" field.

func PeersTotalGT

func PeersTotalGT(v int) predicate.Netbird

PeersTotalGT applies the GT predicate on the "peers_total" field.

func PeersTotalGTE

func PeersTotalGTE(v int) predicate.Netbird

PeersTotalGTE applies the GTE predicate on the "peers_total" field.

func PeersTotalIn

func PeersTotalIn(vs ...int) predicate.Netbird

PeersTotalIn applies the In predicate on the "peers_total" field.

func PeersTotalIsNil

func PeersTotalIsNil() predicate.Netbird

PeersTotalIsNil applies the IsNil predicate on the "peers_total" field.

func PeersTotalLT

func PeersTotalLT(v int) predicate.Netbird

PeersTotalLT applies the LT predicate on the "peers_total" field.

func PeersTotalLTE

func PeersTotalLTE(v int) predicate.Netbird

PeersTotalLTE applies the LTE predicate on the "peers_total" field.

func PeersTotalNEQ

func PeersTotalNEQ(v int) predicate.Netbird

PeersTotalNEQ applies the NEQ predicate on the "peers_total" field.

func PeersTotalNotIn

func PeersTotalNotIn(vs ...int) predicate.Netbird

PeersTotalNotIn applies the NotIn predicate on the "peers_total" field.

func PeersTotalNotNil

func PeersTotalNotNil() predicate.Netbird

PeersTotalNotNil applies the NotNil predicate on the "peers_total" field.

func Profile

func Profile(v string) predicate.Netbird

Profile applies equality check predicate on the "profile" field. It's identical to ProfileEQ.

func ProfileContains

func ProfileContains(v string) predicate.Netbird

ProfileContains applies the Contains predicate on the "profile" field.

func ProfileContainsFold

func ProfileContainsFold(v string) predicate.Netbird

ProfileContainsFold applies the ContainsFold predicate on the "profile" field.

func ProfileEQ

func ProfileEQ(v string) predicate.Netbird

ProfileEQ applies the EQ predicate on the "profile" field.

func ProfileEqualFold

func ProfileEqualFold(v string) predicate.Netbird

ProfileEqualFold applies the EqualFold predicate on the "profile" field.

func ProfileGT

func ProfileGT(v string) predicate.Netbird

ProfileGT applies the GT predicate on the "profile" field.

func ProfileGTE

func ProfileGTE(v string) predicate.Netbird

ProfileGTE applies the GTE predicate on the "profile" field.

func ProfileHasPrefix

func ProfileHasPrefix(v string) predicate.Netbird

ProfileHasPrefix applies the HasPrefix predicate on the "profile" field.

func ProfileHasSuffix

func ProfileHasSuffix(v string) predicate.Netbird

ProfileHasSuffix applies the HasSuffix predicate on the "profile" field.

func ProfileIn

func ProfileIn(vs ...string) predicate.Netbird

ProfileIn applies the In predicate on the "profile" field.

func ProfileIsNil

func ProfileIsNil() predicate.Netbird

ProfileIsNil applies the IsNil predicate on the "profile" field.

func ProfileLT

func ProfileLT(v string) predicate.Netbird

ProfileLT applies the LT predicate on the "profile" field.

func ProfileLTE

func ProfileLTE(v string) predicate.Netbird

ProfileLTE applies the LTE predicate on the "profile" field.

func ProfileNEQ

func ProfileNEQ(v string) predicate.Netbird

ProfileNEQ applies the NEQ predicate on the "profile" field.

func ProfileNotIn

func ProfileNotIn(vs ...string) predicate.Netbird

ProfileNotIn applies the NotIn predicate on the "profile" field.

func ProfileNotNil

func ProfileNotNil() predicate.Netbird

ProfileNotNil applies the NotNil predicate on the "profile" field.

func ProfilesAvailable

func ProfilesAvailable(v string) predicate.Netbird

ProfilesAvailable applies equality check predicate on the "profiles_available" field. It's identical to ProfilesAvailableEQ.

func ProfilesAvailableContains

func ProfilesAvailableContains(v string) predicate.Netbird

ProfilesAvailableContains applies the Contains predicate on the "profiles_available" field.

func ProfilesAvailableContainsFold

func ProfilesAvailableContainsFold(v string) predicate.Netbird

ProfilesAvailableContainsFold applies the ContainsFold predicate on the "profiles_available" field.

func ProfilesAvailableEQ

func ProfilesAvailableEQ(v string) predicate.Netbird

ProfilesAvailableEQ applies the EQ predicate on the "profiles_available" field.

func ProfilesAvailableEqualFold

func ProfilesAvailableEqualFold(v string) predicate.Netbird

ProfilesAvailableEqualFold applies the EqualFold predicate on the "profiles_available" field.

func ProfilesAvailableGT

func ProfilesAvailableGT(v string) predicate.Netbird

ProfilesAvailableGT applies the GT predicate on the "profiles_available" field.

func ProfilesAvailableGTE

func ProfilesAvailableGTE(v string) predicate.Netbird

ProfilesAvailableGTE applies the GTE predicate on the "profiles_available" field.

func ProfilesAvailableHasPrefix

func ProfilesAvailableHasPrefix(v string) predicate.Netbird

ProfilesAvailableHasPrefix applies the HasPrefix predicate on the "profiles_available" field.

func ProfilesAvailableHasSuffix

func ProfilesAvailableHasSuffix(v string) predicate.Netbird

ProfilesAvailableHasSuffix applies the HasSuffix predicate on the "profiles_available" field.

func ProfilesAvailableIn

func ProfilesAvailableIn(vs ...string) predicate.Netbird

ProfilesAvailableIn applies the In predicate on the "profiles_available" field.

func ProfilesAvailableIsNil

func ProfilesAvailableIsNil() predicate.Netbird

ProfilesAvailableIsNil applies the IsNil predicate on the "profiles_available" field.

func ProfilesAvailableLT

func ProfilesAvailableLT(v string) predicate.Netbird

ProfilesAvailableLT applies the LT predicate on the "profiles_available" field.

func ProfilesAvailableLTE

func ProfilesAvailableLTE(v string) predicate.Netbird

ProfilesAvailableLTE applies the LTE predicate on the "profiles_available" field.

func ProfilesAvailableNEQ

func ProfilesAvailableNEQ(v string) predicate.Netbird

ProfilesAvailableNEQ applies the NEQ predicate on the "profiles_available" field.

func ProfilesAvailableNotIn

func ProfilesAvailableNotIn(vs ...string) predicate.Netbird

ProfilesAvailableNotIn applies the NotIn predicate on the "profiles_available" field.

func ProfilesAvailableNotNil

func ProfilesAvailableNotNil() predicate.Netbird

ProfilesAvailableNotNil applies the NotNil predicate on the "profiles_available" field.

func SSHEnabled

func SSHEnabled(v bool) predicate.Netbird

SSHEnabled applies equality check predicate on the "ssh_enabled" field. It's identical to SSHEnabledEQ.

func SSHEnabledEQ

func SSHEnabledEQ(v bool) predicate.Netbird

SSHEnabledEQ applies the EQ predicate on the "ssh_enabled" field.

func SSHEnabledNEQ

func SSHEnabledNEQ(v bool) predicate.Netbird

SSHEnabledNEQ applies the NEQ predicate on the "ssh_enabled" field.

func ServiceStatus

func ServiceStatus(v string) predicate.Netbird

ServiceStatus applies equality check predicate on the "service_status" field. It's identical to ServiceStatusEQ.

func ServiceStatusContains

func ServiceStatusContains(v string) predicate.Netbird

ServiceStatusContains applies the Contains predicate on the "service_status" field.

func ServiceStatusContainsFold

func ServiceStatusContainsFold(v string) predicate.Netbird

ServiceStatusContainsFold applies the ContainsFold predicate on the "service_status" field.

func ServiceStatusEQ

func ServiceStatusEQ(v string) predicate.Netbird

ServiceStatusEQ applies the EQ predicate on the "service_status" field.

func ServiceStatusEqualFold

func ServiceStatusEqualFold(v string) predicate.Netbird

ServiceStatusEqualFold applies the EqualFold predicate on the "service_status" field.

func ServiceStatusGT

func ServiceStatusGT(v string) predicate.Netbird

ServiceStatusGT applies the GT predicate on the "service_status" field.

func ServiceStatusGTE

func ServiceStatusGTE(v string) predicate.Netbird

ServiceStatusGTE applies the GTE predicate on the "service_status" field.

func ServiceStatusHasPrefix

func ServiceStatusHasPrefix(v string) predicate.Netbird

ServiceStatusHasPrefix applies the HasPrefix predicate on the "service_status" field.

func ServiceStatusHasSuffix

func ServiceStatusHasSuffix(v string) predicate.Netbird

ServiceStatusHasSuffix applies the HasSuffix predicate on the "service_status" field.

func ServiceStatusIn

func ServiceStatusIn(vs ...string) predicate.Netbird

ServiceStatusIn applies the In predicate on the "service_status" field.

func ServiceStatusLT

func ServiceStatusLT(v string) predicate.Netbird

ServiceStatusLT applies the LT predicate on the "service_status" field.

func ServiceStatusLTE

func ServiceStatusLTE(v string) predicate.Netbird

ServiceStatusLTE applies the LTE predicate on the "service_status" field.

func ServiceStatusNEQ

func ServiceStatusNEQ(v string) predicate.Netbird

ServiceStatusNEQ applies the NEQ predicate on the "service_status" field.

func ServiceStatusNotIn

func ServiceStatusNotIn(vs ...string) predicate.Netbird

ServiceStatusNotIn applies the NotIn predicate on the "service_status" field.

func SignalConnected

func SignalConnected(v bool) predicate.Netbird

SignalConnected applies equality check predicate on the "signal_connected" field. It's identical to SignalConnectedEQ.

func SignalConnectedEQ

func SignalConnectedEQ(v bool) predicate.Netbird

SignalConnectedEQ applies the EQ predicate on the "signal_connected" field.

func SignalConnectedNEQ

func SignalConnectedNEQ(v bool) predicate.Netbird

SignalConnectedNEQ applies the NEQ predicate on the "signal_connected" field.

func SignalURL

func SignalURL(v string) predicate.Netbird

SignalURL applies equality check predicate on the "signal_url" field. It's identical to SignalURLEQ.

func SignalURLContains

func SignalURLContains(v string) predicate.Netbird

SignalURLContains applies the Contains predicate on the "signal_url" field.

func SignalURLContainsFold

func SignalURLContainsFold(v string) predicate.Netbird

SignalURLContainsFold applies the ContainsFold predicate on the "signal_url" field.

func SignalURLEQ

func SignalURLEQ(v string) predicate.Netbird

SignalURLEQ applies the EQ predicate on the "signal_url" field.

func SignalURLEqualFold

func SignalURLEqualFold(v string) predicate.Netbird

SignalURLEqualFold applies the EqualFold predicate on the "signal_url" field.

func SignalURLGT

func SignalURLGT(v string) predicate.Netbird

SignalURLGT applies the GT predicate on the "signal_url" field.

func SignalURLGTE

func SignalURLGTE(v string) predicate.Netbird

SignalURLGTE applies the GTE predicate on the "signal_url" field.

func SignalURLHasPrefix

func SignalURLHasPrefix(v string) predicate.Netbird

SignalURLHasPrefix applies the HasPrefix predicate on the "signal_url" field.

func SignalURLHasSuffix

func SignalURLHasSuffix(v string) predicate.Netbird

SignalURLHasSuffix applies the HasSuffix predicate on the "signal_url" field.

func SignalURLIn

func SignalURLIn(vs ...string) predicate.Netbird

SignalURLIn applies the In predicate on the "signal_url" field.

func SignalURLIsNil

func SignalURLIsNil() predicate.Netbird

SignalURLIsNil applies the IsNil predicate on the "signal_url" field.

func SignalURLLT

func SignalURLLT(v string) predicate.Netbird

SignalURLLT applies the LT predicate on the "signal_url" field.

func SignalURLLTE

func SignalURLLTE(v string) predicate.Netbird

SignalURLLTE applies the LTE predicate on the "signal_url" field.

func SignalURLNEQ

func SignalURLNEQ(v string) predicate.Netbird

SignalURLNEQ applies the NEQ predicate on the "signal_url" field.

func SignalURLNotIn

func SignalURLNotIn(vs ...string) predicate.Netbird

SignalURLNotIn applies the NotIn predicate on the "signal_url" field.

func SignalURLNotNil

func SignalURLNotNil() predicate.Netbird

SignalURLNotNil applies the NotNil predicate on the "signal_url" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Version

func Version(v string) predicate.Netbird

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Netbird

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Netbird

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Netbird

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Netbird

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Netbird

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Netbird

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Netbird

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Netbird

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Netbird

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Netbird

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Netbird

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Netbird

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Netbird

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Netbird queries.

func ByDNSServer

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

ByDNSServer orders the results by the dns_server field.

func ByID

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

ByID orders the results by the id field.

func ByIP

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

ByIP orders the results by the ip field.

func ByInstalled

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

ByInstalled orders the results by the installed field.

func ByManagementConnected

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

ByManagementConnected orders the results by the management_connected field.

func ByManagementURL

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

ByManagementURL orders the results by the management_url field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByPeersConnected

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

ByPeersConnected orders the results by the peers_connected field.

func ByPeersTotal

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

ByPeersTotal orders the results by the peers_total field.

func ByProfile

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

ByProfile orders the results by the profile field.

func ByProfilesAvailable

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

ByProfilesAvailable orders the results by the profiles_available field.

func BySSHEnabled

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

BySSHEnabled orders the results by the ssh_enabled field.

func ByServiceStatus

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

ByServiceStatus orders the results by the service_status field.

func BySignalConnected

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

BySignalConnected orders the results by the signal_connected field.

func BySignalURL

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

BySignalURL orders the results by the signal_url field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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