connector

package
v0.0.0-...-c3b95e6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the connector type in the database.
	Label = "connector"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldResourceVersion holds the string denoting the resource_version field in the database.
	FieldResourceVersion = "resource_version"
	// FieldConfig holds the string denoting the config field in the database.
	FieldConfig = "config"
	// Table holds the table name of the connector in the database.
	Table = "connectors"
)

Variables

View Source
var (
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for connector fields.

Functions

func And

func And(predicates ...predicate.Connector) predicate.Connector

And groups predicates with the AND operator between them.

func Config

func Config(v []byte) predicate.Connector

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

func ConfigEQ

func ConfigEQ(v []byte) predicate.Connector

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

func ConfigGT

func ConfigGT(v []byte) predicate.Connector

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

func ConfigGTE

func ConfigGTE(v []byte) predicate.Connector

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

func ConfigIn

func ConfigIn(vs ...[]byte) predicate.Connector

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

func ConfigLT

func ConfigLT(v []byte) predicate.Connector

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

func ConfigLTE

func ConfigLTE(v []byte) predicate.Connector

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

func ConfigNEQ

func ConfigNEQ(v []byte) predicate.Connector

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

func ConfigNotIn

func ConfigNotIn(vs ...[]byte) predicate.Connector

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

func ID

func ID(id string) predicate.Connector

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Connector

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Connector

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Connector

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Connector

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Connector

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Connector

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Connector

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

func NameContains

func NameContains(v string) predicate.Connector

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

func NameContainsFold

func NameContainsFold(v string) predicate.Connector

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

func NameEQ

func NameEQ(v string) predicate.Connector

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

func NameEqualFold

func NameEqualFold(v string) predicate.Connector

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

func NameGT

func NameGT(v string) predicate.Connector

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

func NameGTE

func NameGTE(v string) predicate.Connector

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Connector

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Connector

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Connector

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

func NameLTE

func NameLTE(v string) predicate.Connector

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

func NameNEQ

func NameNEQ(v string) predicate.Connector

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func ResourceVersion

func ResourceVersion(v string) predicate.Connector

ResourceVersion applies equality check predicate on the "resource_version" field. It's identical to ResourceVersionEQ.

func ResourceVersionContains

func ResourceVersionContains(v string) predicate.Connector

ResourceVersionContains applies the Contains predicate on the "resource_version" field.

func ResourceVersionContainsFold

func ResourceVersionContainsFold(v string) predicate.Connector

ResourceVersionContainsFold applies the ContainsFold predicate on the "resource_version" field.

func ResourceVersionEQ

func ResourceVersionEQ(v string) predicate.Connector

ResourceVersionEQ applies the EQ predicate on the "resource_version" field.

func ResourceVersionEqualFold

func ResourceVersionEqualFold(v string) predicate.Connector

ResourceVersionEqualFold applies the EqualFold predicate on the "resource_version" field.

func ResourceVersionGT

func ResourceVersionGT(v string) predicate.Connector

ResourceVersionGT applies the GT predicate on the "resource_version" field.

func ResourceVersionGTE

func ResourceVersionGTE(v string) predicate.Connector

ResourceVersionGTE applies the GTE predicate on the "resource_version" field.

func ResourceVersionHasPrefix

func ResourceVersionHasPrefix(v string) predicate.Connector

ResourceVersionHasPrefix applies the HasPrefix predicate on the "resource_version" field.

func ResourceVersionHasSuffix

func ResourceVersionHasSuffix(v string) predicate.Connector

ResourceVersionHasSuffix applies the HasSuffix predicate on the "resource_version" field.

func ResourceVersionIn

func ResourceVersionIn(vs ...string) predicate.Connector

ResourceVersionIn applies the In predicate on the "resource_version" field.

func ResourceVersionLT

func ResourceVersionLT(v string) predicate.Connector

ResourceVersionLT applies the LT predicate on the "resource_version" field.

func ResourceVersionLTE

func ResourceVersionLTE(v string) predicate.Connector

ResourceVersionLTE applies the LTE predicate on the "resource_version" field.

func ResourceVersionNEQ

func ResourceVersionNEQ(v string) predicate.Connector

ResourceVersionNEQ applies the NEQ predicate on the "resource_version" field.

func ResourceVersionNotIn

func ResourceVersionNotIn(vs ...string) predicate.Connector

ResourceVersionNotIn applies the NotIn predicate on the "resource_version" field.

func Type

func Type(v string) predicate.Connector

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Connector

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Connector

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Connector

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Connector

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Connector

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Connector

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Connector

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Connector

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Connector

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Connector

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Connector

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Connector

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Connector

TypeNotIn applies the NotIn predicate on the "type" 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