Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Port) predicate.Port
- func Bind(v int) predicate.Port
- func BindEQ(v int) predicate.Port
- func BindGT(v int) predicate.Port
- func BindGTE(v int) predicate.Port
- func BindIn(vs ...int) predicate.Port
- func BindLT(v int) predicate.Port
- func BindLTE(v int) predicate.Port
- func BindNEQ(v int) predicate.Port
- func BindNotIn(vs ...int) predicate.Port
- func CreatedAt(v int64) predicate.Port
- func CreatedAtEQ(v int64) predicate.Port
- func CreatedAtGT(v int64) predicate.Port
- func CreatedAtGTE(v int64) predicate.Port
- func CreatedAtIn(vs ...int64) predicate.Port
- func CreatedAtLT(v int64) predicate.Port
- func CreatedAtLTE(v int64) predicate.Port
- func CreatedAtNEQ(v int64) predicate.Port
- func CreatedAtNotIn(vs ...int64) predicate.Port
- func HasOwner() predicate.Port
- func HasOwnerWith(preds ...predicate.Container) predicate.Port
- func Host(v int) predicate.Port
- func HostEQ(v int) predicate.Port
- func HostGT(v int) predicate.Port
- func HostGTE(v int) predicate.Port
- func HostIn(vs ...int) predicate.Port
- func HostLT(v int) predicate.Port
- func HostLTE(v int) predicate.Port
- func HostNEQ(v int) predicate.Port
- func HostNotIn(vs ...int) predicate.Port
- func ID(id int) predicate.Port
- func IDEQ(id int) predicate.Port
- func IDGT(id int) predicate.Port
- func IDGTE(id int) predicate.Port
- func IDIn(ids ...int) predicate.Port
- func IDLT(id int) predicate.Port
- func IDLTE(id int) predicate.Port
- func IDNEQ(id int) predicate.Port
- func IDNotIn(ids ...int) predicate.Port
- func Not(p predicate.Port) predicate.Port
- func Or(predicates ...predicate.Port) predicate.Port
- func Protocol(v int) predicate.Port
- func ProtocolEQ(v int) predicate.Port
- func ProtocolGT(v int) predicate.Port
- func ProtocolGTE(v int) predicate.Port
- func ProtocolIn(vs ...int) predicate.Port
- func ProtocolLT(v int) predicate.Port
- func ProtocolLTE(v int) predicate.Port
- func ProtocolNEQ(v int) predicate.Port
- func ProtocolNotIn(vs ...int) predicate.Port
- func UpdatedAt(v int64) predicate.Port
- func UpdatedAtEQ(v int64) predicate.Port
- func UpdatedAtGT(v int64) predicate.Port
- func UpdatedAtGTE(v int64) predicate.Port
- func UpdatedAtIn(vs ...int64) predicate.Port
- func UpdatedAtLT(v int64) predicate.Port
- func UpdatedAtLTE(v int64) predicate.Port
- func UpdatedAtNEQ(v int64) predicate.Port
- func UpdatedAtNotIn(vs ...int64) predicate.Port
- func ValidColumn(column string) bool
- type OrderOption
- func ByBind(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHost(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOwner(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOwnerCount(opts ...sql.OrderTermOption) OrderOption
- func ByProtocol(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldHost, FieldBind, FieldProtocol, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for port fields.
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 CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func Protocol ¶
Protocol applies equality check predicate on the "protocol" field. It's identical to ProtocolEQ.
func ProtocolEQ ¶
ProtocolEQ applies the EQ predicate on the "protocol" field.
func ProtocolGT ¶
ProtocolGT applies the GT predicate on the "protocol" field.
func ProtocolGTE ¶
ProtocolGTE applies the GTE predicate on the "protocol" field.
func ProtocolIn ¶
ProtocolIn applies the In predicate on the "protocol" field.
func ProtocolLT ¶
ProtocolLT applies the LT predicate on the "protocol" field.
func ProtocolLTE ¶
ProtocolLTE applies the LTE predicate on the "protocol" field.
func ProtocolNEQ ¶
ProtocolNEQ applies the NEQ predicate on the "protocol" field.
func ProtocolNotIn ¶
ProtocolNotIn applies the NotIn predicate on the "protocol" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.