Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v uuid.UUID) predicate.StorageProvider
- func AgentIDEQ(v uuid.UUID) predicate.StorageProvider
- func AgentIDGT(v uuid.UUID) predicate.StorageProvider
- func AgentIDGTE(v uuid.UUID) predicate.StorageProvider
- func AgentIDIn(vs ...uuid.UUID) predicate.StorageProvider
- func AgentIDLT(v uuid.UUID) predicate.StorageProvider
- func AgentIDLTE(v uuid.UUID) predicate.StorageProvider
- func AgentIDNEQ(v uuid.UUID) predicate.StorageProvider
- func AgentIDNotIn(vs ...uuid.UUID) predicate.StorageProvider
- func And(predicates ...predicate.StorageProvider) predicate.StorageProvider
- func CreatedTime(v time.Time) predicate.StorageProvider
- func CreatedTimeEQ(v time.Time) predicate.StorageProvider
- func CreatedTimeGT(v time.Time) predicate.StorageProvider
- func CreatedTimeGTE(v time.Time) predicate.StorageProvider
- func CreatedTimeIn(vs ...time.Time) predicate.StorageProvider
- func CreatedTimeLT(v time.Time) predicate.StorageProvider
- func CreatedTimeLTE(v time.Time) predicate.StorageProvider
- func CreatedTimeNEQ(v time.Time) predicate.StorageProvider
- func CreatedTimeNotIn(vs ...time.Time) predicate.StorageProvider
- func GrpcPort(v int32) predicate.StorageProvider
- func GrpcPortEQ(v int32) predicate.StorageProvider
- func GrpcPortGT(v int32) predicate.StorageProvider
- func GrpcPortGTE(v int32) predicate.StorageProvider
- func GrpcPortIn(vs ...int32) predicate.StorageProvider
- func GrpcPortLT(v int32) predicate.StorageProvider
- func GrpcPortLTE(v int32) predicate.StorageProvider
- func GrpcPortNEQ(v int32) predicate.StorageProvider
- func GrpcPortNotIn(vs ...int32) predicate.StorageProvider
- func ID(id uuid.UUID) predicate.StorageProvider
- func IDEQ(id uuid.UUID) predicate.StorageProvider
- func IDGT(id uuid.UUID) predicate.StorageProvider
- func IDGTE(id uuid.UUID) predicate.StorageProvider
- func IDIn(ids ...uuid.UUID) predicate.StorageProvider
- func IDLT(id uuid.UUID) predicate.StorageProvider
- func IDLTE(id uuid.UUID) predicate.StorageProvider
- func IDNEQ(id uuid.UUID) predicate.StorageProvider
- func IDNotIn(ids ...uuid.UUID) predicate.StorageProvider
- func MasterServer(v string) predicate.StorageProvider
- func MasterServerContains(v string) predicate.StorageProvider
- func MasterServerContainsFold(v string) predicate.StorageProvider
- func MasterServerEQ(v string) predicate.StorageProvider
- func MasterServerEqualFold(v string) predicate.StorageProvider
- func MasterServerGT(v string) predicate.StorageProvider
- func MasterServerGTE(v string) predicate.StorageProvider
- func MasterServerHasPrefix(v string) predicate.StorageProvider
- func MasterServerHasSuffix(v string) predicate.StorageProvider
- func MasterServerIn(vs ...string) predicate.StorageProvider
- func MasterServerLT(v string) predicate.StorageProvider
- func MasterServerLTE(v string) predicate.StorageProvider
- func MasterServerNEQ(v string) predicate.StorageProvider
- func MasterServerNotIn(vs ...string) predicate.StorageProvider
- func Not(p predicate.StorageProvider) predicate.StorageProvider
- func Or(predicates ...predicate.StorageProvider) predicate.StorageProvider
- func PublicIP(v string) predicate.StorageProvider
- func PublicIPContains(v string) predicate.StorageProvider
- func PublicIPContainsFold(v string) predicate.StorageProvider
- func PublicIPEQ(v string) predicate.StorageProvider
- func PublicIPEqualFold(v string) predicate.StorageProvider
- func PublicIPGT(v string) predicate.StorageProvider
- func PublicIPGTE(v string) predicate.StorageProvider
- func PublicIPHasPrefix(v string) predicate.StorageProvider
- func PublicIPHasSuffix(v string) predicate.StorageProvider
- func PublicIPIn(vs ...string) predicate.StorageProvider
- func PublicIPLT(v string) predicate.StorageProvider
- func PublicIPLTE(v string) predicate.StorageProvider
- func PublicIPNEQ(v string) predicate.StorageProvider
- func PublicIPNotIn(vs ...string) predicate.StorageProvider
- func PublicPort(v int32) predicate.StorageProvider
- func PublicPortEQ(v int32) predicate.StorageProvider
- func PublicPortGT(v int32) predicate.StorageProvider
- func PublicPortGTE(v int32) predicate.StorageProvider
- func PublicPortIn(vs ...int32) predicate.StorageProvider
- func PublicPortLT(v int32) predicate.StorageProvider
- func PublicPortLTE(v int32) predicate.StorageProvider
- func PublicPortNEQ(v int32) predicate.StorageProvider
- func PublicPortNotIn(vs ...int32) predicate.StorageProvider
- func Status(v consts.StorageProviderStatus) predicate.StorageProvider
- func StatusEQ(v consts.StorageProviderStatus) predicate.StorageProvider
- func StatusGT(v consts.StorageProviderStatus) predicate.StorageProvider
- func StatusGTE(v consts.StorageProviderStatus) predicate.StorageProvider
- func StatusIn(vs ...consts.StorageProviderStatus) predicate.StorageProvider
- func StatusLT(v consts.StorageProviderStatus) predicate.StorageProvider
- func StatusLTE(v consts.StorageProviderStatus) predicate.StorageProvider
- func StatusNEQ(v consts.StorageProviderStatus) predicate.StorageProvider
- func StatusNotIn(vs ...consts.StorageProviderStatus) predicate.StorageProvider
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedTime(opts ...sql.OrderTermOption) OrderOption
- func ByGrpcPort(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMasterServer(opts ...sql.OrderTermOption) OrderOption
- func ByPublicIP(opts ...sql.OrderTermOption) OrderOption
- func ByPublicPort(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the storageprovider type in the database. Label = "storage_provider" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAgentID holds the string denoting the agent_id field in the database. FieldAgentID = "agent_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldMasterServer holds the string denoting the master_server field in the database. FieldMasterServer = "master_server" // FieldPublicIP holds the string denoting the public_ip field in the database. FieldPublicIP = "public_ip" // FieldPublicPort holds the string denoting the public_port field in the database. FieldPublicPort = "public_port" // FieldGrpcPort holds the string denoting the grpc_port field in the database. FieldGrpcPort = "grpc_port" // FieldCreatedTime holds the string denoting the created_time field in the database. FieldCreatedTime = "created_time" // Table holds the table name of the storageprovider in the database. Table = "storage_providers" )
Variables ¶
var ( // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus consts.StorageProviderStatus // MasterServerValidator is a validator for the "master_server" field. It is called by the builders before save. MasterServerValidator func(string) error // PublicIPValidator is a validator for the "public_ip" field. It is called by the builders before save. PublicIPValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldAgentID, FieldStatus, FieldMasterServer, FieldPublicIP, FieldPublicPort, FieldGrpcPort, FieldCreatedTime, }
Columns holds all SQL columns for storageprovider fields.
Functions ¶
func AgentID ¶
func AgentID(v uuid.UUID) predicate.StorageProvider
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDEQ ¶
func AgentIDEQ(v uuid.UUID) predicate.StorageProvider
AgentIDEQ applies the EQ predicate on the "agent_id" field.
func AgentIDGT ¶
func AgentIDGT(v uuid.UUID) predicate.StorageProvider
AgentIDGT applies the GT predicate on the "agent_id" field.
func AgentIDGTE ¶
func AgentIDGTE(v uuid.UUID) predicate.StorageProvider
AgentIDGTE applies the GTE predicate on the "agent_id" field.
func AgentIDIn ¶
func AgentIDIn(vs ...uuid.UUID) predicate.StorageProvider
AgentIDIn applies the In predicate on the "agent_id" field.
func AgentIDLT ¶
func AgentIDLT(v uuid.UUID) predicate.StorageProvider
AgentIDLT applies the LT predicate on the "agent_id" field.
func AgentIDLTE ¶
func AgentIDLTE(v uuid.UUID) predicate.StorageProvider
AgentIDLTE applies the LTE predicate on the "agent_id" field.
func AgentIDNEQ ¶
func AgentIDNEQ(v uuid.UUID) predicate.StorageProvider
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
func AgentIDNotIn(vs ...uuid.UUID) predicate.StorageProvider
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func And ¶
func And(predicates ...predicate.StorageProvider) predicate.StorageProvider
And groups predicates with the AND operator between them.
func CreatedTime ¶
func CreatedTime(v time.Time) predicate.StorageProvider
CreatedTime applies equality check predicate on the "created_time" field. It's identical to CreatedTimeEQ.
func CreatedTimeEQ ¶
func CreatedTimeEQ(v time.Time) predicate.StorageProvider
CreatedTimeEQ applies the EQ predicate on the "created_time" field.
func CreatedTimeGT ¶
func CreatedTimeGT(v time.Time) predicate.StorageProvider
CreatedTimeGT applies the GT predicate on the "created_time" field.
func CreatedTimeGTE ¶
func CreatedTimeGTE(v time.Time) predicate.StorageProvider
CreatedTimeGTE applies the GTE predicate on the "created_time" field.
func CreatedTimeIn ¶
func CreatedTimeIn(vs ...time.Time) predicate.StorageProvider
CreatedTimeIn applies the In predicate on the "created_time" field.
func CreatedTimeLT ¶
func CreatedTimeLT(v time.Time) predicate.StorageProvider
CreatedTimeLT applies the LT predicate on the "created_time" field.
func CreatedTimeLTE ¶
func CreatedTimeLTE(v time.Time) predicate.StorageProvider
CreatedTimeLTE applies the LTE predicate on the "created_time" field.
func CreatedTimeNEQ ¶
func CreatedTimeNEQ(v time.Time) predicate.StorageProvider
CreatedTimeNEQ applies the NEQ predicate on the "created_time" field.
func CreatedTimeNotIn ¶
func CreatedTimeNotIn(vs ...time.Time) predicate.StorageProvider
CreatedTimeNotIn applies the NotIn predicate on the "created_time" field.
func GrpcPort ¶
func GrpcPort(v int32) predicate.StorageProvider
GrpcPort applies equality check predicate on the "grpc_port" field. It's identical to GrpcPortEQ.
func GrpcPortEQ ¶
func GrpcPortEQ(v int32) predicate.StorageProvider
GrpcPortEQ applies the EQ predicate on the "grpc_port" field.
func GrpcPortGT ¶
func GrpcPortGT(v int32) predicate.StorageProvider
GrpcPortGT applies the GT predicate on the "grpc_port" field.
func GrpcPortGTE ¶
func GrpcPortGTE(v int32) predicate.StorageProvider
GrpcPortGTE applies the GTE predicate on the "grpc_port" field.
func GrpcPortIn ¶
func GrpcPortIn(vs ...int32) predicate.StorageProvider
GrpcPortIn applies the In predicate on the "grpc_port" field.
func GrpcPortLT ¶
func GrpcPortLT(v int32) predicate.StorageProvider
GrpcPortLT applies the LT predicate on the "grpc_port" field.
func GrpcPortLTE ¶
func GrpcPortLTE(v int32) predicate.StorageProvider
GrpcPortLTE applies the LTE predicate on the "grpc_port" field.
func GrpcPortNEQ ¶
func GrpcPortNEQ(v int32) predicate.StorageProvider
GrpcPortNEQ applies the NEQ predicate on the "grpc_port" field.
func GrpcPortNotIn ¶
func GrpcPortNotIn(vs ...int32) predicate.StorageProvider
GrpcPortNotIn applies the NotIn predicate on the "grpc_port" field.
func ID ¶
func ID(id uuid.UUID) predicate.StorageProvider
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.StorageProvider
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.StorageProvider
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.StorageProvider
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.StorageProvider
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.StorageProvider
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.StorageProvider
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.StorageProvider
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.StorageProvider
IDNotIn applies the NotIn predicate on the ID field.
func MasterServer ¶
func MasterServer(v string) predicate.StorageProvider
MasterServer applies equality check predicate on the "master_server" field. It's identical to MasterServerEQ.
func MasterServerContains ¶
func MasterServerContains(v string) predicate.StorageProvider
MasterServerContains applies the Contains predicate on the "master_server" field.
func MasterServerContainsFold ¶
func MasterServerContainsFold(v string) predicate.StorageProvider
MasterServerContainsFold applies the ContainsFold predicate on the "master_server" field.
func MasterServerEQ ¶
func MasterServerEQ(v string) predicate.StorageProvider
MasterServerEQ applies the EQ predicate on the "master_server" field.
func MasterServerEqualFold ¶
func MasterServerEqualFold(v string) predicate.StorageProvider
MasterServerEqualFold applies the EqualFold predicate on the "master_server" field.
func MasterServerGT ¶
func MasterServerGT(v string) predicate.StorageProvider
MasterServerGT applies the GT predicate on the "master_server" field.
func MasterServerGTE ¶
func MasterServerGTE(v string) predicate.StorageProvider
MasterServerGTE applies the GTE predicate on the "master_server" field.
func MasterServerHasPrefix ¶
func MasterServerHasPrefix(v string) predicate.StorageProvider
MasterServerHasPrefix applies the HasPrefix predicate on the "master_server" field.
func MasterServerHasSuffix ¶
func MasterServerHasSuffix(v string) predicate.StorageProvider
MasterServerHasSuffix applies the HasSuffix predicate on the "master_server" field.
func MasterServerIn ¶
func MasterServerIn(vs ...string) predicate.StorageProvider
MasterServerIn applies the In predicate on the "master_server" field.
func MasterServerLT ¶
func MasterServerLT(v string) predicate.StorageProvider
MasterServerLT applies the LT predicate on the "master_server" field.
func MasterServerLTE ¶
func MasterServerLTE(v string) predicate.StorageProvider
MasterServerLTE applies the LTE predicate on the "master_server" field.
func MasterServerNEQ ¶
func MasterServerNEQ(v string) predicate.StorageProvider
MasterServerNEQ applies the NEQ predicate on the "master_server" field.
func MasterServerNotIn ¶
func MasterServerNotIn(vs ...string) predicate.StorageProvider
MasterServerNotIn applies the NotIn predicate on the "master_server" field.
func Not ¶
func Not(p predicate.StorageProvider) predicate.StorageProvider
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.StorageProvider) predicate.StorageProvider
Or groups predicates with the OR operator between them.
func PublicIP ¶
func PublicIP(v string) predicate.StorageProvider
PublicIP applies equality check predicate on the "public_ip" field. It's identical to PublicIPEQ.
func PublicIPContains ¶
func PublicIPContains(v string) predicate.StorageProvider
PublicIPContains applies the Contains predicate on the "public_ip" field.
func PublicIPContainsFold ¶
func PublicIPContainsFold(v string) predicate.StorageProvider
PublicIPContainsFold applies the ContainsFold predicate on the "public_ip" field.
func PublicIPEQ ¶
func PublicIPEQ(v string) predicate.StorageProvider
PublicIPEQ applies the EQ predicate on the "public_ip" field.
func PublicIPEqualFold ¶
func PublicIPEqualFold(v string) predicate.StorageProvider
PublicIPEqualFold applies the EqualFold predicate on the "public_ip" field.
func PublicIPGT ¶
func PublicIPGT(v string) predicate.StorageProvider
PublicIPGT applies the GT predicate on the "public_ip" field.
func PublicIPGTE ¶
func PublicIPGTE(v string) predicate.StorageProvider
PublicIPGTE applies the GTE predicate on the "public_ip" field.
func PublicIPHasPrefix ¶
func PublicIPHasPrefix(v string) predicate.StorageProvider
PublicIPHasPrefix applies the HasPrefix predicate on the "public_ip" field.
func PublicIPHasSuffix ¶
func PublicIPHasSuffix(v string) predicate.StorageProvider
PublicIPHasSuffix applies the HasSuffix predicate on the "public_ip" field.
func PublicIPIn ¶
func PublicIPIn(vs ...string) predicate.StorageProvider
PublicIPIn applies the In predicate on the "public_ip" field.
func PublicIPLT ¶
func PublicIPLT(v string) predicate.StorageProvider
PublicIPLT applies the LT predicate on the "public_ip" field.
func PublicIPLTE ¶
func PublicIPLTE(v string) predicate.StorageProvider
PublicIPLTE applies the LTE predicate on the "public_ip" field.
func PublicIPNEQ ¶
func PublicIPNEQ(v string) predicate.StorageProvider
PublicIPNEQ applies the NEQ predicate on the "public_ip" field.
func PublicIPNotIn ¶
func PublicIPNotIn(vs ...string) predicate.StorageProvider
PublicIPNotIn applies the NotIn predicate on the "public_ip" field.
func PublicPort ¶
func PublicPort(v int32) predicate.StorageProvider
PublicPort applies equality check predicate on the "public_port" field. It's identical to PublicPortEQ.
func PublicPortEQ ¶
func PublicPortEQ(v int32) predicate.StorageProvider
PublicPortEQ applies the EQ predicate on the "public_port" field.
func PublicPortGT ¶
func PublicPortGT(v int32) predicate.StorageProvider
PublicPortGT applies the GT predicate on the "public_port" field.
func PublicPortGTE ¶
func PublicPortGTE(v int32) predicate.StorageProvider
PublicPortGTE applies the GTE predicate on the "public_port" field.
func PublicPortIn ¶
func PublicPortIn(vs ...int32) predicate.StorageProvider
PublicPortIn applies the In predicate on the "public_port" field.
func PublicPortLT ¶
func PublicPortLT(v int32) predicate.StorageProvider
PublicPortLT applies the LT predicate on the "public_port" field.
func PublicPortLTE ¶
func PublicPortLTE(v int32) predicate.StorageProvider
PublicPortLTE applies the LTE predicate on the "public_port" field.
func PublicPortNEQ ¶
func PublicPortNEQ(v int32) predicate.StorageProvider
PublicPortNEQ applies the NEQ predicate on the "public_port" field.
func PublicPortNotIn ¶
func PublicPortNotIn(vs ...int32) predicate.StorageProvider
PublicPortNotIn applies the NotIn predicate on the "public_port" field.
func Status ¶
func Status(v consts.StorageProviderStatus) predicate.StorageProvider
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusEQ ¶
func StatusEQ(v consts.StorageProviderStatus) predicate.StorageProvider
StatusEQ applies the EQ predicate on the "status" field.
func StatusGT ¶
func StatusGT(v consts.StorageProviderStatus) predicate.StorageProvider
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v consts.StorageProviderStatus) predicate.StorageProvider
StatusGTE applies the GTE predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...consts.StorageProviderStatus) predicate.StorageProvider
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v consts.StorageProviderStatus) predicate.StorageProvider
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v consts.StorageProviderStatus) predicate.StorageProvider
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v consts.StorageProviderStatus) predicate.StorageProvider
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...consts.StorageProviderStatus) predicate.StorageProvider
StatusNotIn applies the NotIn predicate on the "status" 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 StorageProvider queries.
func ByAgentID ¶
func ByAgentID(opts ...sql.OrderTermOption) OrderOption
ByAgentID orders the results by the agent_id field.
func ByCreatedTime ¶
func ByCreatedTime(opts ...sql.OrderTermOption) OrderOption
ByCreatedTime orders the results by the created_time field.
func ByGrpcPort ¶
func ByGrpcPort(opts ...sql.OrderTermOption) OrderOption
ByGrpcPort orders the results by the grpc_port field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMasterServer ¶
func ByMasterServer(opts ...sql.OrderTermOption) OrderOption
ByMasterServer orders the results by the master_server field.
func ByPublicIP ¶
func ByPublicIP(opts ...sql.OrderTermOption) OrderOption
ByPublicIP orders the results by the public_ip field.
func ByPublicPort ¶
func ByPublicPort(opts ...sql.OrderTermOption) OrderOption
ByPublicPort orders the results by the public_port field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.