agent

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for agent fields.

Functions

func And

func And(predicates ...predicate.Agent) predicate.Agent

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Agent

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Agent

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Agent

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Agent

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Agent

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Agent

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Agent

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Agent

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Agent

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DelegatingPrincipalID

func DelegatingPrincipalID(v uuid.UUID) predicate.Agent

DelegatingPrincipalID applies equality check predicate on the "delegating_principal_id" field. It's identical to DelegatingPrincipalIDEQ.

func DelegatingPrincipalIDEQ

func DelegatingPrincipalIDEQ(v uuid.UUID) predicate.Agent

DelegatingPrincipalIDEQ applies the EQ predicate on the "delegating_principal_id" field.

func DelegatingPrincipalIDIn

func DelegatingPrincipalIDIn(vs ...uuid.UUID) predicate.Agent

DelegatingPrincipalIDIn applies the In predicate on the "delegating_principal_id" field.

func DelegatingPrincipalIDIsNil

func DelegatingPrincipalIDIsNil() predicate.Agent

DelegatingPrincipalIDIsNil applies the IsNil predicate on the "delegating_principal_id" field.

func DelegatingPrincipalIDNEQ

func DelegatingPrincipalIDNEQ(v uuid.UUID) predicate.Agent

DelegatingPrincipalIDNEQ applies the NEQ predicate on the "delegating_principal_id" field.

func DelegatingPrincipalIDNotIn

func DelegatingPrincipalIDNotIn(vs ...uuid.UUID) predicate.Agent

DelegatingPrincipalIDNotIn applies the NotIn predicate on the "delegating_principal_id" field.

func DelegatingPrincipalIDNotNil

func DelegatingPrincipalIDNotNil() predicate.Agent

DelegatingPrincipalIDNotNil applies the NotNil predicate on the "delegating_principal_id" field.

func HasDelegatingPrincipal

func HasDelegatingPrincipal() predicate.Agent

HasDelegatingPrincipal applies the HasEdge predicate on the "delegating_principal" edge.

func HasDelegatingPrincipalWith

func HasDelegatingPrincipalWith(preds ...predicate.Principal) predicate.Agent

HasDelegatingPrincipalWith applies the HasEdge predicate on the "delegating_principal" edge with a given conditions (other predicates).

func HasPrincipal

func HasPrincipal() predicate.Agent

HasPrincipal applies the HasEdge predicate on the "principal" edge.

func HasPrincipalWith

func HasPrincipalWith(preds ...predicate.Principal) predicate.Agent

HasPrincipalWith applies the HasEdge predicate on the "principal" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Agent

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Agent

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Agent

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Agent

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Agent

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Agent

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Agent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Agent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Agent

IDNotIn applies the NotIn predicate on the ID field.

func MaxTokenLifetime

func MaxTokenLifetime(v int) predicate.Agent

MaxTokenLifetime applies equality check predicate on the "max_token_lifetime" field. It's identical to MaxTokenLifetimeEQ.

func MaxTokenLifetimeEQ

func MaxTokenLifetimeEQ(v int) predicate.Agent

MaxTokenLifetimeEQ applies the EQ predicate on the "max_token_lifetime" field.

func MaxTokenLifetimeGT

func MaxTokenLifetimeGT(v int) predicate.Agent

MaxTokenLifetimeGT applies the GT predicate on the "max_token_lifetime" field.

func MaxTokenLifetimeGTE

func MaxTokenLifetimeGTE(v int) predicate.Agent

MaxTokenLifetimeGTE applies the GTE predicate on the "max_token_lifetime" field.

func MaxTokenLifetimeIn

func MaxTokenLifetimeIn(vs ...int) predicate.Agent

MaxTokenLifetimeIn applies the In predicate on the "max_token_lifetime" field.

func MaxTokenLifetimeLT

func MaxTokenLifetimeLT(v int) predicate.Agent

MaxTokenLifetimeLT applies the LT predicate on the "max_token_lifetime" field.

func MaxTokenLifetimeLTE

func MaxTokenLifetimeLTE(v int) predicate.Agent

MaxTokenLifetimeLTE applies the LTE predicate on the "max_token_lifetime" field.

func MaxTokenLifetimeNEQ

func MaxTokenLifetimeNEQ(v int) predicate.Agent

MaxTokenLifetimeNEQ applies the NEQ predicate on the "max_token_lifetime" field.

func MaxTokenLifetimeNotIn

func MaxTokenLifetimeNotIn(vs ...int) predicate.Agent

MaxTokenLifetimeNotIn applies the NotIn predicate on the "max_token_lifetime" field.

func ModelID

func ModelID(v string) predicate.Agent

ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.

func ModelIDContains

func ModelIDContains(v string) predicate.Agent

ModelIDContains applies the Contains predicate on the "model_id" field.

func ModelIDContainsFold

func ModelIDContainsFold(v string) predicate.Agent

ModelIDContainsFold applies the ContainsFold predicate on the "model_id" field.

func ModelIDEQ

func ModelIDEQ(v string) predicate.Agent

ModelIDEQ applies the EQ predicate on the "model_id" field.

func ModelIDEqualFold

func ModelIDEqualFold(v string) predicate.Agent

ModelIDEqualFold applies the EqualFold predicate on the "model_id" field.

func ModelIDGT

func ModelIDGT(v string) predicate.Agent

ModelIDGT applies the GT predicate on the "model_id" field.

func ModelIDGTE

func ModelIDGTE(v string) predicate.Agent

ModelIDGTE applies the GTE predicate on the "model_id" field.

func ModelIDHasPrefix

func ModelIDHasPrefix(v string) predicate.Agent

ModelIDHasPrefix applies the HasPrefix predicate on the "model_id" field.

func ModelIDHasSuffix

func ModelIDHasSuffix(v string) predicate.Agent

ModelIDHasSuffix applies the HasSuffix predicate on the "model_id" field.

func ModelIDIn

func ModelIDIn(vs ...string) predicate.Agent

ModelIDIn applies the In predicate on the "model_id" field.

func ModelIDLT

func ModelIDLT(v string) predicate.Agent

ModelIDLT applies the LT predicate on the "model_id" field.

func ModelIDLTE

func ModelIDLTE(v string) predicate.Agent

ModelIDLTE applies the LTE predicate on the "model_id" field.

func ModelIDNEQ

func ModelIDNEQ(v string) predicate.Agent

ModelIDNEQ applies the NEQ predicate on the "model_id" field.

func ModelIDNotIn

func ModelIDNotIn(vs ...string) predicate.Agent

ModelIDNotIn applies the NotIn predicate on the "model_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Agent) predicate.Agent

Or groups predicates with the OR operator between them.

func PrincipalID

func PrincipalID(v uuid.UUID) predicate.Agent

PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.

func PrincipalIDEQ

func PrincipalIDEQ(v uuid.UUID) predicate.Agent

PrincipalIDEQ applies the EQ predicate on the "principal_id" field.

func PrincipalIDIn

func PrincipalIDIn(vs ...uuid.UUID) predicate.Agent

PrincipalIDIn applies the In predicate on the "principal_id" field.

func PrincipalIDNEQ

func PrincipalIDNEQ(v uuid.UUID) predicate.Agent

PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.

func PrincipalIDNotIn

func PrincipalIDNotIn(vs ...uuid.UUID) predicate.Agent

PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.

func RequiresConfirmation

func RequiresConfirmation(v bool) predicate.Agent

RequiresConfirmation applies equality check predicate on the "requires_confirmation" field. It's identical to RequiresConfirmationEQ.

func RequiresConfirmationEQ

func RequiresConfirmationEQ(v bool) predicate.Agent

RequiresConfirmationEQ applies the EQ predicate on the "requires_confirmation" field.

func RequiresConfirmationNEQ

func RequiresConfirmationNEQ(v bool) predicate.Agent

RequiresConfirmationNEQ applies the NEQ predicate on the "requires_confirmation" field.

func SessionID

func SessionID(v string) predicate.Agent

SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.

func SessionIDContains

func SessionIDContains(v string) predicate.Agent

SessionIDContains applies the Contains predicate on the "session_id" field.

func SessionIDContainsFold

func SessionIDContainsFold(v string) predicate.Agent

SessionIDContainsFold applies the ContainsFold predicate on the "session_id" field.

func SessionIDEQ

func SessionIDEQ(v string) predicate.Agent

SessionIDEQ applies the EQ predicate on the "session_id" field.

func SessionIDEqualFold

func SessionIDEqualFold(v string) predicate.Agent

SessionIDEqualFold applies the EqualFold predicate on the "session_id" field.

func SessionIDGT

func SessionIDGT(v string) predicate.Agent

SessionIDGT applies the GT predicate on the "session_id" field.

func SessionIDGTE

func SessionIDGTE(v string) predicate.Agent

SessionIDGTE applies the GTE predicate on the "session_id" field.

func SessionIDHasPrefix

func SessionIDHasPrefix(v string) predicate.Agent

SessionIDHasPrefix applies the HasPrefix predicate on the "session_id" field.

func SessionIDHasSuffix

func SessionIDHasSuffix(v string) predicate.Agent

SessionIDHasSuffix applies the HasSuffix predicate on the "session_id" field.

func SessionIDIn

func SessionIDIn(vs ...string) predicate.Agent

SessionIDIn applies the In predicate on the "session_id" field.

func SessionIDIsNil

func SessionIDIsNil() predicate.Agent

SessionIDIsNil applies the IsNil predicate on the "session_id" field.

func SessionIDLT

func SessionIDLT(v string) predicate.Agent

SessionIDLT applies the LT predicate on the "session_id" field.

func SessionIDLTE

func SessionIDLTE(v string) predicate.Agent

SessionIDLTE applies the LTE predicate on the "session_id" field.

func SessionIDNEQ

func SessionIDNEQ(v string) predicate.Agent

SessionIDNEQ applies the NEQ predicate on the "session_id" field.

func SessionIDNotIn

func SessionIDNotIn(vs ...string) predicate.Agent

SessionIDNotIn applies the NotIn predicate on the "session_id" field.

func SessionIDNotNil

func SessionIDNotNil() predicate.Agent

SessionIDNotNil applies the NotNil predicate on the "session_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Agent

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Agent

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Agent

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Agent

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Agent

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Agent

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Agent

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Agent

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Agent

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Version

func Version(v string) predicate.Agent

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Agent

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Agent

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Agent

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Agent

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Agent

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Agent

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Agent

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Agent

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Agent

VersionIn applies the In predicate on the "version" field.

func VersionIsNil

func VersionIsNil() predicate.Agent

VersionIsNil applies the IsNil predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Agent

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Agent

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Agent

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Agent

VersionNotIn applies the NotIn predicate on the "version" field.

func VersionNotNil

func VersionNotNil() predicate.Agent

VersionNotNil applies the NotNil predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL