plugin

package
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the plugin type in the database.
	Label = "plugin"
	// 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"
	// FieldSupervised holds the string denoting the supervised field in the database.
	FieldSupervised = "supervised"
	// FieldManifest holds the string denoting the manifest field in the database.
	FieldManifest = "manifest"
	// FieldConfig holds the string denoting the config field in the database.
	FieldConfig = "config"
	// FieldActiveState holds the string denoting the active_state field in the database.
	FieldActiveState = "active_state"
	// FieldActiveStateChangedAt holds the string denoting the active_state_changed_at field in the database.
	FieldActiveStateChangedAt = "active_state_changed_at"
	// FieldStatusMessage holds the string denoting the status_message field in the database.
	FieldStatusMessage = "status_message"
	// FieldStatusDetails holds the string denoting the status_details field in the database.
	FieldStatusDetails = "status_details"
	// FieldAuthSecret holds the string denoting the auth_secret field in the database.
	FieldAuthSecret = "auth_secret"
	// FieldAddedBy holds the string denoting the added_by field in the database.
	FieldAddedBy = "added_by"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// Table holds the table name of the plugin in the database.
	Table = "plugins"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "plugins"
	// AccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AccountInverseTable = "accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "added_by"
)

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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() xid.ID
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for plugin fields.

Functions

func ActiveState

func ActiveState(v string) predicate.Plugin

ActiveState applies equality check predicate on the "active_state" field. It's identical to ActiveStateEQ.

func ActiveStateChangedAt

func ActiveStateChangedAt(v time.Time) predicate.Plugin

ActiveStateChangedAt applies equality check predicate on the "active_state_changed_at" field. It's identical to ActiveStateChangedAtEQ.

func ActiveStateChangedAtEQ

func ActiveStateChangedAtEQ(v time.Time) predicate.Plugin

ActiveStateChangedAtEQ applies the EQ predicate on the "active_state_changed_at" field.

func ActiveStateChangedAtGT

func ActiveStateChangedAtGT(v time.Time) predicate.Plugin

ActiveStateChangedAtGT applies the GT predicate on the "active_state_changed_at" field.

func ActiveStateChangedAtGTE

func ActiveStateChangedAtGTE(v time.Time) predicate.Plugin

ActiveStateChangedAtGTE applies the GTE predicate on the "active_state_changed_at" field.

func ActiveStateChangedAtIn

func ActiveStateChangedAtIn(vs ...time.Time) predicate.Plugin

ActiveStateChangedAtIn applies the In predicate on the "active_state_changed_at" field.

func ActiveStateChangedAtLT

func ActiveStateChangedAtLT(v time.Time) predicate.Plugin

ActiveStateChangedAtLT applies the LT predicate on the "active_state_changed_at" field.

func ActiveStateChangedAtLTE

func ActiveStateChangedAtLTE(v time.Time) predicate.Plugin

ActiveStateChangedAtLTE applies the LTE predicate on the "active_state_changed_at" field.

func ActiveStateChangedAtNEQ

func ActiveStateChangedAtNEQ(v time.Time) predicate.Plugin

ActiveStateChangedAtNEQ applies the NEQ predicate on the "active_state_changed_at" field.

func ActiveStateChangedAtNotIn

func ActiveStateChangedAtNotIn(vs ...time.Time) predicate.Plugin

ActiveStateChangedAtNotIn applies the NotIn predicate on the "active_state_changed_at" field.

func ActiveStateContains

func ActiveStateContains(v string) predicate.Plugin

ActiveStateContains applies the Contains predicate on the "active_state" field.

func ActiveStateContainsFold

func ActiveStateContainsFold(v string) predicate.Plugin

ActiveStateContainsFold applies the ContainsFold predicate on the "active_state" field.

func ActiveStateEQ

func ActiveStateEQ(v string) predicate.Plugin

ActiveStateEQ applies the EQ predicate on the "active_state" field.

func ActiveStateEqualFold

func ActiveStateEqualFold(v string) predicate.Plugin

ActiveStateEqualFold applies the EqualFold predicate on the "active_state" field.

func ActiveStateGT

func ActiveStateGT(v string) predicate.Plugin

ActiveStateGT applies the GT predicate on the "active_state" field.

func ActiveStateGTE

func ActiveStateGTE(v string) predicate.Plugin

ActiveStateGTE applies the GTE predicate on the "active_state" field.

func ActiveStateHasPrefix

func ActiveStateHasPrefix(v string) predicate.Plugin

ActiveStateHasPrefix applies the HasPrefix predicate on the "active_state" field.

func ActiveStateHasSuffix

func ActiveStateHasSuffix(v string) predicate.Plugin

ActiveStateHasSuffix applies the HasSuffix predicate on the "active_state" field.

func ActiveStateIn

func ActiveStateIn(vs ...string) predicate.Plugin

ActiveStateIn applies the In predicate on the "active_state" field.

func ActiveStateLT

func ActiveStateLT(v string) predicate.Plugin

ActiveStateLT applies the LT predicate on the "active_state" field.

func ActiveStateLTE

func ActiveStateLTE(v string) predicate.Plugin

ActiveStateLTE applies the LTE predicate on the "active_state" field.

func ActiveStateNEQ

func ActiveStateNEQ(v string) predicate.Plugin

ActiveStateNEQ applies the NEQ predicate on the "active_state" field.

func ActiveStateNotIn

func ActiveStateNotIn(vs ...string) predicate.Plugin

ActiveStateNotIn applies the NotIn predicate on the "active_state" field.

func AddedBy

func AddedBy(v xid.ID) predicate.Plugin

AddedBy applies equality check predicate on the "added_by" field. It's identical to AddedByEQ.

func AddedByContains

func AddedByContains(v xid.ID) predicate.Plugin

AddedByContains applies the Contains predicate on the "added_by" field.

func AddedByContainsFold

func AddedByContainsFold(v xid.ID) predicate.Plugin

AddedByContainsFold applies the ContainsFold predicate on the "added_by" field.

func AddedByEQ

func AddedByEQ(v xid.ID) predicate.Plugin

AddedByEQ applies the EQ predicate on the "added_by" field.

func AddedByEqualFold

func AddedByEqualFold(v xid.ID) predicate.Plugin

AddedByEqualFold applies the EqualFold predicate on the "added_by" field.

func AddedByGT

func AddedByGT(v xid.ID) predicate.Plugin

AddedByGT applies the GT predicate on the "added_by" field.

func AddedByGTE

func AddedByGTE(v xid.ID) predicate.Plugin

AddedByGTE applies the GTE predicate on the "added_by" field.

func AddedByHasPrefix

func AddedByHasPrefix(v xid.ID) predicate.Plugin

AddedByHasPrefix applies the HasPrefix predicate on the "added_by" field.

func AddedByHasSuffix

func AddedByHasSuffix(v xid.ID) predicate.Plugin

AddedByHasSuffix applies the HasSuffix predicate on the "added_by" field.

func AddedByIn

func AddedByIn(vs ...xid.ID) predicate.Plugin

AddedByIn applies the In predicate on the "added_by" field.

func AddedByLT

func AddedByLT(v xid.ID) predicate.Plugin

AddedByLT applies the LT predicate on the "added_by" field.

func AddedByLTE

func AddedByLTE(v xid.ID) predicate.Plugin

AddedByLTE applies the LTE predicate on the "added_by" field.

func AddedByNEQ

func AddedByNEQ(v xid.ID) predicate.Plugin

AddedByNEQ applies the NEQ predicate on the "added_by" field.

func AddedByNotIn

func AddedByNotIn(vs ...xid.ID) predicate.Plugin

AddedByNotIn applies the NotIn predicate on the "added_by" field.

func And

func And(predicates ...predicate.Plugin) predicate.Plugin

And groups predicates with the AND operator between them.

func AuthSecret

func AuthSecret(v string) predicate.Plugin

AuthSecret applies equality check predicate on the "auth_secret" field. It's identical to AuthSecretEQ.

func AuthSecretContains

func AuthSecretContains(v string) predicate.Plugin

AuthSecretContains applies the Contains predicate on the "auth_secret" field.

func AuthSecretContainsFold

func AuthSecretContainsFold(v string) predicate.Plugin

AuthSecretContainsFold applies the ContainsFold predicate on the "auth_secret" field.

func AuthSecretEQ

func AuthSecretEQ(v string) predicate.Plugin

AuthSecretEQ applies the EQ predicate on the "auth_secret" field.

func AuthSecretEqualFold

func AuthSecretEqualFold(v string) predicate.Plugin

AuthSecretEqualFold applies the EqualFold predicate on the "auth_secret" field.

func AuthSecretGT

func AuthSecretGT(v string) predicate.Plugin

AuthSecretGT applies the GT predicate on the "auth_secret" field.

func AuthSecretGTE

func AuthSecretGTE(v string) predicate.Plugin

AuthSecretGTE applies the GTE predicate on the "auth_secret" field.

func AuthSecretHasPrefix

func AuthSecretHasPrefix(v string) predicate.Plugin

AuthSecretHasPrefix applies the HasPrefix predicate on the "auth_secret" field.

func AuthSecretHasSuffix

func AuthSecretHasSuffix(v string) predicate.Plugin

AuthSecretHasSuffix applies the HasSuffix predicate on the "auth_secret" field.

func AuthSecretIn

func AuthSecretIn(vs ...string) predicate.Plugin

AuthSecretIn applies the In predicate on the "auth_secret" field.

func AuthSecretLT

func AuthSecretLT(v string) predicate.Plugin

AuthSecretLT applies the LT predicate on the "auth_secret" field.

func AuthSecretLTE

func AuthSecretLTE(v string) predicate.Plugin

AuthSecretLTE applies the LTE predicate on the "auth_secret" field.

func AuthSecretNEQ

func AuthSecretNEQ(v string) predicate.Plugin

AuthSecretNEQ applies the NEQ predicate on the "auth_secret" field.

func AuthSecretNotIn

func AuthSecretNotIn(vs ...string) predicate.Plugin

AuthSecretNotIn applies the NotIn predicate on the "auth_secret" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Plugin

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Plugin

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Plugin

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Plugin

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Plugin

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Plugin

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Plugin

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

func CreatedAtNotIn

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

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

func HasAccount

func HasAccount() predicate.Plugin

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.Plugin

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

func ID

func ID(id xid.ID) predicate.Plugin

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id xid.ID) predicate.Plugin

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id xid.ID) predicate.Plugin

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id xid.ID) predicate.Plugin

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...xid.ID) predicate.Plugin

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id xid.ID) predicate.Plugin

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id xid.ID) predicate.Plugin

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id xid.ID) predicate.Plugin

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...xid.ID) predicate.Plugin

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Plugin) predicate.Plugin

Or groups predicates with the OR operator between them.

func StatusDetailsIsNil

func StatusDetailsIsNil() predicate.Plugin

StatusDetailsIsNil applies the IsNil predicate on the "status_details" field.

func StatusDetailsNotNil

func StatusDetailsNotNil() predicate.Plugin

StatusDetailsNotNil applies the NotNil predicate on the "status_details" field.

func StatusMessage

func StatusMessage(v string) predicate.Plugin

StatusMessage applies equality check predicate on the "status_message" field. It's identical to StatusMessageEQ.

func StatusMessageContains

func StatusMessageContains(v string) predicate.Plugin

StatusMessageContains applies the Contains predicate on the "status_message" field.

func StatusMessageContainsFold

func StatusMessageContainsFold(v string) predicate.Plugin

StatusMessageContainsFold applies the ContainsFold predicate on the "status_message" field.

func StatusMessageEQ

func StatusMessageEQ(v string) predicate.Plugin

StatusMessageEQ applies the EQ predicate on the "status_message" field.

func StatusMessageEqualFold

func StatusMessageEqualFold(v string) predicate.Plugin

StatusMessageEqualFold applies the EqualFold predicate on the "status_message" field.

func StatusMessageGT

func StatusMessageGT(v string) predicate.Plugin

StatusMessageGT applies the GT predicate on the "status_message" field.

func StatusMessageGTE

func StatusMessageGTE(v string) predicate.Plugin

StatusMessageGTE applies the GTE predicate on the "status_message" field.

func StatusMessageHasPrefix

func StatusMessageHasPrefix(v string) predicate.Plugin

StatusMessageHasPrefix applies the HasPrefix predicate on the "status_message" field.

func StatusMessageHasSuffix

func StatusMessageHasSuffix(v string) predicate.Plugin

StatusMessageHasSuffix applies the HasSuffix predicate on the "status_message" field.

func StatusMessageIn

func StatusMessageIn(vs ...string) predicate.Plugin

StatusMessageIn applies the In predicate on the "status_message" field.

func StatusMessageIsNil

func StatusMessageIsNil() predicate.Plugin

StatusMessageIsNil applies the IsNil predicate on the "status_message" field.

func StatusMessageLT

func StatusMessageLT(v string) predicate.Plugin

StatusMessageLT applies the LT predicate on the "status_message" field.

func StatusMessageLTE

func StatusMessageLTE(v string) predicate.Plugin

StatusMessageLTE applies the LTE predicate on the "status_message" field.

func StatusMessageNEQ

func StatusMessageNEQ(v string) predicate.Plugin

StatusMessageNEQ applies the NEQ predicate on the "status_message" field.

func StatusMessageNotIn

func StatusMessageNotIn(vs ...string) predicate.Plugin

StatusMessageNotIn applies the NotIn predicate on the "status_message" field.

func StatusMessageNotNil

func StatusMessageNotNil() predicate.Plugin

StatusMessageNotNil applies the NotNil predicate on the "status_message" field.

func Supervised

func Supervised(v bool) predicate.Plugin

Supervised applies equality check predicate on the "supervised" field. It's identical to SupervisedEQ.

func SupervisedEQ

func SupervisedEQ(v bool) predicate.Plugin

SupervisedEQ applies the EQ predicate on the "supervised" field.

func SupervisedNEQ

func SupervisedNEQ(v bool) predicate.Plugin

SupervisedNEQ applies the NEQ predicate on the "supervised" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Plugin

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Plugin

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Plugin

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Plugin

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Plugin

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Plugin

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Plugin

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

func UpdatedAtNotIn

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

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).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Plugin queries.

func ByAccountField

func ByAccountField(field string, opts ...sql.OrderTermOption) OrderOption

ByAccountField orders the results by account field.

func ByActiveState

func ByActiveState(opts ...sql.OrderTermOption) OrderOption

ByActiveState orders the results by the active_state field.

func ByActiveStateChangedAt

func ByActiveStateChangedAt(opts ...sql.OrderTermOption) OrderOption

ByActiveStateChangedAt orders the results by the active_state_changed_at field.

func ByAddedBy

func ByAddedBy(opts ...sql.OrderTermOption) OrderOption

ByAddedBy orders the results by the added_by field.

func ByAuthSecret

func ByAuthSecret(opts ...sql.OrderTermOption) OrderOption

ByAuthSecret orders the results by the auth_secret field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByStatusMessage

func ByStatusMessage(opts ...sql.OrderTermOption) OrderOption

ByStatusMessage orders the results by the status_message field.

func BySupervised

func BySupervised(opts ...sql.OrderTermOption) OrderOption

BySupervised orders the results by the supervised field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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