port

package
v0.0.0-...-0eef1dd Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the port type in the database.
	Label = "port"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldHost holds the string denoting the host field in the database.
	FieldHost = "host"
	// FieldBind holds the string denoting the bind field in the database.
	FieldBind = "bind"
	// FieldProtocol holds the string denoting the protocol field in the database.
	FieldProtocol = "protocol"
	// 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"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the port in the database.
	Table = "ports"
	// OwnerTable is the table that holds the owner relation/edge. The primary key declared below.
	OwnerTable = "container_ports"
	// OwnerInverseTable is the table name for the Container entity.
	// It exists in this package in order to avoid circular dependency with the "container" package.
	OwnerInverseTable = "containers"
)

Variables

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

Columns holds all SQL columns for port fields.

View Source
var (
	// OwnerPrimaryKey and OwnerColumn2 are the table columns denoting the
	// primary key for the owner relation (M2M).
	OwnerPrimaryKey = []string{"container_id", "port_id"}
)

Functions

func And

func And(predicates ...predicate.Port) predicate.Port

And groups predicates with the AND operator between them.

func Bind

func Bind(v int) predicate.Port

Bind applies equality check predicate on the "bind" field. It's identical to BindEQ.

func BindEQ

func BindEQ(v int) predicate.Port

BindEQ applies the EQ predicate on the "bind" field.

func BindGT

func BindGT(v int) predicate.Port

BindGT applies the GT predicate on the "bind" field.

func BindGTE

func BindGTE(v int) predicate.Port

BindGTE applies the GTE predicate on the "bind" field.

func BindIn

func BindIn(vs ...int) predicate.Port

BindIn applies the In predicate on the "bind" field.

func BindLT

func BindLT(v int) predicate.Port

BindLT applies the LT predicate on the "bind" field.

func BindLTE

func BindLTE(v int) predicate.Port

BindLTE applies the LTE predicate on the "bind" field.

func BindNEQ

func BindNEQ(v int) predicate.Port

BindNEQ applies the NEQ predicate on the "bind" field.

func BindNotIn

func BindNotIn(vs ...int) predicate.Port

BindNotIn applies the NotIn predicate on the "bind" field.

func CreatedAt

func CreatedAt(v int64) predicate.Port

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

func CreatedAtEQ

func CreatedAtEQ(v int64) predicate.Port

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

func CreatedAtGT

func CreatedAtGT(v int64) predicate.Port

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

func CreatedAtGTE

func CreatedAtGTE(v int64) predicate.Port

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

func CreatedAtIn

func CreatedAtIn(vs ...int64) predicate.Port

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

func CreatedAtLT

func CreatedAtLT(v int64) predicate.Port

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

func CreatedAtLTE

func CreatedAtLTE(v int64) predicate.Port

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

func CreatedAtNEQ

func CreatedAtNEQ(v int64) predicate.Port

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

func CreatedAtNotIn

func CreatedAtNotIn(vs ...int64) predicate.Port

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

func HasOwner

func HasOwner() predicate.Port

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

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Container) predicate.Port

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

func Host

func Host(v int) predicate.Port

Host applies equality check predicate on the "host" field. It's identical to HostEQ.

func HostEQ

func HostEQ(v int) predicate.Port

HostEQ applies the EQ predicate on the "host" field.

func HostGT

func HostGT(v int) predicate.Port

HostGT applies the GT predicate on the "host" field.

func HostGTE

func HostGTE(v int) predicate.Port

HostGTE applies the GTE predicate on the "host" field.

func HostIn

func HostIn(vs ...int) predicate.Port

HostIn applies the In predicate on the "host" field.

func HostLT

func HostLT(v int) predicate.Port

HostLT applies the LT predicate on the "host" field.

func HostLTE

func HostLTE(v int) predicate.Port

HostLTE applies the LTE predicate on the "host" field.

func HostNEQ

func HostNEQ(v int) predicate.Port

HostNEQ applies the NEQ predicate on the "host" field.

func HostNotIn

func HostNotIn(vs ...int) predicate.Port

HostNotIn applies the NotIn predicate on the "host" field.

func ID

func ID(id int) predicate.Port

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Port

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Port

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Port

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Port

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Port

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Port

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Port) predicate.Port

Or groups predicates with the OR operator between them.

func Protocol

func Protocol(v int) predicate.Port

Protocol applies equality check predicate on the "protocol" field. It's identical to ProtocolEQ.

func ProtocolEQ

func ProtocolEQ(v int) predicate.Port

ProtocolEQ applies the EQ predicate on the "protocol" field.

func ProtocolGT

func ProtocolGT(v int) predicate.Port

ProtocolGT applies the GT predicate on the "protocol" field.

func ProtocolGTE

func ProtocolGTE(v int) predicate.Port

ProtocolGTE applies the GTE predicate on the "protocol" field.

func ProtocolIn

func ProtocolIn(vs ...int) predicate.Port

ProtocolIn applies the In predicate on the "protocol" field.

func ProtocolLT

func ProtocolLT(v int) predicate.Port

ProtocolLT applies the LT predicate on the "protocol" field.

func ProtocolLTE

func ProtocolLTE(v int) predicate.Port

ProtocolLTE applies the LTE predicate on the "protocol" field.

func ProtocolNEQ

func ProtocolNEQ(v int) predicate.Port

ProtocolNEQ applies the NEQ predicate on the "protocol" field.

func ProtocolNotIn

func ProtocolNotIn(vs ...int) predicate.Port

ProtocolNotIn applies the NotIn predicate on the "protocol" field.

func UpdatedAt

func UpdatedAt(v int64) predicate.Port

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

func UpdatedAtEQ

func UpdatedAtEQ(v int64) predicate.Port

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

func UpdatedAtGT

func UpdatedAtGT(v int64) predicate.Port

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

func UpdatedAtGTE

func UpdatedAtGTE(v int64) predicate.Port

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

func UpdatedAtIn

func UpdatedAtIn(vs ...int64) predicate.Port

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

func UpdatedAtLT

func UpdatedAtLT(v int64) predicate.Port

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

func UpdatedAtLTE

func UpdatedAtLTE(v int64) predicate.Port

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v int64) predicate.Port

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

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...int64) predicate.Port

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Port queries.

func ByBind

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

ByBind orders the results by the bind field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByHost

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

ByHost orders the results by the host field.

func ByID

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

ByID orders the results by the id field.

func ByOwner

func ByOwner(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOwner orders the results by owner terms.

func ByOwnerCount

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

ByOwnerCount orders the results by owner count.

func ByProtocol

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

ByProtocol orders the results by the protocol field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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