namespace

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the namespace type in the database.
	Label = "namespace"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// EdgeWorkflows holds the string denoting the workflows edge name in mutations.
	EdgeWorkflows = "workflows"
	// Table holds the table name of the namespace in the database.
	Table = "namespaces"
	// WorkflowsTable is the table that holds the workflows relation/edge.
	WorkflowsTable = "workflows"
	// WorkflowsInverseTable is the table name for the Workflow entity.
	// It exists in this package in order to avoid circular dependency with the "workflow" package.
	WorkflowsInverseTable = "workflows"
	// WorkflowsColumn is the table column denoting the workflows relation/edge.
	WorkflowsColumn = "namespace_workflows"
)

Variables

View Source
var (
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)
View Source
var Columns = []string{
	FieldID,
	FieldCreated,
}

Columns holds all SQL columns for namespace fields.

Functions

func And

func And(predicates ...predicate.Namespace) predicate.Namespace

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.Namespace

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Namespace

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.Namespace

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Namespace

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.Namespace

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.Namespace

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Namespace

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Namespace

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.Namespace

CreatedNotIn applies the NotIn predicate on the "created" field.

func HasWorkflows

func HasWorkflows() predicate.Namespace

HasWorkflows applies the HasEdge predicate on the "workflows" edge.

func HasWorkflowsWith

func HasWorkflowsWith(preds ...predicate.Workflow) predicate.Namespace

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

func ID

func ID(id string) predicate.Namespace

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Namespace

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Namespace

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Namespace

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Namespace

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Namespace

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Namespace

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Namespace

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Namespace

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

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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