deploymentnode

package
v0.0.0-...-e59a564 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the deploymentnode type in the database.
	Label = "deployment_node"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldVars holds the string denoting the vars field in the database.
	FieldVars = "vars"
	// EdgeDeployment holds the string denoting the deployment edge name in mutations.
	EdgeDeployment = "deployment"
	// EdgeResource holds the string denoting the resource edge name in mutations.
	EdgeResource = "resource"
	// EdgePrevNodes holds the string denoting the prev_nodes edge name in mutations.
	EdgePrevNodes = "prev_nodes"
	// EdgeNextNodes holds the string denoting the next_nodes edge name in mutations.
	EdgeNextNodes = "next_nodes"
	// Table holds the table name of the deploymentnode in the database.
	Table = "deployment_nodes"
	// DeploymentTable is the table that holds the deployment relation/edge.
	DeploymentTable = "deployment_nodes"
	// DeploymentInverseTable is the table name for the Deployment entity.
	// It exists in this package in order to avoid circular dependency with the "deployment" package.
	DeploymentInverseTable = "deployments"
	// DeploymentColumn is the table column denoting the deployment relation/edge.
	DeploymentColumn = "deployment_node_deployment"
	// ResourceTable is the table that holds the resource relation/edge.
	ResourceTable = "deployment_nodes"
	// ResourceInverseTable is the table name for the Resource entity.
	// It exists in this package in order to avoid circular dependency with the "resource" package.
	ResourceInverseTable = "resources"
	// ResourceColumn is the table column denoting the resource relation/edge.
	ResourceColumn = "deployment_node_resource"
	// PrevNodesTable is the table that holds the prev_nodes relation/edge. The primary key declared below.
	PrevNodesTable = "deployment_node_next_nodes"
	// NextNodesTable is the table that holds the next_nodes relation/edge. The primary key declared below.
	NextNodesTable = "deployment_node_next_nodes"
)

Variables

View Source
var (
	// PrevNodesPrimaryKey and PrevNodesColumn2 are the table columns denoting the
	// primary key for the prev_nodes relation (M2M).
	PrevNodesPrimaryKey = []string{"deployment_node_id", "prev_node_id"}
	// NextNodesPrimaryKey and NextNodesColumn2 are the table columns denoting the
	// primary key for the next_nodes relation (M2M).
	NextNodesPrimaryKey = []string{"deployment_node_id", "prev_node_id"}
)
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
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultVars holds the default value on creation for the "vars" field.
	DefaultVars map[string]string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for deploymentnode fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.DeploymentNode

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.DeploymentNode

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.DeploymentNode

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.DeploymentNode

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.DeploymentNode

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.DeploymentNode

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.DeploymentNode

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

func CreatedAtNotIn

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

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

func HasDeployment

func HasDeployment() predicate.DeploymentNode

HasDeployment applies the HasEdge predicate on the "deployment" edge.

func HasDeploymentWith

func HasDeploymentWith(preds ...predicate.Deployment) predicate.DeploymentNode

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

func HasNextNodes

func HasNextNodes() predicate.DeploymentNode

HasNextNodes applies the HasEdge predicate on the "next_nodes" edge.

func HasNextNodesWith

func HasNextNodesWith(preds ...predicate.DeploymentNode) predicate.DeploymentNode

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

func HasPrevNodes

func HasPrevNodes() predicate.DeploymentNode

HasPrevNodes applies the HasEdge predicate on the "prev_nodes" edge.

func HasPrevNodesWith

func HasPrevNodesWith(preds ...predicate.DeploymentNode) predicate.DeploymentNode

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

func HasResource

func HasResource() predicate.DeploymentNode

HasResource applies the HasEdge predicate on the "resource" edge.

func HasResourceWith

func HasResourceWith(preds ...predicate.Resource) predicate.DeploymentNode

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

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.DeploymentNode

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.DeploymentNode

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func StateEQ

func StateEQ(v State) predicate.DeploymentNode

StateEQ applies the EQ predicate on the "state" field.

func StateIn

func StateIn(vs ...State) predicate.DeploymentNode

StateIn applies the In predicate on the "state" field.

func StateNEQ

func StateNEQ(v State) predicate.DeploymentNode

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...State) predicate.DeploymentNode

StateNotIn applies the NotIn predicate on the "state" field.

func StateValidator

func StateValidator(s State) error

StateValidator is a validator for the "state" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.DeploymentNode

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.DeploymentNode

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.DeploymentNode

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.DeploymentNode

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.DeploymentNode

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.DeploymentNode

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.DeploymentNode

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

func UpdatedAtNotIn

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

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 DeploymentNode queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeploymentField

func ByDeploymentField(field string, opts ...sql.OrderTermOption) OrderOption

ByDeploymentField orders the results by deployment field.

func ByID

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

ByID orders the results by the id field.

func ByNextNodes

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

ByNextNodes orders the results by next_nodes terms.

func ByNextNodesCount

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

ByNextNodesCount orders the results by next_nodes count.

func ByPrevNodes

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

ByPrevNodes orders the results by prev_nodes terms.

func ByPrevNodesCount

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

ByPrevNodesCount orders the results by prev_nodes count.

func ByResourceField

func ByResourceField(field string, opts ...sql.OrderTermOption) OrderOption

ByResourceField orders the results by resource field.

func ByState

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

ByState orders the results by the state field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

type State

type State string

State defines the type for the "state" enum field.

const (
	StateToDeploy       State = "to_deploy"
	StateToDestroy      State = "to_destroy"
	StateToRedeploy     State = "to_redeploy"
	StateParentAwaiting State = "parent_awaiting"
	StateChildAwaiting  State = "child_awaiting"
	StateInProgress     State = "in_progress"
	StateComplete       State = "complete"
	StateTainted        State = "tainted"
	StateFailed         State = "failed"
	StateDestroyed      State = "destroyed"
)

State values.

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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