resourcekind

package
v0.0.0-...-f0d3e45 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the resourcekind type in the database.
	Label = "resource_kind"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldApiVersion holds the string denoting the apiversion field in the database.
	FieldApiVersion = "api_version"
	// FieldNamespaced holds the string denoting the namespaced field in the database.
	FieldNamespaced = "namespaced"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// Table holds the table name of the resourcekind in the database.
	Table = "resource_kinds"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// ApiVersionValidator is a validator for the "apiVersion" field. It is called by the builders before save.
	ApiVersionValidator func(string) error
	// DefaultNamespaced holds the default value on creation for the "namespaced" field.
	DefaultNamespaced bool
	// KindValidator is a validator for the "kind" field. It is called by the builders before save.
	KindValidator func(string) error
)

Columns holds all SQL columns for resourcekind fields.

Functions

func And

func And(predicates ...predicate.ResourceKind) predicate.ResourceKind

And groups predicates with the AND operator between them.

func ApiVersion

func ApiVersion(v string) predicate.ResourceKind

ApiVersion applies equality check predicate on the "apiVersion" field. It's identical to ApiVersionEQ.

func ApiVersionContains

func ApiVersionContains(v string) predicate.ResourceKind

ApiVersionContains applies the Contains predicate on the "apiVersion" field.

func ApiVersionContainsFold

func ApiVersionContainsFold(v string) predicate.ResourceKind

ApiVersionContainsFold applies the ContainsFold predicate on the "apiVersion" field.

func ApiVersionEQ

func ApiVersionEQ(v string) predicate.ResourceKind

ApiVersionEQ applies the EQ predicate on the "apiVersion" field.

func ApiVersionEqualFold

func ApiVersionEqualFold(v string) predicate.ResourceKind

ApiVersionEqualFold applies the EqualFold predicate on the "apiVersion" field.

func ApiVersionGT

func ApiVersionGT(v string) predicate.ResourceKind

ApiVersionGT applies the GT predicate on the "apiVersion" field.

func ApiVersionGTE

func ApiVersionGTE(v string) predicate.ResourceKind

ApiVersionGTE applies the GTE predicate on the "apiVersion" field.

func ApiVersionHasPrefix

func ApiVersionHasPrefix(v string) predicate.ResourceKind

ApiVersionHasPrefix applies the HasPrefix predicate on the "apiVersion" field.

func ApiVersionHasSuffix

func ApiVersionHasSuffix(v string) predicate.ResourceKind

ApiVersionHasSuffix applies the HasSuffix predicate on the "apiVersion" field.

func ApiVersionIn

func ApiVersionIn(vs ...string) predicate.ResourceKind

ApiVersionIn applies the In predicate on the "apiVersion" field.

func ApiVersionLT

func ApiVersionLT(v string) predicate.ResourceKind

ApiVersionLT applies the LT predicate on the "apiVersion" field.

func ApiVersionLTE

func ApiVersionLTE(v string) predicate.ResourceKind

ApiVersionLTE applies the LTE predicate on the "apiVersion" field.

func ApiVersionNEQ

func ApiVersionNEQ(v string) predicate.ResourceKind

ApiVersionNEQ applies the NEQ predicate on the "apiVersion" field.

func ApiVersionNotIn

func ApiVersionNotIn(vs ...string) predicate.ResourceKind

ApiVersionNotIn applies the NotIn predicate on the "apiVersion" field.

func ID

func ID(id int) predicate.ResourceKind

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.ResourceKind

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.ResourceKind

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.ResourceKind

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.ResourceKind

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.ResourceKind

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.ResourceKind

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.ResourceKind

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.ResourceKind

IDNotIn applies the NotIn predicate on the ID field.

func Kind

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.ResourceKind

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.ResourceKind

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

func KindEQ(v string) predicate.ResourceKind

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.ResourceKind

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

func KindGT(v string) predicate.ResourceKind

KindGT applies the GT predicate on the "kind" field.

func KindGTE

func KindGTE(v string) predicate.ResourceKind

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.ResourceKind

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.ResourceKind

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

func KindIn(vs ...string) predicate.ResourceKind

KindIn applies the In predicate on the "kind" field.

func KindLT

func KindLT(v string) predicate.ResourceKind

KindLT applies the LT predicate on the "kind" field.

func KindLTE

func KindLTE(v string) predicate.ResourceKind

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

func KindNEQ(v string) predicate.ResourceKind

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.ResourceKind

KindNotIn applies the NotIn predicate on the "kind" field.

func Name

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

func NameContains

func NameContains(v string) predicate.ResourceKind

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

func NameContainsFold

func NameContainsFold(v string) predicate.ResourceKind

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

func NameEQ

func NameEQ(v string) predicate.ResourceKind

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

func NameEqualFold

func NameEqualFold(v string) predicate.ResourceKind

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

func NameGT

func NameGT(v string) predicate.ResourceKind

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

func NameGTE

func NameGTE(v string) predicate.ResourceKind

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.ResourceKind

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.ResourceKind

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.ResourceKind

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

func NameLTE

func NameLTE(v string) predicate.ResourceKind

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

func NameNEQ

func NameNEQ(v string) predicate.ResourceKind

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

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" field.

func Namespaced

func Namespaced(v bool) predicate.ResourceKind

Namespaced applies equality check predicate on the "namespaced" field. It's identical to NamespacedEQ.

func NamespacedEQ

func NamespacedEQ(v bool) predicate.ResourceKind

NamespacedEQ applies the EQ predicate on the "namespaced" field.

func NamespacedNEQ

func NamespacedNEQ(v bool) predicate.ResourceKind

NamespacedNEQ applies the NEQ predicate on the "namespaced" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ResourceKind) predicate.ResourceKind

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