Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Plugin) predicate.Plugin
- func Error(v string) predicate.Plugin
- func ErrorContains(v string) predicate.Plugin
- func ErrorContainsFold(v string) predicate.Plugin
- func ErrorEQ(v string) predicate.Plugin
- func ErrorEqualFold(v string) predicate.Plugin
- func ErrorGT(v string) predicate.Plugin
- func ErrorGTE(v string) predicate.Plugin
- func ErrorHasPrefix(v string) predicate.Plugin
- func ErrorHasSuffix(v string) predicate.Plugin
- func ErrorIn(vs ...string) predicate.Plugin
- func ErrorIsNil() predicate.Plugin
- func ErrorLT(v string) predicate.Plugin
- func ErrorLTE(v string) predicate.Plugin
- func ErrorNEQ(v string) predicate.Plugin
- func ErrorNotIn(vs ...string) predicate.Plugin
- func ErrorNotNil() predicate.Plugin
- func GrantedPermissionsIsNil() predicate.Plugin
- func GrantedPermissionsNotNil() predicate.Plugin
- func ID(id string) predicate.Plugin
- func IDContainsFold(id string) predicate.Plugin
- func IDEQ(id string) predicate.Plugin
- func IDEqualFold(id string) predicate.Plugin
- func IDGT(id string) predicate.Plugin
- func IDGTE(id string) predicate.Plugin
- func IDIn(ids ...string) predicate.Plugin
- func IDLT(id string) predicate.Plugin
- func IDLTE(id string) predicate.Plugin
- func IDNEQ(id string) predicate.Plugin
- func IDNotIn(ids ...string) predicate.Plugin
- func InstalledAt(v time.Time) predicate.Plugin
- func InstalledAtEQ(v time.Time) predicate.Plugin
- func InstalledAtGT(v time.Time) predicate.Plugin
- func InstalledAtGTE(v time.Time) predicate.Plugin
- func InstalledAtIn(vs ...time.Time) predicate.Plugin
- func InstalledAtLT(v time.Time) predicate.Plugin
- func InstalledAtLTE(v time.Time) predicate.Plugin
- func InstalledAtNEQ(v time.Time) predicate.Plugin
- func InstalledAtNotIn(vs ...time.Time) predicate.Plugin
- func KindEQ(v Kind) predicate.Plugin
- func KindIn(vs ...Kind) predicate.Plugin
- func KindNEQ(v Kind) predicate.Plugin
- func KindNotIn(vs ...Kind) predicate.Plugin
- func KindValidator(k Kind) error
- func Not(p predicate.Plugin) predicate.Plugin
- func Or(predicates ...predicate.Plugin) predicate.Plugin
- func PackageSha256(v string) predicate.Plugin
- func PackageSha256Contains(v string) predicate.Plugin
- func PackageSha256ContainsFold(v string) predicate.Plugin
- func PackageSha256EQ(v string) predicate.Plugin
- func PackageSha256EqualFold(v string) predicate.Plugin
- func PackageSha256GT(v string) predicate.Plugin
- func PackageSha256GTE(v string) predicate.Plugin
- func PackageSha256HasPrefix(v string) predicate.Plugin
- func PackageSha256HasSuffix(v string) predicate.Plugin
- func PackageSha256In(vs ...string) predicate.Plugin
- func PackageSha256IsNil() predicate.Plugin
- func PackageSha256LT(v string) predicate.Plugin
- func PackageSha256LTE(v string) predicate.Plugin
- func PackageSha256NEQ(v string) predicate.Plugin
- func PackageSha256NotIn(vs ...string) predicate.Plugin
- func PackageSha256NotNil() predicate.Plugin
- func PlatformPackagesIsNil() predicate.Plugin
- func PlatformPackagesNotNil() predicate.Plugin
- func RegistrySource(v string) predicate.Plugin
- func RegistrySourceContains(v string) predicate.Plugin
- func RegistrySourceContainsFold(v string) predicate.Plugin
- func RegistrySourceEQ(v string) predicate.Plugin
- func RegistrySourceEqualFold(v string) predicate.Plugin
- func RegistrySourceGT(v string) predicate.Plugin
- func RegistrySourceGTE(v string) predicate.Plugin
- func RegistrySourceHasPrefix(v string) predicate.Plugin
- func RegistrySourceHasSuffix(v string) predicate.Plugin
- func RegistrySourceIn(vs ...string) predicate.Plugin
- func RegistrySourceIsNil() predicate.Plugin
- func RegistrySourceLT(v string) predicate.Plugin
- func RegistrySourceLTE(v string) predicate.Plugin
- func RegistrySourceNEQ(v string) predicate.Plugin
- func RegistrySourceNotIn(vs ...string) predicate.Plugin
- func RegistrySourceNotNil() predicate.Plugin
- func RuntimeEQ(v Runtime) predicate.Plugin
- func RuntimeIn(vs ...Runtime) predicate.Plugin
- func RuntimeNEQ(v Runtime) predicate.Plugin
- func RuntimeNotIn(vs ...Runtime) predicate.Plugin
- func RuntimeValidator(r Runtime) error
- func SettingsIsNil() predicate.Plugin
- func SettingsNotNil() predicate.Plugin
- func Source(v string) predicate.Plugin
- func SourceContains(v string) predicate.Plugin
- func SourceContainsFold(v string) predicate.Plugin
- func SourceEQ(v string) predicate.Plugin
- func SourceEqualFold(v string) predicate.Plugin
- func SourceGT(v string) predicate.Plugin
- func SourceGTE(v string) predicate.Plugin
- func SourceHasPrefix(v string) predicate.Plugin
- func SourceHasSuffix(v string) predicate.Plugin
- func SourceIn(vs ...string) predicate.Plugin
- func SourceLT(v string) predicate.Plugin
- func SourceLTE(v string) predicate.Plugin
- func SourceNEQ(v string) predicate.Plugin
- func SourceNotIn(vs ...string) predicate.Plugin
- func StatusEQ(v Status) predicate.Plugin
- func StatusIn(vs ...Status) predicate.Plugin
- func StatusNEQ(v Status) predicate.Plugin
- func StatusNotIn(vs ...Status) predicate.Plugin
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Plugin
- func UpdatedAtEQ(v time.Time) predicate.Plugin
- func UpdatedAtGT(v time.Time) predicate.Plugin
- func UpdatedAtGTE(v time.Time) predicate.Plugin
- func UpdatedAtIn(vs ...time.Time) predicate.Plugin
- func UpdatedAtLT(v time.Time) predicate.Plugin
- func UpdatedAtLTE(v time.Time) predicate.Plugin
- func UpdatedAtNEQ(v time.Time) predicate.Plugin
- func UpdatedAtNotIn(vs ...time.Time) predicate.Plugin
- func ValidColumn(column string) bool
- func Version(v string) predicate.Plugin
- func VersionContains(v string) predicate.Plugin
- func VersionContainsFold(v string) predicate.Plugin
- func VersionEQ(v string) predicate.Plugin
- func VersionEqualFold(v string) predicate.Plugin
- func VersionGT(v string) predicate.Plugin
- func VersionGTE(v string) predicate.Plugin
- func VersionHasPrefix(v string) predicate.Plugin
- func VersionHasSuffix(v string) predicate.Plugin
- func VersionIn(vs ...string) predicate.Plugin
- func VersionLT(v string) predicate.Plugin
- func VersionLTE(v string) predicate.Plugin
- func VersionNEQ(v string) predicate.Plugin
- func VersionNotIn(vs ...string) predicate.Plugin
- type Kind
- type OrderOption
- func ByError(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInstalledAt(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByPackageSha256(opts ...sql.OrderTermOption) OrderOption
- func ByRegistrySource(opts ...sql.OrderTermOption) OrderOption
- func ByRuntime(opts ...sql.OrderTermOption) OrderOption
- func BySource(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
- type Runtime
- type Status
Constants ¶
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" )
const DefaultKind = KindPlugin
KindPlugin is the default value of the Kind enum.
const DefaultRuntime = RuntimeJs
RuntimeJs is the default value of the Runtime enum.
const DefaultStatus = StatusDisabled
StatusDisabled is the default value of the Status enum.
Variables ¶
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 )
var Columns = []string{ FieldID, FieldKind, FieldRuntime, FieldVersion, FieldStatus, FieldGrantedPermissions, FieldSettings, FieldError, FieldSource, FieldPackageSha256, FieldPlatformPackages, FieldRegistrySource, FieldInstalledAt, FieldUpdatedAt, }
Columns holds all SQL columns for plugin fields.
Functions ¶
func Error ¶
Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.
func ErrorContains ¶
ErrorContains applies the Contains predicate on the "error" field.
func ErrorContainsFold ¶
ErrorContainsFold applies the ContainsFold predicate on the "error" field.
func ErrorEqualFold ¶
ErrorEqualFold applies the EqualFold predicate on the "error" field.
func ErrorHasPrefix ¶
ErrorHasPrefix applies the HasPrefix predicate on the "error" field.
func ErrorHasSuffix ¶
ErrorHasSuffix applies the HasSuffix predicate on the "error" field.
func ErrorIsNil ¶
ErrorIsNil applies the IsNil predicate on the "error" field.
func ErrorNotIn ¶
ErrorNotIn applies the NotIn predicate on the "error" field.
func ErrorNotNil ¶
ErrorNotNil applies the NotNil predicate on the "error" field.
func GrantedPermissionsIsNil ¶
GrantedPermissionsIsNil applies the IsNil predicate on the "granted_permissions" field.
func GrantedPermissionsNotNil ¶
GrantedPermissionsNotNil applies the NotNil predicate on the "granted_permissions" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func InstalledAt ¶
InstalledAt applies equality check predicate on the "installed_at" field. It's identical to InstalledAtEQ.
func InstalledAtEQ ¶
InstalledAtEQ applies the EQ predicate on the "installed_at" field.
func InstalledAtGT ¶
InstalledAtGT applies the GT predicate on the "installed_at" field.
func InstalledAtGTE ¶
InstalledAtGTE applies the GTE predicate on the "installed_at" field.
func InstalledAtIn ¶
InstalledAtIn applies the In predicate on the "installed_at" field.
func InstalledAtLT ¶
InstalledAtLT applies the LT predicate on the "installed_at" field.
func InstalledAtLTE ¶
InstalledAtLTE applies the LTE predicate on the "installed_at" field.
func InstalledAtNEQ ¶
InstalledAtNEQ applies the NEQ predicate on the "installed_at" field.
func InstalledAtNotIn ¶
InstalledAtNotIn applies the NotIn predicate on the "installed_at" field.
func KindValidator ¶
KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.
func PackageSha256 ¶
PackageSha256 applies equality check predicate on the "package_sha256" field. It's identical to PackageSha256EQ.
func PackageSha256Contains ¶
PackageSha256Contains applies the Contains predicate on the "package_sha256" field.
func PackageSha256ContainsFold ¶
PackageSha256ContainsFold applies the ContainsFold predicate on the "package_sha256" field.
func PackageSha256EQ ¶
PackageSha256EQ applies the EQ predicate on the "package_sha256" field.
func PackageSha256EqualFold ¶
PackageSha256EqualFold applies the EqualFold predicate on the "package_sha256" field.
func PackageSha256GT ¶
PackageSha256GT applies the GT predicate on the "package_sha256" field.
func PackageSha256GTE ¶
PackageSha256GTE applies the GTE predicate on the "package_sha256" field.
func PackageSha256HasPrefix ¶
PackageSha256HasPrefix applies the HasPrefix predicate on the "package_sha256" field.
func PackageSha256HasSuffix ¶
PackageSha256HasSuffix applies the HasSuffix predicate on the "package_sha256" field.
func PackageSha256In ¶
PackageSha256In applies the In predicate on the "package_sha256" field.
func PackageSha256IsNil ¶
PackageSha256IsNil applies the IsNil predicate on the "package_sha256" field.
func PackageSha256LT ¶
PackageSha256LT applies the LT predicate on the "package_sha256" field.
func PackageSha256LTE ¶
PackageSha256LTE applies the LTE predicate on the "package_sha256" field.
func PackageSha256NEQ ¶
PackageSha256NEQ applies the NEQ predicate on the "package_sha256" field.
func PackageSha256NotIn ¶
PackageSha256NotIn applies the NotIn predicate on the "package_sha256" field.
func PackageSha256NotNil ¶
PackageSha256NotNil applies the NotNil predicate on the "package_sha256" field.
func PlatformPackagesIsNil ¶
PlatformPackagesIsNil applies the IsNil predicate on the "platform_packages" field.
func PlatformPackagesNotNil ¶
PlatformPackagesNotNil applies the NotNil predicate on the "platform_packages" field.
func RegistrySource ¶
RegistrySource applies equality check predicate on the "registry_source" field. It's identical to RegistrySourceEQ.
func RegistrySourceContains ¶
RegistrySourceContains applies the Contains predicate on the "registry_source" field.
func RegistrySourceContainsFold ¶
RegistrySourceContainsFold applies the ContainsFold predicate on the "registry_source" field.
func RegistrySourceEQ ¶
RegistrySourceEQ applies the EQ predicate on the "registry_source" field.
func RegistrySourceEqualFold ¶
RegistrySourceEqualFold applies the EqualFold predicate on the "registry_source" field.
func RegistrySourceGT ¶
RegistrySourceGT applies the GT predicate on the "registry_source" field.
func RegistrySourceGTE ¶
RegistrySourceGTE applies the GTE predicate on the "registry_source" field.
func RegistrySourceHasPrefix ¶
RegistrySourceHasPrefix applies the HasPrefix predicate on the "registry_source" field.
func RegistrySourceHasSuffix ¶
RegistrySourceHasSuffix applies the HasSuffix predicate on the "registry_source" field.
func RegistrySourceIn ¶
RegistrySourceIn applies the In predicate on the "registry_source" field.
func RegistrySourceIsNil ¶
RegistrySourceIsNil applies the IsNil predicate on the "registry_source" field.
func RegistrySourceLT ¶
RegistrySourceLT applies the LT predicate on the "registry_source" field.
func RegistrySourceLTE ¶
RegistrySourceLTE applies the LTE predicate on the "registry_source" field.
func RegistrySourceNEQ ¶
RegistrySourceNEQ applies the NEQ predicate on the "registry_source" field.
func RegistrySourceNotIn ¶
RegistrySourceNotIn applies the NotIn predicate on the "registry_source" field.
func RegistrySourceNotNil ¶
RegistrySourceNotNil applies the NotNil predicate on the "registry_source" field.
func RuntimeNEQ ¶
RuntimeNEQ applies the NEQ predicate on the "runtime" field.
func RuntimeNotIn ¶
RuntimeNotIn applies the NotIn predicate on the "runtime" field.
func RuntimeValidator ¶
RuntimeValidator is a validator for the "runtime" field enum values. It is called by the builders before save.
func SettingsIsNil ¶
SettingsIsNil applies the IsNil predicate on the "settings" field.
func SettingsNotNil ¶
SettingsNotNil applies the NotNil predicate on the "settings" field.
func Source ¶
Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
func SourceContains ¶
SourceContains applies the Contains predicate on the "source" field.
func SourceContainsFold ¶
SourceContainsFold applies the ContainsFold predicate on the "source" field.
func SourceEqualFold ¶
SourceEqualFold applies the EqualFold predicate on the "source" field.
func SourceHasPrefix ¶
SourceHasPrefix applies the HasPrefix predicate on the "source" field.
func SourceHasSuffix ¶
SourceHasSuffix applies the HasSuffix predicate on the "source" field.
func SourceNotIn ¶
SourceNotIn applies the NotIn predicate on the "source" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 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.
Types ¶
type OrderOption ¶
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.