storageprovider

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for storageprovider fields.

Functions

func AgentID

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

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

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

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

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

StatusIn applies the In predicate on the "status" field.

func StatusLT

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

StatusNotIn applies the NotIn predicate on the "status" 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 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.

Jump to

Keyboard shortcuts

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