namespace

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 5 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 = "oid"
	// 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"
	// FieldConfig holds the string denoting the config field in the database.
	FieldConfig = "config"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// EdgeInodes holds the string denoting the inodes edge name in mutations.
	EdgeInodes = "inodes"
	// EdgeWorkflows holds the string denoting the workflows edge name in mutations.
	EdgeWorkflows = "workflows"
	// EdgeInstances holds the string denoting the instances edge name in mutations.
	EdgeInstances = "instances"
	// EdgeLogs holds the string denoting the logs edge name in mutations.
	EdgeLogs = "logs"
	// EdgeVars holds the string denoting the vars edge name in mutations.
	EdgeVars = "vars"
	// EdgeCloudevents holds the string denoting the cloudevents edge name in mutations.
	EdgeCloudevents = "cloudevents"
	// Table holds the table name of the namespace in the database.
	Table = "namespaces"
	// InodesTable is the table that holds the inodes relation/edge.
	InodesTable = "inodes"
	// InodesInverseTable is the table name for the Inode entity.
	// It exists in this package in order to avoid circular dependency with the "inode" package.
	InodesInverseTable = "inodes"
	// InodesColumn is the table column denoting the inodes relation/edge.
	InodesColumn = "namespace_inodes"
	// 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"
	// InstancesTable is the table that holds the instances relation/edge.
	InstancesTable = "instances"
	// InstancesInverseTable is the table name for the Instance entity.
	// It exists in this package in order to avoid circular dependency with the "instance" package.
	InstancesInverseTable = "instances"
	// InstancesColumn is the table column denoting the instances relation/edge.
	InstancesColumn = "namespace_instances"
	// LogsTable is the table that holds the logs relation/edge.
	LogsTable = "log_msgs"
	// LogsInverseTable is the table name for the LogMsg entity.
	// It exists in this package in order to avoid circular dependency with the "logmsg" package.
	LogsInverseTable = "log_msgs"
	// LogsColumn is the table column denoting the logs relation/edge.
	LogsColumn = "namespace_logs"
	// VarsTable is the table that holds the vars relation/edge.
	VarsTable = "var_refs"
	// VarsInverseTable is the table name for the VarRef entity.
	// It exists in this package in order to avoid circular dependency with the "varref" package.
	VarsInverseTable = "var_refs"
	// VarsColumn is the table column denoting the vars relation/edge.
	VarsColumn = "namespace_vars"
	// CloudeventsTable is the table that holds the cloudevents relation/edge.
	CloudeventsTable = "cloud_events"
	// CloudeventsInverseTable is the table name for the CloudEvents entity.
	// It exists in this package in order to avoid circular dependency with the "cloudevents" package.
	CloudeventsInverseTable = "cloud_events"
	// CloudeventsColumn is the table column denoting the cloudevents relation/edge.
	CloudeventsColumn = "namespace_cloudevents"
)

Variables

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
	// DefaultConfig holds the default value on creation for the "config" field.
	DefaultConfig string
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

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 Config added in v0.5.5

func Config(v string) predicate.Namespace

Config applies equality check predicate on the "config" field. It's identical to ConfigEQ.

func ConfigContains added in v0.5.5

func ConfigContains(v string) predicate.Namespace

ConfigContains applies the Contains predicate on the "config" field.

func ConfigContainsFold added in v0.5.5

func ConfigContainsFold(v string) predicate.Namespace

ConfigContainsFold applies the ContainsFold predicate on the "config" field.

func ConfigEQ added in v0.5.5

func ConfigEQ(v string) predicate.Namespace

ConfigEQ applies the EQ predicate on the "config" field.

func ConfigEqualFold added in v0.5.5

func ConfigEqualFold(v string) predicate.Namespace

ConfigEqualFold applies the EqualFold predicate on the "config" field.

func ConfigGT added in v0.5.5

func ConfigGT(v string) predicate.Namespace

ConfigGT applies the GT predicate on the "config" field.

func ConfigGTE added in v0.5.5

func ConfigGTE(v string) predicate.Namespace

ConfigGTE applies the GTE predicate on the "config" field.

func ConfigHasPrefix added in v0.5.5

func ConfigHasPrefix(v string) predicate.Namespace

ConfigHasPrefix applies the HasPrefix predicate on the "config" field.

func ConfigHasSuffix added in v0.5.5

func ConfigHasSuffix(v string) predicate.Namespace

ConfigHasSuffix applies the HasSuffix predicate on the "config" field.

func ConfigIn added in v0.5.5

func ConfigIn(vs ...string) predicate.Namespace

ConfigIn applies the In predicate on the "config" field.

func ConfigLT added in v0.5.5

func ConfigLT(v string) predicate.Namespace

ConfigLT applies the LT predicate on the "config" field.

func ConfigLTE added in v0.5.5

func ConfigLTE(v string) predicate.Namespace

ConfigLTE applies the LTE predicate on the "config" field.

func ConfigNEQ added in v0.5.5

func ConfigNEQ(v string) predicate.Namespace

ConfigNEQ applies the NEQ predicate on the "config" field.

func ConfigNotIn added in v0.5.5

func ConfigNotIn(vs ...string) predicate.Namespace

ConfigNotIn applies the NotIn predicate on the "config" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Namespace

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Namespace

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Namespace

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Namespace

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Namespace

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Namespace

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Namespace

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

func CreatedAtNotIn

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

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

func HasCloudevents

func HasCloudevents() predicate.Namespace

HasCloudevents applies the HasEdge predicate on the "cloudevents" edge.

func HasCloudeventsWith

func HasCloudeventsWith(preds ...predicate.CloudEvents) predicate.Namespace

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

func HasInodes

func HasInodes() predicate.Namespace

HasInodes applies the HasEdge predicate on the "inodes" edge.

func HasInodesWith

func HasInodesWith(preds ...predicate.Inode) predicate.Namespace

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

func HasInstances

func HasInstances() predicate.Namespace

HasInstances applies the HasEdge predicate on the "instances" edge.

func HasInstancesWith

func HasInstancesWith(preds ...predicate.Instance) predicate.Namespace

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

func HasLogs

func HasLogs() predicate.Namespace

HasLogs applies the HasEdge predicate on the "logs" edge.

func HasLogsWith

func HasLogsWith(preds ...predicate.LogMsg) predicate.Namespace

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

func HasVars

func HasVars() predicate.Namespace

HasVars applies the HasEdge predicate on the "vars" edge.

func HasVarsWith

func HasVarsWith(preds ...predicate.VarRef) predicate.Namespace

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

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

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Namespace

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Namespace

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Namespace

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Namespace

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Namespace

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Namespace

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Namespace

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Namespace

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Namespace

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Namespace

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Namespace

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Namespace

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Namespace

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Namespace

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Namespace

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Namespace

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Namespace

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Namespace

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Namespace

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Namespace

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Namespace

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Namespace

NameNotIn applies the NotIn predicate on the "name" 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 UpdatedAt

func UpdatedAt(v time.Time) predicate.Namespace

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Namespace

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Namespace

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Namespace

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Namespace

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Namespace

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Namespace

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

func UpdatedAtNotIn

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

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

This section is empty.

Jump to

Keyboard shortcuts

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