Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ResourceKind) predicate.ResourceKind
- func ApiVersion(v string) predicate.ResourceKind
- func ApiVersionContains(v string) predicate.ResourceKind
- func ApiVersionContainsFold(v string) predicate.ResourceKind
- func ApiVersionEQ(v string) predicate.ResourceKind
- func ApiVersionEqualFold(v string) predicate.ResourceKind
- func ApiVersionGT(v string) predicate.ResourceKind
- func ApiVersionGTE(v string) predicate.ResourceKind
- func ApiVersionHasPrefix(v string) predicate.ResourceKind
- func ApiVersionHasSuffix(v string) predicate.ResourceKind
- func ApiVersionIn(vs ...string) predicate.ResourceKind
- func ApiVersionLT(v string) predicate.ResourceKind
- func ApiVersionLTE(v string) predicate.ResourceKind
- func ApiVersionNEQ(v string) predicate.ResourceKind
- func ApiVersionNotIn(vs ...string) predicate.ResourceKind
- func ID(id int) predicate.ResourceKind
- func IDEQ(id int) predicate.ResourceKind
- func IDGT(id int) predicate.ResourceKind
- func IDGTE(id int) predicate.ResourceKind
- func IDIn(ids ...int) predicate.ResourceKind
- func IDLT(id int) predicate.ResourceKind
- func IDLTE(id int) predicate.ResourceKind
- func IDNEQ(id int) predicate.ResourceKind
- func IDNotIn(ids ...int) predicate.ResourceKind
- func Kind(v string) predicate.ResourceKind
- func KindContains(v string) predicate.ResourceKind
- func KindContainsFold(v string) predicate.ResourceKind
- func KindEQ(v string) predicate.ResourceKind
- func KindEqualFold(v string) predicate.ResourceKind
- func KindGT(v string) predicate.ResourceKind
- func KindGTE(v string) predicate.ResourceKind
- func KindHasPrefix(v string) predicate.ResourceKind
- func KindHasSuffix(v string) predicate.ResourceKind
- func KindIn(vs ...string) predicate.ResourceKind
- func KindLT(v string) predicate.ResourceKind
- func KindLTE(v string) predicate.ResourceKind
- func KindNEQ(v string) predicate.ResourceKind
- func KindNotIn(vs ...string) predicate.ResourceKind
- func Name(v string) predicate.ResourceKind
- func NameContains(v string) predicate.ResourceKind
- func NameContainsFold(v string) predicate.ResourceKind
- func NameEQ(v string) predicate.ResourceKind
- func NameEqualFold(v string) predicate.ResourceKind
- func NameGT(v string) predicate.ResourceKind
- func NameGTE(v string) predicate.ResourceKind
- func NameHasPrefix(v string) predicate.ResourceKind
- func NameHasSuffix(v string) predicate.ResourceKind
- func NameIn(vs ...string) predicate.ResourceKind
- func NameLT(v string) predicate.ResourceKind
- func NameLTE(v string) predicate.ResourceKind
- func NameNEQ(v string) predicate.ResourceKind
- func NameNotIn(vs ...string) predicate.ResourceKind
- func Namespaced(v bool) predicate.ResourceKind
- func NamespacedEQ(v bool) predicate.ResourceKind
- func NamespacedNEQ(v bool) predicate.ResourceKind
- func Not(p predicate.ResourceKind) predicate.ResourceKind
- func Or(predicates ...predicate.ResourceKind) predicate.ResourceKind
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldApiVersion, FieldNamespaced, FieldKind, }
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 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 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 ¶
func Kind(v string) predicate.ResourceKind
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 ¶
func Name(v string) predicate.ResourceKind
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 ¶
func Not(p predicate.ResourceKind) predicate.ResourceKind
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ResourceKind queries.
func ByApiVersion ¶
func ByApiVersion(opts ...sql.OrderTermOption) OrderOption
ByApiVersion orders the results by the apiVersion field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKind ¶
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNamespaced ¶
func ByNamespaced(opts ...sql.OrderTermOption) OrderOption
ByNamespaced orders the results by the namespaced field.