Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Agent) predicate.Agent
- func CreatedAt(v time.Time) predicate.Agent
- func CreatedAtEQ(v time.Time) predicate.Agent
- func CreatedAtGT(v time.Time) predicate.Agent
- func CreatedAtGTE(v time.Time) predicate.Agent
- func CreatedAtIn(vs ...time.Time) predicate.Agent
- func CreatedAtLT(v time.Time) predicate.Agent
- func CreatedAtLTE(v time.Time) predicate.Agent
- func CreatedAtNEQ(v time.Time) predicate.Agent
- func CreatedAtNotIn(vs ...time.Time) predicate.Agent
- func DelegatingPrincipalID(v uuid.UUID) predicate.Agent
- func DelegatingPrincipalIDEQ(v uuid.UUID) predicate.Agent
- func DelegatingPrincipalIDIn(vs ...uuid.UUID) predicate.Agent
- func DelegatingPrincipalIDIsNil() predicate.Agent
- func DelegatingPrincipalIDNEQ(v uuid.UUID) predicate.Agent
- func DelegatingPrincipalIDNotIn(vs ...uuid.UUID) predicate.Agent
- func DelegatingPrincipalIDNotNil() predicate.Agent
- func HasDelegatingPrincipal() predicate.Agent
- func HasDelegatingPrincipalWith(preds ...predicate.Principal) predicate.Agent
- func HasPrincipal() predicate.Agent
- func HasPrincipalWith(preds ...predicate.Principal) predicate.Agent
- func ID(id uuid.UUID) predicate.Agent
- func IDEQ(id uuid.UUID) predicate.Agent
- func IDGT(id uuid.UUID) predicate.Agent
- func IDGTE(id uuid.UUID) predicate.Agent
- func IDIn(ids ...uuid.UUID) predicate.Agent
- func IDLT(id uuid.UUID) predicate.Agent
- func IDLTE(id uuid.UUID) predicate.Agent
- func IDNEQ(id uuid.UUID) predicate.Agent
- func IDNotIn(ids ...uuid.UUID) predicate.Agent
- func MaxTokenLifetime(v int) predicate.Agent
- func MaxTokenLifetimeEQ(v int) predicate.Agent
- func MaxTokenLifetimeGT(v int) predicate.Agent
- func MaxTokenLifetimeGTE(v int) predicate.Agent
- func MaxTokenLifetimeIn(vs ...int) predicate.Agent
- func MaxTokenLifetimeLT(v int) predicate.Agent
- func MaxTokenLifetimeLTE(v int) predicate.Agent
- func MaxTokenLifetimeNEQ(v int) predicate.Agent
- func MaxTokenLifetimeNotIn(vs ...int) predicate.Agent
- func ModelID(v string) predicate.Agent
- func ModelIDContains(v string) predicate.Agent
- func ModelIDContainsFold(v string) predicate.Agent
- func ModelIDEQ(v string) predicate.Agent
- func ModelIDEqualFold(v string) predicate.Agent
- func ModelIDGT(v string) predicate.Agent
- func ModelIDGTE(v string) predicate.Agent
- func ModelIDHasPrefix(v string) predicate.Agent
- func ModelIDHasSuffix(v string) predicate.Agent
- func ModelIDIn(vs ...string) predicate.Agent
- func ModelIDLT(v string) predicate.Agent
- func ModelIDLTE(v string) predicate.Agent
- func ModelIDNEQ(v string) predicate.Agent
- func ModelIDNotIn(vs ...string) predicate.Agent
- func Not(p predicate.Agent) predicate.Agent
- func Or(predicates ...predicate.Agent) predicate.Agent
- func PrincipalID(v uuid.UUID) predicate.Agent
- func PrincipalIDEQ(v uuid.UUID) predicate.Agent
- func PrincipalIDIn(vs ...uuid.UUID) predicate.Agent
- func PrincipalIDNEQ(v uuid.UUID) predicate.Agent
- func PrincipalIDNotIn(vs ...uuid.UUID) predicate.Agent
- func RequiresConfirmation(v bool) predicate.Agent
- func RequiresConfirmationEQ(v bool) predicate.Agent
- func RequiresConfirmationNEQ(v bool) predicate.Agent
- func SessionID(v string) predicate.Agent
- func SessionIDContains(v string) predicate.Agent
- func SessionIDContainsFold(v string) predicate.Agent
- func SessionIDEQ(v string) predicate.Agent
- func SessionIDEqualFold(v string) predicate.Agent
- func SessionIDGT(v string) predicate.Agent
- func SessionIDGTE(v string) predicate.Agent
- func SessionIDHasPrefix(v string) predicate.Agent
- func SessionIDHasSuffix(v string) predicate.Agent
- func SessionIDIn(vs ...string) predicate.Agent
- func SessionIDIsNil() predicate.Agent
- func SessionIDLT(v string) predicate.Agent
- func SessionIDLTE(v string) predicate.Agent
- func SessionIDNEQ(v string) predicate.Agent
- func SessionIDNotIn(vs ...string) predicate.Agent
- func SessionIDNotNil() predicate.Agent
- func UpdatedAt(v time.Time) predicate.Agent
- func UpdatedAtEQ(v time.Time) predicate.Agent
- func UpdatedAtGT(v time.Time) predicate.Agent
- func UpdatedAtGTE(v time.Time) predicate.Agent
- func UpdatedAtIn(vs ...time.Time) predicate.Agent
- func UpdatedAtLT(v time.Time) predicate.Agent
- func UpdatedAtLTE(v time.Time) predicate.Agent
- func UpdatedAtNEQ(v time.Time) predicate.Agent
- func UpdatedAtNotIn(vs ...time.Time) predicate.Agent
- func ValidColumn(column string) bool
- func Version(v string) predicate.Agent
- func VersionContains(v string) predicate.Agent
- func VersionContainsFold(v string) predicate.Agent
- func VersionEQ(v string) predicate.Agent
- func VersionEqualFold(v string) predicate.Agent
- func VersionGT(v string) predicate.Agent
- func VersionGTE(v string) predicate.Agent
- func VersionHasPrefix(v string) predicate.Agent
- func VersionHasSuffix(v string) predicate.Agent
- func VersionIn(vs ...string) predicate.Agent
- func VersionIsNil() predicate.Agent
- func VersionLT(v string) predicate.Agent
- func VersionLTE(v string) predicate.Agent
- func VersionNEQ(v string) predicate.Agent
- func VersionNotIn(vs ...string) predicate.Agent
- func VersionNotNil() predicate.Agent
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDelegatingPrincipalField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDelegatingPrincipalID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMaxTokenLifetime(opts ...sql.OrderTermOption) OrderOption
- func ByModelID(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
- func ByRequiresConfirmation(opts ...sql.OrderTermOption) OrderOption
- func BySessionID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the agent type in the database. Label = "agent" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldPrincipalID holds the string denoting the principal_id field in the database. FieldPrincipalID = "principal_id" // FieldModelID holds the string denoting the model_id field in the database. FieldModelID = "model_id" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldDelegatingPrincipalID holds the string denoting the delegating_principal_id field in the database. FieldDelegatingPrincipalID = "delegating_principal_id" // FieldCapabilityConstraints holds the string denoting the capability_constraints field in the database. FieldCapabilityConstraints = "capability_constraints" // FieldResourceConstraints holds the string denoting the resource_constraints field in the database. FieldResourceConstraints = "resource_constraints" // FieldMaxTokenLifetime holds the string denoting the max_token_lifetime field in the database. FieldMaxTokenLifetime = "max_token_lifetime" // FieldSessionID holds the string denoting the session_id field in the database. FieldSessionID = "session_id" // FieldRequiresConfirmation holds the string denoting the requires_confirmation field in the database. FieldRequiresConfirmation = "requires_confirmation" // EdgePrincipal holds the string denoting the principal edge name in mutations. EdgePrincipal = "principal" // EdgeDelegatingPrincipal holds the string denoting the delegating_principal edge name in mutations. EdgeDelegatingPrincipal = "delegating_principal" // Table holds the table name of the agent in the database. Table = "cf_agents" // PrincipalTable is the table that holds the principal relation/edge. PrincipalTable = "cf_agents" // PrincipalInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. PrincipalInverseTable = "cf_principals" // PrincipalColumn is the table column denoting the principal relation/edge. PrincipalColumn = "principal_id" // DelegatingPrincipalTable is the table that holds the delegating_principal relation/edge. DelegatingPrincipalTable = "cf_agents" // DelegatingPrincipalInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. DelegatingPrincipalInverseTable = "cf_principals" // DelegatingPrincipalColumn is the table column denoting the delegating_principal relation/edge. DelegatingPrincipalColumn = "delegating_principal_id" )
Variables ¶
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 // ModelIDValidator is a validator for the "model_id" field. It is called by the builders before save. ModelIDValidator func(string) error // DefaultCapabilityConstraints holds the default value on creation for the "capability_constraints" field. DefaultCapabilityConstraints []string // DefaultResourceConstraints holds the default value on creation for the "resource_constraints" field. DefaultResourceConstraints []string // DefaultMaxTokenLifetime holds the default value on creation for the "max_token_lifetime" field. DefaultMaxTokenLifetime int // DefaultRequiresConfirmation holds the default value on creation for the "requires_confirmation" field. DefaultRequiresConfirmation bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldPrincipalID, FieldModelID, FieldVersion, FieldDelegatingPrincipalID, FieldCapabilityConstraints, FieldResourceConstraints, FieldMaxTokenLifetime, FieldSessionID, FieldRequiresConfirmation, }
Columns holds all SQL columns for agent fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DelegatingPrincipalID ¶
DelegatingPrincipalID applies equality check predicate on the "delegating_principal_id" field. It's identical to DelegatingPrincipalIDEQ.
func DelegatingPrincipalIDEQ ¶
DelegatingPrincipalIDEQ applies the EQ predicate on the "delegating_principal_id" field.
func DelegatingPrincipalIDIn ¶
DelegatingPrincipalIDIn applies the In predicate on the "delegating_principal_id" field.
func DelegatingPrincipalIDIsNil ¶
DelegatingPrincipalIDIsNil applies the IsNil predicate on the "delegating_principal_id" field.
func DelegatingPrincipalIDNEQ ¶
DelegatingPrincipalIDNEQ applies the NEQ predicate on the "delegating_principal_id" field.
func DelegatingPrincipalIDNotIn ¶
DelegatingPrincipalIDNotIn applies the NotIn predicate on the "delegating_principal_id" field.
func DelegatingPrincipalIDNotNil ¶
DelegatingPrincipalIDNotNil applies the NotNil predicate on the "delegating_principal_id" field.
func HasDelegatingPrincipal ¶
HasDelegatingPrincipal applies the HasEdge predicate on the "delegating_principal" edge.
func HasDelegatingPrincipalWith ¶
HasDelegatingPrincipalWith applies the HasEdge predicate on the "delegating_principal" edge with a given conditions (other predicates).
func HasPrincipal ¶
HasPrincipal applies the HasEdge predicate on the "principal" edge.
func HasPrincipalWith ¶
HasPrincipalWith applies the HasEdge predicate on the "principal" edge with a given conditions (other predicates).
func MaxTokenLifetime ¶
MaxTokenLifetime applies equality check predicate on the "max_token_lifetime" field. It's identical to MaxTokenLifetimeEQ.
func MaxTokenLifetimeEQ ¶
MaxTokenLifetimeEQ applies the EQ predicate on the "max_token_lifetime" field.
func MaxTokenLifetimeGT ¶
MaxTokenLifetimeGT applies the GT predicate on the "max_token_lifetime" field.
func MaxTokenLifetimeGTE ¶
MaxTokenLifetimeGTE applies the GTE predicate on the "max_token_lifetime" field.
func MaxTokenLifetimeIn ¶
MaxTokenLifetimeIn applies the In predicate on the "max_token_lifetime" field.
func MaxTokenLifetimeLT ¶
MaxTokenLifetimeLT applies the LT predicate on the "max_token_lifetime" field.
func MaxTokenLifetimeLTE ¶
MaxTokenLifetimeLTE applies the LTE predicate on the "max_token_lifetime" field.
func MaxTokenLifetimeNEQ ¶
MaxTokenLifetimeNEQ applies the NEQ predicate on the "max_token_lifetime" field.
func MaxTokenLifetimeNotIn ¶
MaxTokenLifetimeNotIn applies the NotIn predicate on the "max_token_lifetime" field.
func ModelID ¶
ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.
func ModelIDContains ¶
ModelIDContains applies the Contains predicate on the "model_id" field.
func ModelIDContainsFold ¶
ModelIDContainsFold applies the ContainsFold predicate on the "model_id" field.
func ModelIDEqualFold ¶
ModelIDEqualFold applies the EqualFold predicate on the "model_id" field.
func ModelIDGTE ¶
ModelIDGTE applies the GTE predicate on the "model_id" field.
func ModelIDHasPrefix ¶
ModelIDHasPrefix applies the HasPrefix predicate on the "model_id" field.
func ModelIDHasSuffix ¶
ModelIDHasSuffix applies the HasSuffix predicate on the "model_id" field.
func ModelIDLTE ¶
ModelIDLTE applies the LTE predicate on the "model_id" field.
func ModelIDNEQ ¶
ModelIDNEQ applies the NEQ predicate on the "model_id" field.
func ModelIDNotIn ¶
ModelIDNotIn applies the NotIn predicate on the "model_id" field.
func PrincipalID ¶
PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.
func PrincipalIDEQ ¶
PrincipalIDEQ applies the EQ predicate on the "principal_id" field.
func PrincipalIDIn ¶
PrincipalIDIn applies the In 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 RequiresConfirmation ¶
RequiresConfirmation applies equality check predicate on the "requires_confirmation" field. It's identical to RequiresConfirmationEQ.
func RequiresConfirmationEQ ¶
RequiresConfirmationEQ applies the EQ predicate on the "requires_confirmation" field.
func RequiresConfirmationNEQ ¶
RequiresConfirmationNEQ applies the NEQ predicate on the "requires_confirmation" field.
func SessionID ¶
SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.
func SessionIDContains ¶
SessionIDContains applies the Contains predicate on the "session_id" field.
func SessionIDContainsFold ¶
SessionIDContainsFold applies the ContainsFold predicate on the "session_id" field.
func SessionIDEQ ¶
SessionIDEQ applies the EQ predicate on the "session_id" field.
func SessionIDEqualFold ¶
SessionIDEqualFold applies the EqualFold predicate on the "session_id" field.
func SessionIDGT ¶
SessionIDGT applies the GT predicate on the "session_id" field.
func SessionIDGTE ¶
SessionIDGTE applies the GTE predicate on the "session_id" field.
func SessionIDHasPrefix ¶
SessionIDHasPrefix applies the HasPrefix predicate on the "session_id" field.
func SessionIDHasSuffix ¶
SessionIDHasSuffix applies the HasSuffix predicate on the "session_id" field.
func SessionIDIn ¶
SessionIDIn applies the In predicate on the "session_id" field.
func SessionIDIsNil ¶
SessionIDIsNil applies the IsNil predicate on the "session_id" field.
func SessionIDLT ¶
SessionIDLT applies the LT predicate on the "session_id" field.
func SessionIDLTE ¶
SessionIDLTE applies the LTE predicate on the "session_id" field.
func SessionIDNEQ ¶
SessionIDNEQ applies the NEQ predicate on the "session_id" field.
func SessionIDNotIn ¶
SessionIDNotIn applies the NotIn predicate on the "session_id" field.
func SessionIDNotNil ¶
SessionIDNotNil applies the NotNil predicate on the "session_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIsNil ¶
VersionIsNil applies the IsNil predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
func VersionNotNil ¶
VersionNotNil applies the NotNil predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Agent queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDelegatingPrincipalField ¶
func ByDelegatingPrincipalField(field string, opts ...sql.OrderTermOption) OrderOption
ByDelegatingPrincipalField orders the results by delegating_principal field.
func ByDelegatingPrincipalID ¶
func ByDelegatingPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByDelegatingPrincipalID orders the results by the delegating_principal_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMaxTokenLifetime ¶
func ByMaxTokenLifetime(opts ...sql.OrderTermOption) OrderOption
ByMaxTokenLifetime orders the results by the max_token_lifetime field.
func ByModelID ¶
func ByModelID(opts ...sql.OrderTermOption) OrderOption
ByModelID orders the results by the model_id field.
func ByPrincipalField ¶
func ByPrincipalField(field string, opts ...sql.OrderTermOption) OrderOption
ByPrincipalField orders the results by principal field.
func ByPrincipalID ¶
func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByPrincipalID orders the results by the principal_id field.
func ByRequiresConfirmation ¶
func ByRequiresConfirmation(opts ...sql.OrderTermOption) OrderOption
ByRequiresConfirmation orders the results by the requires_confirmation field.
func BySessionID ¶
func BySessionID(opts ...sql.OrderTermOption) OrderOption
BySessionID orders the results by the session_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.