Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Grant) predicate.Grant
- func ConnectionID(v string) predicate.Grant
- func ConnectionIDContains(v string) predicate.Grant
- func ConnectionIDContainsFold(v string) predicate.Grant
- func ConnectionIDEQ(v string) predicate.Grant
- func ConnectionIDEqualFold(v string) predicate.Grant
- func ConnectionIDGT(v string) predicate.Grant
- func ConnectionIDGTE(v string) predicate.Grant
- func ConnectionIDHasPrefix(v string) predicate.Grant
- func ConnectionIDHasSuffix(v string) predicate.Grant
- func ConnectionIDIn(vs ...string) predicate.Grant
- func ConnectionIDLT(v string) predicate.Grant
- func ConnectionIDLTE(v string) predicate.Grant
- func ConnectionIDNEQ(v string) predicate.Grant
- func ConnectionIDNotIn(vs ...string) predicate.Grant
- func ID(id int) predicate.Grant
- func IDEQ(id int) predicate.Grant
- func IDGT(id int) predicate.Grant
- func IDGTE(id int) predicate.Grant
- func IDIn(ids ...int) predicate.Grant
- func IDLT(id int) predicate.Grant
- func IDLTE(id int) predicate.Grant
- func IDNEQ(id int) predicate.Grant
- func IDNotIn(ids ...int) predicate.Grant
- func Not(p predicate.Grant) predicate.Grant
- func Or(predicates ...predicate.Grant) predicate.Grant
- func OwnerID(v string) predicate.Grant
- func OwnerIDContains(v string) predicate.Grant
- func OwnerIDContainsFold(v string) predicate.Grant
- func OwnerIDEQ(v string) predicate.Grant
- func OwnerIDEqualFold(v string) predicate.Grant
- func OwnerIDGT(v string) predicate.Grant
- func OwnerIDGTE(v string) predicate.Grant
- func OwnerIDHasPrefix(v string) predicate.Grant
- func OwnerIDHasSuffix(v string) predicate.Grant
- func OwnerIDIn(vs ...string) predicate.Grant
- func OwnerIDLT(v string) predicate.Grant
- func OwnerIDLTE(v string) predicate.Grant
- func OwnerIDNEQ(v string) predicate.Grant
- func OwnerIDNotIn(vs ...string) predicate.Grant
- func PrincipalID(v string) predicate.Grant
- func PrincipalIDContains(v string) predicate.Grant
- func PrincipalIDContainsFold(v string) predicate.Grant
- func PrincipalIDEQ(v string) predicate.Grant
- func PrincipalIDEqualFold(v string) predicate.Grant
- func PrincipalIDGT(v string) predicate.Grant
- func PrincipalIDGTE(v string) predicate.Grant
- func PrincipalIDHasPrefix(v string) predicate.Grant
- func PrincipalIDHasSuffix(v string) predicate.Grant
- func PrincipalIDIn(vs ...string) predicate.Grant
- func PrincipalIDLT(v string) predicate.Grant
- func PrincipalIDLTE(v string) predicate.Grant
- func PrincipalIDNEQ(v string) predicate.Grant
- func PrincipalIDNotIn(vs ...string) predicate.Grant
- func PrincipalKind(v string) predicate.Grant
- func PrincipalKindContains(v string) predicate.Grant
- func PrincipalKindContainsFold(v string) predicate.Grant
- func PrincipalKindEQ(v string) predicate.Grant
- func PrincipalKindEqualFold(v string) predicate.Grant
- func PrincipalKindGT(v string) predicate.Grant
- func PrincipalKindGTE(v string) predicate.Grant
- func PrincipalKindHasPrefix(v string) predicate.Grant
- func PrincipalKindHasSuffix(v string) predicate.Grant
- func PrincipalKindIn(vs ...string) predicate.Grant
- func PrincipalKindLT(v string) predicate.Grant
- func PrincipalKindLTE(v string) predicate.Grant
- func PrincipalKindNEQ(v string) predicate.Grant
- func PrincipalKindNotIn(vs ...string) predicate.Grant
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the grant type in the database. Label = "grant" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldConnectionID holds the string denoting the connection_id field in the database. FieldConnectionID = "connection_id" // FieldPrincipalKind holds the string denoting the principal_kind field in the database. FieldPrincipalKind = "principal_kind" // FieldPrincipalID holds the string denoting the principal_id field in the database. FieldPrincipalID = "principal_id" // FieldActions holds the string denoting the actions field in the database. FieldActions = "actions" // Table holds the table name of the grant in the database. Table = "connectionforge_grants" )
Variables ¶
var ( // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. OwnerIDValidator func(string) error // ConnectionIDValidator is a validator for the "connection_id" field. It is called by the builders before save. ConnectionIDValidator func(string) error )
var Columns = []string{ FieldID, FieldOwnerID, FieldConnectionID, FieldPrincipalKind, FieldPrincipalID, FieldActions, }
Columns holds all SQL columns for grant fields.
Functions ¶
func ConnectionID ¶
ConnectionID applies equality check predicate on the "connection_id" field. It's identical to ConnectionIDEQ.
func ConnectionIDContains ¶
ConnectionIDContains applies the Contains predicate on the "connection_id" field.
func ConnectionIDContainsFold ¶
ConnectionIDContainsFold applies the ContainsFold predicate on the "connection_id" field.
func ConnectionIDEQ ¶
ConnectionIDEQ applies the EQ predicate on the "connection_id" field.
func ConnectionIDEqualFold ¶
ConnectionIDEqualFold applies the EqualFold predicate on the "connection_id" field.
func ConnectionIDGT ¶
ConnectionIDGT applies the GT predicate on the "connection_id" field.
func ConnectionIDGTE ¶
ConnectionIDGTE applies the GTE predicate on the "connection_id" field.
func ConnectionIDHasPrefix ¶
ConnectionIDHasPrefix applies the HasPrefix predicate on the "connection_id" field.
func ConnectionIDHasSuffix ¶
ConnectionIDHasSuffix applies the HasSuffix predicate on the "connection_id" field.
func ConnectionIDIn ¶
ConnectionIDIn applies the In predicate on the "connection_id" field.
func ConnectionIDLT ¶
ConnectionIDLT applies the LT predicate on the "connection_id" field.
func ConnectionIDLTE ¶
ConnectionIDLTE applies the LTE predicate on the "connection_id" field.
func ConnectionIDNEQ ¶
ConnectionIDNEQ applies the NEQ predicate on the "connection_id" field.
func ConnectionIDNotIn ¶
ConnectionIDNotIn applies the NotIn predicate on the "connection_id" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDLTE ¶
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func PrincipalID ¶
PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.
func PrincipalIDContains ¶
PrincipalIDContains applies the Contains predicate on the "principal_id" field.
func PrincipalIDContainsFold ¶
PrincipalIDContainsFold applies the ContainsFold predicate on the "principal_id" field.
func PrincipalIDEQ ¶
PrincipalIDEQ applies the EQ predicate on the "principal_id" field.
func PrincipalIDEqualFold ¶
PrincipalIDEqualFold applies the EqualFold predicate on the "principal_id" field.
func PrincipalIDGT ¶
PrincipalIDGT applies the GT predicate on the "principal_id" field.
func PrincipalIDGTE ¶
PrincipalIDGTE applies the GTE predicate on the "principal_id" field.
func PrincipalIDHasPrefix ¶
PrincipalIDHasPrefix applies the HasPrefix predicate on the "principal_id" field.
func PrincipalIDHasSuffix ¶
PrincipalIDHasSuffix applies the HasSuffix predicate on the "principal_id" field.
func PrincipalIDIn ¶
PrincipalIDIn applies the In predicate on the "principal_id" field.
func PrincipalIDLT ¶
PrincipalIDLT applies the LT predicate on the "principal_id" field.
func PrincipalIDLTE ¶
PrincipalIDLTE applies the LTE predicate on the "principal_id" field.
func PrincipalIDNEQ ¶
PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.
func PrincipalIDNotIn ¶
PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.
func PrincipalKind ¶
PrincipalKind applies equality check predicate on the "principal_kind" field. It's identical to PrincipalKindEQ.
func PrincipalKindContains ¶
PrincipalKindContains applies the Contains predicate on the "principal_kind" field.
func PrincipalKindContainsFold ¶
PrincipalKindContainsFold applies the ContainsFold predicate on the "principal_kind" field.
func PrincipalKindEQ ¶
PrincipalKindEQ applies the EQ predicate on the "principal_kind" field.
func PrincipalKindEqualFold ¶
PrincipalKindEqualFold applies the EqualFold predicate on the "principal_kind" field.
func PrincipalKindGT ¶
PrincipalKindGT applies the GT predicate on the "principal_kind" field.
func PrincipalKindGTE ¶
PrincipalKindGTE applies the GTE predicate on the "principal_kind" field.
func PrincipalKindHasPrefix ¶
PrincipalKindHasPrefix applies the HasPrefix predicate on the "principal_kind" field.
func PrincipalKindHasSuffix ¶
PrincipalKindHasSuffix applies the HasSuffix predicate on the "principal_kind" field.
func PrincipalKindIn ¶
PrincipalKindIn applies the In predicate on the "principal_kind" field.
func PrincipalKindLT ¶
PrincipalKindLT applies the LT predicate on the "principal_kind" field.
func PrincipalKindLTE ¶
PrincipalKindLTE applies the LTE predicate on the "principal_kind" field.
func PrincipalKindNEQ ¶
PrincipalKindNEQ applies the NEQ predicate on the "principal_kind" field.
func PrincipalKindNotIn ¶
PrincipalKindNotIn applies the NotIn predicate on the "principal_kind" field.
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 Grant queries.
func ByConnectionID ¶
func ByConnectionID(opts ...sql.OrderTermOption) OrderOption
ByConnectionID orders the results by the connection_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOwnerID ¶
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByPrincipalID ¶
func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByPrincipalID orders the results by the principal_id field.
func ByPrincipalKind ¶
func ByPrincipalKind(opts ...sql.OrderTermOption) OrderOption
ByPrincipalKind orders the results by the principal_kind field.