netstat

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

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the netstat type in the database.
	Label = "netstat"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAddr holds the string denoting the addr field in the database.
	FieldAddr = "addr"
	// FieldPort holds the string denoting the port field in the database.
	FieldPort = "port"
	// FieldProto holds the string denoting the proto field in the database.
	FieldProto = "proto"
	// FieldProcess holds the string denoting the process field in the database.
	FieldProcess = "process"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeHostID holds the string denoting the host_id edge name in mutations.
	EdgeHostID = "host_id"
	// Table holds the table name of the netstat in the database.
	Table = "netstats"
	// HostIDTable is the table that holds the host_id relation/edge.
	HostIDTable = "netstats"
	// HostIDInverseTable is the table name for the Host entity.
	// It exists in this package in order to avoid circular dependency with the "host" package.
	HostIDInverseTable = "hosts"
	// HostIDColumn is the table column denoting the host_id relation/edge.
	HostIDColumn = "host_netstat"
)

Variables

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

Columns holds all SQL columns for netstat fields.

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

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

Functions

func Addr

func Addr(v string) predicate.Netstat

Addr applies equality check predicate on the "addr" field. It's identical to AddrEQ.

func AddrContains

func AddrContains(v string) predicate.Netstat

AddrContains applies the Contains predicate on the "addr" field.

func AddrContainsFold

func AddrContainsFold(v string) predicate.Netstat

AddrContainsFold applies the ContainsFold predicate on the "addr" field.

func AddrEQ

func AddrEQ(v string) predicate.Netstat

AddrEQ applies the EQ predicate on the "addr" field.

func AddrEqualFold

func AddrEqualFold(v string) predicate.Netstat

AddrEqualFold applies the EqualFold predicate on the "addr" field.

func AddrGT

func AddrGT(v string) predicate.Netstat

AddrGT applies the GT predicate on the "addr" field.

func AddrGTE

func AddrGTE(v string) predicate.Netstat

AddrGTE applies the GTE predicate on the "addr" field.

func AddrHasPrefix

func AddrHasPrefix(v string) predicate.Netstat

AddrHasPrefix applies the HasPrefix predicate on the "addr" field.

func AddrHasSuffix

func AddrHasSuffix(v string) predicate.Netstat

AddrHasSuffix applies the HasSuffix predicate on the "addr" field.

func AddrIn

func AddrIn(vs ...string) predicate.Netstat

AddrIn applies the In predicate on the "addr" field.

func AddrLT

func AddrLT(v string) predicate.Netstat

AddrLT applies the LT predicate on the "addr" field.

func AddrLTE

func AddrLTE(v string) predicate.Netstat

AddrLTE applies the LTE predicate on the "addr" field.

func AddrNEQ

func AddrNEQ(v string) predicate.Netstat

AddrNEQ applies the NEQ predicate on the "addr" field.

func AddrNotIn

func AddrNotIn(vs ...string) predicate.Netstat

AddrNotIn applies the NotIn predicate on the "addr" field.

func And

func And(predicates ...predicate.Netstat) predicate.Netstat

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Netstat

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Netstat

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Netstat

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Netstat

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Netstat

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Netstat

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Netstat

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

func CreatedAtNotIn

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

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

func HasHostID

func HasHostID() predicate.Netstat

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

func HasHostIDWith

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

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

func ID

func ID(id int) predicate.Netstat

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Netstat

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Netstat

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Netstat

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Netstat

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Netstat

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Netstat

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Netstat) predicate.Netstat

Or groups predicates with the OR operator between them.

func Port

func Port(v uint64) predicate.Netstat

Port applies equality check predicate on the "port" field. It's identical to PortEQ.

func PortEQ

func PortEQ(v uint64) predicate.Netstat

PortEQ applies the EQ predicate on the "port" field.

func PortGT

func PortGT(v uint64) predicate.Netstat

PortGT applies the GT predicate on the "port" field.

func PortGTE

func PortGTE(v uint64) predicate.Netstat

PortGTE applies the GTE predicate on the "port" field.

func PortIn

func PortIn(vs ...uint64) predicate.Netstat

PortIn applies the In predicate on the "port" field.

func PortLT

func PortLT(v uint64) predicate.Netstat

PortLT applies the LT predicate on the "port" field.

func PortLTE

func PortLTE(v uint64) predicate.Netstat

PortLTE applies the LTE predicate on the "port" field.

func PortNEQ

func PortNEQ(v uint64) predicate.Netstat

PortNEQ applies the NEQ predicate on the "port" field.

func PortNotIn

func PortNotIn(vs ...uint64) predicate.Netstat

PortNotIn applies the NotIn predicate on the "port" field.

func Process

func Process(v string) predicate.Netstat

Process applies equality check predicate on the "process" field. It's identical to ProcessEQ.

func ProcessContains

func ProcessContains(v string) predicate.Netstat

ProcessContains applies the Contains predicate on the "process" field.

func ProcessContainsFold

func ProcessContainsFold(v string) predicate.Netstat

ProcessContainsFold applies the ContainsFold predicate on the "process" field.

func ProcessEQ

func ProcessEQ(v string) predicate.Netstat

ProcessEQ applies the EQ predicate on the "process" field.

func ProcessEqualFold

func ProcessEqualFold(v string) predicate.Netstat

ProcessEqualFold applies the EqualFold predicate on the "process" field.

func ProcessGT

func ProcessGT(v string) predicate.Netstat

ProcessGT applies the GT predicate on the "process" field.

func ProcessGTE

func ProcessGTE(v string) predicate.Netstat

ProcessGTE applies the GTE predicate on the "process" field.

func ProcessHasPrefix

func ProcessHasPrefix(v string) predicate.Netstat

ProcessHasPrefix applies the HasPrefix predicate on the "process" field.

func ProcessHasSuffix

func ProcessHasSuffix(v string) predicate.Netstat

ProcessHasSuffix applies the HasSuffix predicate on the "process" field.

func ProcessIn

func ProcessIn(vs ...string) predicate.Netstat

ProcessIn applies the In predicate on the "process" field.

func ProcessLT

func ProcessLT(v string) predicate.Netstat

ProcessLT applies the LT predicate on the "process" field.

func ProcessLTE

func ProcessLTE(v string) predicate.Netstat

ProcessLTE applies the LTE predicate on the "process" field.

func ProcessNEQ

func ProcessNEQ(v string) predicate.Netstat

ProcessNEQ applies the NEQ predicate on the "process" field.

func ProcessNotIn

func ProcessNotIn(vs ...string) predicate.Netstat

ProcessNotIn applies the NotIn predicate on the "process" field.

func Proto

func Proto(v string) predicate.Netstat

Proto applies equality check predicate on the "proto" field. It's identical to ProtoEQ.

func ProtoContains

func ProtoContains(v string) predicate.Netstat

ProtoContains applies the Contains predicate on the "proto" field.

func ProtoContainsFold

func ProtoContainsFold(v string) predicate.Netstat

ProtoContainsFold applies the ContainsFold predicate on the "proto" field.

func ProtoEQ

func ProtoEQ(v string) predicate.Netstat

ProtoEQ applies the EQ predicate on the "proto" field.

func ProtoEqualFold

func ProtoEqualFold(v string) predicate.Netstat

ProtoEqualFold applies the EqualFold predicate on the "proto" field.

func ProtoGT

func ProtoGT(v string) predicate.Netstat

ProtoGT applies the GT predicate on the "proto" field.

func ProtoGTE

func ProtoGTE(v string) predicate.Netstat

ProtoGTE applies the GTE predicate on the "proto" field.

func ProtoHasPrefix

func ProtoHasPrefix(v string) predicate.Netstat

ProtoHasPrefix applies the HasPrefix predicate on the "proto" field.

func ProtoHasSuffix

func ProtoHasSuffix(v string) predicate.Netstat

ProtoHasSuffix applies the HasSuffix predicate on the "proto" field.

func ProtoIn

func ProtoIn(vs ...string) predicate.Netstat

ProtoIn applies the In predicate on the "proto" field.

func ProtoLT

func ProtoLT(v string) predicate.Netstat

ProtoLT applies the LT predicate on the "proto" field.

func ProtoLTE

func ProtoLTE(v string) predicate.Netstat

ProtoLTE applies the LTE predicate on the "proto" field.

func ProtoNEQ

func ProtoNEQ(v string) predicate.Netstat

ProtoNEQ applies the NEQ predicate on the "proto" field.

func ProtoNotIn

func ProtoNotIn(vs ...string) predicate.Netstat

ProtoNotIn applies the NotIn predicate on the "proto" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Netstat

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Netstat

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Netstat

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Netstat

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Netstat

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Netstat

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Netstat

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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