plugin

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 4 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"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldRuntime holds the string denoting the runtime field in the database.
	FieldRuntime = "runtime"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldGrantedPermissions holds the string denoting the granted_permissions field in the database.
	FieldGrantedPermissions = "granted_permissions"
	// FieldSettings holds the string denoting the settings field in the database.
	FieldSettings = "settings"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldPackageSha256 holds the string denoting the package_sha256 field in the database.
	FieldPackageSha256 = "package_sha256"
	// FieldPlatformPackages holds the string denoting the platform_packages field in the database.
	FieldPlatformPackages = "platform_packages"
	// FieldRegistrySource holds the string denoting the registry_source field in the database.
	FieldRegistrySource = "registry_source"
	// FieldInstalledAt holds the string denoting the installed_at field in the database.
	FieldInstalledAt = "installed_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// Table holds the table name of the plugin in the database.
	Table = "plugins"
)
View Source
const DefaultKind = KindPlugin

KindPlugin is the default value of the Kind enum.

View Source
const DefaultRuntime = RuntimeJs

RuntimeJs is the default value of the Runtime enum.

View Source
const DefaultStatus = StatusDisabled

StatusDisabled is the default value of the Status enum.

Variables

View Source
var (
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(string) error
	// DefaultError holds the default value on creation for the "error" field.
	DefaultError string
	// ErrorValidator is a validator for the "error" field. It is called by the builders before save.
	ErrorValidator func(string) error
	// DefaultSource holds the default value on creation for the "source" field.
	DefaultSource string
	// SourceValidator is a validator for the "source" field. It is called by the builders before save.
	SourceValidator func(string) error
	// PackageSha256Validator is a validator for the "package_sha256" field. It is called by the builders before save.
	PackageSha256Validator func(string) error
	// DefaultRegistrySource holds the default value on creation for the "registry_source" field.
	DefaultRegistrySource string
	// RegistrySourceValidator is a validator for the "registry_source" field. It is called by the builders before save.
	RegistrySourceValidator func(string) error
	// DefaultInstalledAt holds the default value on creation for the "installed_at" field.
	DefaultInstalledAt 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
	// 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 And

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

And groups predicates with the AND operator between them.

func Error

func Error(v string) predicate.Plugin

Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.

func ErrorContains

func ErrorContains(v string) predicate.Plugin

ErrorContains applies the Contains predicate on the "error" field.

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.Plugin

ErrorContainsFold applies the ContainsFold predicate on the "error" field.

func ErrorEQ

func ErrorEQ(v string) predicate.Plugin

ErrorEQ applies the EQ predicate on the "error" field.

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.Plugin

ErrorEqualFold applies the EqualFold predicate on the "error" field.

func ErrorGT

func ErrorGT(v string) predicate.Plugin

ErrorGT applies the GT predicate on the "error" field.

func ErrorGTE

func ErrorGTE(v string) predicate.Plugin

ErrorGTE applies the GTE predicate on the "error" field.

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.Plugin

ErrorHasPrefix applies the HasPrefix predicate on the "error" field.

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.Plugin

ErrorHasSuffix applies the HasSuffix predicate on the "error" field.

func ErrorIn

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

ErrorIn applies the In predicate on the "error" field.

func ErrorIsNil

func ErrorIsNil() predicate.Plugin

ErrorIsNil applies the IsNil predicate on the "error" field.

func ErrorLT

func ErrorLT(v string) predicate.Plugin

ErrorLT applies the LT predicate on the "error" field.

func ErrorLTE

func ErrorLTE(v string) predicate.Plugin

ErrorLTE applies the LTE predicate on the "error" field.

func ErrorNEQ

func ErrorNEQ(v string) predicate.Plugin

ErrorNEQ applies the NEQ predicate on the "error" field.

func ErrorNotIn

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

ErrorNotIn applies the NotIn predicate on the "error" field.

func ErrorNotNil

func ErrorNotNil() predicate.Plugin

ErrorNotNil applies the NotNil predicate on the "error" field.

func GrantedPermissionsIsNil

func GrantedPermissionsIsNil() predicate.Plugin

GrantedPermissionsIsNil applies the IsNil predicate on the "granted_permissions" field.

func GrantedPermissionsNotNil

func GrantedPermissionsNotNil() predicate.Plugin

GrantedPermissionsNotNil applies the NotNil predicate on the "granted_permissions" field.

func ID

func ID(id string) predicate.Plugin

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Plugin

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Plugin

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Plugin

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Plugin

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Plugin

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Plugin

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Plugin

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Plugin

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Plugin

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Plugin

IDNotIn applies the NotIn predicate on the ID field.

func InstalledAt

func InstalledAt(v time.Time) predicate.Plugin

InstalledAt applies equality check predicate on the "installed_at" field. It's identical to InstalledAtEQ.

func InstalledAtEQ

func InstalledAtEQ(v time.Time) predicate.Plugin

InstalledAtEQ applies the EQ predicate on the "installed_at" field.

func InstalledAtGT

func InstalledAtGT(v time.Time) predicate.Plugin

InstalledAtGT applies the GT predicate on the "installed_at" field.

func InstalledAtGTE

func InstalledAtGTE(v time.Time) predicate.Plugin

InstalledAtGTE applies the GTE predicate on the "installed_at" field.

func InstalledAtIn

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

InstalledAtIn applies the In predicate on the "installed_at" field.

func InstalledAtLT

func InstalledAtLT(v time.Time) predicate.Plugin

InstalledAtLT applies the LT predicate on the "installed_at" field.

func InstalledAtLTE

func InstalledAtLTE(v time.Time) predicate.Plugin

InstalledAtLTE applies the LTE predicate on the "installed_at" field.

func InstalledAtNEQ

func InstalledAtNEQ(v time.Time) predicate.Plugin

InstalledAtNEQ applies the NEQ predicate on the "installed_at" field.

func InstalledAtNotIn

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

InstalledAtNotIn applies the NotIn predicate on the "installed_at" field.

func KindEQ

func KindEQ(v Kind) predicate.Plugin

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.Plugin

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.Plugin

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.Plugin

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.

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 PackageSha256

func PackageSha256(v string) predicate.Plugin

PackageSha256 applies equality check predicate on the "package_sha256" field. It's identical to PackageSha256EQ.

func PackageSha256Contains

func PackageSha256Contains(v string) predicate.Plugin

PackageSha256Contains applies the Contains predicate on the "package_sha256" field.

func PackageSha256ContainsFold

func PackageSha256ContainsFold(v string) predicate.Plugin

PackageSha256ContainsFold applies the ContainsFold predicate on the "package_sha256" field.

func PackageSha256EQ

func PackageSha256EQ(v string) predicate.Plugin

PackageSha256EQ applies the EQ predicate on the "package_sha256" field.

func PackageSha256EqualFold

func PackageSha256EqualFold(v string) predicate.Plugin

PackageSha256EqualFold applies the EqualFold predicate on the "package_sha256" field.

func PackageSha256GT

func PackageSha256GT(v string) predicate.Plugin

PackageSha256GT applies the GT predicate on the "package_sha256" field.

func PackageSha256GTE

func PackageSha256GTE(v string) predicate.Plugin

PackageSha256GTE applies the GTE predicate on the "package_sha256" field.

func PackageSha256HasPrefix

func PackageSha256HasPrefix(v string) predicate.Plugin

PackageSha256HasPrefix applies the HasPrefix predicate on the "package_sha256" field.

func PackageSha256HasSuffix

func PackageSha256HasSuffix(v string) predicate.Plugin

PackageSha256HasSuffix applies the HasSuffix predicate on the "package_sha256" field.

func PackageSha256In

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

PackageSha256In applies the In predicate on the "package_sha256" field.

func PackageSha256IsNil

func PackageSha256IsNil() predicate.Plugin

PackageSha256IsNil applies the IsNil predicate on the "package_sha256" field.

func PackageSha256LT

func PackageSha256LT(v string) predicate.Plugin

PackageSha256LT applies the LT predicate on the "package_sha256" field.

func PackageSha256LTE

func PackageSha256LTE(v string) predicate.Plugin

PackageSha256LTE applies the LTE predicate on the "package_sha256" field.

func PackageSha256NEQ

func PackageSha256NEQ(v string) predicate.Plugin

PackageSha256NEQ applies the NEQ predicate on the "package_sha256" field.

func PackageSha256NotIn

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

PackageSha256NotIn applies the NotIn predicate on the "package_sha256" field.

func PackageSha256NotNil

func PackageSha256NotNil() predicate.Plugin

PackageSha256NotNil applies the NotNil predicate on the "package_sha256" field.

func PlatformPackagesIsNil

func PlatformPackagesIsNil() predicate.Plugin

PlatformPackagesIsNil applies the IsNil predicate on the "platform_packages" field.

func PlatformPackagesNotNil

func PlatformPackagesNotNil() predicate.Plugin

PlatformPackagesNotNil applies the NotNil predicate on the "platform_packages" field.

func RegistrySource

func RegistrySource(v string) predicate.Plugin

RegistrySource applies equality check predicate on the "registry_source" field. It's identical to RegistrySourceEQ.

func RegistrySourceContains

func RegistrySourceContains(v string) predicate.Plugin

RegistrySourceContains applies the Contains predicate on the "registry_source" field.

func RegistrySourceContainsFold

func RegistrySourceContainsFold(v string) predicate.Plugin

RegistrySourceContainsFold applies the ContainsFold predicate on the "registry_source" field.

func RegistrySourceEQ

func RegistrySourceEQ(v string) predicate.Plugin

RegistrySourceEQ applies the EQ predicate on the "registry_source" field.

func RegistrySourceEqualFold

func RegistrySourceEqualFold(v string) predicate.Plugin

RegistrySourceEqualFold applies the EqualFold predicate on the "registry_source" field.

func RegistrySourceGT

func RegistrySourceGT(v string) predicate.Plugin

RegistrySourceGT applies the GT predicate on the "registry_source" field.

func RegistrySourceGTE

func RegistrySourceGTE(v string) predicate.Plugin

RegistrySourceGTE applies the GTE predicate on the "registry_source" field.

func RegistrySourceHasPrefix

func RegistrySourceHasPrefix(v string) predicate.Plugin

RegistrySourceHasPrefix applies the HasPrefix predicate on the "registry_source" field.

func RegistrySourceHasSuffix

func RegistrySourceHasSuffix(v string) predicate.Plugin

RegistrySourceHasSuffix applies the HasSuffix predicate on the "registry_source" field.

func RegistrySourceIn

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

RegistrySourceIn applies the In predicate on the "registry_source" field.

func RegistrySourceIsNil

func RegistrySourceIsNil() predicate.Plugin

RegistrySourceIsNil applies the IsNil predicate on the "registry_source" field.

func RegistrySourceLT

func RegistrySourceLT(v string) predicate.Plugin

RegistrySourceLT applies the LT predicate on the "registry_source" field.

func RegistrySourceLTE

func RegistrySourceLTE(v string) predicate.Plugin

RegistrySourceLTE applies the LTE predicate on the "registry_source" field.

func RegistrySourceNEQ

func RegistrySourceNEQ(v string) predicate.Plugin

RegistrySourceNEQ applies the NEQ predicate on the "registry_source" field.

func RegistrySourceNotIn

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

RegistrySourceNotIn applies the NotIn predicate on the "registry_source" field.

func RegistrySourceNotNil

func RegistrySourceNotNil() predicate.Plugin

RegistrySourceNotNil applies the NotNil predicate on the "registry_source" field.

func RuntimeEQ

func RuntimeEQ(v Runtime) predicate.Plugin

RuntimeEQ applies the EQ predicate on the "runtime" field.

func RuntimeIn

func RuntimeIn(vs ...Runtime) predicate.Plugin

RuntimeIn applies the In predicate on the "runtime" field.

func RuntimeNEQ

func RuntimeNEQ(v Runtime) predicate.Plugin

RuntimeNEQ applies the NEQ predicate on the "runtime" field.

func RuntimeNotIn

func RuntimeNotIn(vs ...Runtime) predicate.Plugin

RuntimeNotIn applies the NotIn predicate on the "runtime" field.

func RuntimeValidator

func RuntimeValidator(r Runtime) error

RuntimeValidator is a validator for the "runtime" field enum values. It is called by the builders before save.

func SettingsIsNil

func SettingsIsNil() predicate.Plugin

SettingsIsNil applies the IsNil predicate on the "settings" field.

func SettingsNotNil

func SettingsNotNil() predicate.Plugin

SettingsNotNil applies the NotNil predicate on the "settings" field.

func Source

func Source(v string) predicate.Plugin

Source applies equality check predicate on the "source" field. It's identical to SourceEQ.

func SourceContains

func SourceContains(v string) predicate.Plugin

SourceContains applies the Contains predicate on the "source" field.

func SourceContainsFold

func SourceContainsFold(v string) predicate.Plugin

SourceContainsFold applies the ContainsFold predicate on the "source" field.

func SourceEQ

func SourceEQ(v string) predicate.Plugin

SourceEQ applies the EQ predicate on the "source" field.

func SourceEqualFold

func SourceEqualFold(v string) predicate.Plugin

SourceEqualFold applies the EqualFold predicate on the "source" field.

func SourceGT

func SourceGT(v string) predicate.Plugin

SourceGT applies the GT predicate on the "source" field.

func SourceGTE

func SourceGTE(v string) predicate.Plugin

SourceGTE applies the GTE predicate on the "source" field.

func SourceHasPrefix

func SourceHasPrefix(v string) predicate.Plugin

SourceHasPrefix applies the HasPrefix predicate on the "source" field.

func SourceHasSuffix

func SourceHasSuffix(v string) predicate.Plugin

SourceHasSuffix applies the HasSuffix predicate on the "source" field.

func SourceIn

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

SourceIn applies the In predicate on the "source" field.

func SourceLT

func SourceLT(v string) predicate.Plugin

SourceLT applies the LT predicate on the "source" field.

func SourceLTE

func SourceLTE(v string) predicate.Plugin

SourceLTE applies the LTE predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v string) predicate.Plugin

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

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

SourceNotIn applies the NotIn predicate on the "source" field.

func StatusEQ

func StatusEQ(v Status) predicate.Plugin

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Plugin

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Plugin

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Plugin

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

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

func Version

func Version(v string) predicate.Plugin

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

func VersionContains

func VersionContains(v string) predicate.Plugin

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

func VersionContainsFold

func VersionContainsFold(v string) predicate.Plugin

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

func VersionEQ

func VersionEQ(v string) predicate.Plugin

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

func VersionEqualFold

func VersionEqualFold(v string) predicate.Plugin

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

func VersionGT

func VersionGT(v string) predicate.Plugin

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

func VersionGTE

func VersionGTE(v string) predicate.Plugin

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

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Plugin

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

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Plugin

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

func VersionIn

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

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

func VersionLT

func VersionLT(v string) predicate.Plugin

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

func VersionLTE

func VersionLTE(v string) predicate.Plugin

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

func VersionNEQ

func VersionNEQ(v string) predicate.Plugin

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

func VersionNotIn

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

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

Types

type Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindPlugin Kind = "plugin"
	KindTheme  Kind = "theme"
)

Kind values.

func (Kind) String

func (k Kind) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Plugin queries.

func ByError

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

ByError orders the results by the error field.

func ByID

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

ByID orders the results by the id field.

func ByInstalledAt

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

ByInstalledAt orders the results by the installed_at field.

func ByKind

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

ByKind orders the results by the kind field.

func ByPackageSha256

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

ByPackageSha256 orders the results by the package_sha256 field.

func ByRegistrySource

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

ByRegistrySource orders the results by the registry_source field.

func ByRuntime

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

ByRuntime orders the results by the runtime field.

func BySource

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

BySource orders the results by the source field.

func ByStatus

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

ByStatus orders the results by the status 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.

type Runtime

type Runtime string

Runtime defines the type for the "runtime" enum field.

const (
	RuntimeJs     Runtime = "js"
	RuntimeNative Runtime = "native"
)

Runtime values.

func (Runtime) String

func (r Runtime) String() string

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusEnabled  Status = "enabled"
	StatusDisabled Status = "disabled"
	StatusFailed   Status = "failed"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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