Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Artifact) predicate.Artifact
- func HasEntry() predicate.Artifact
- func HasEntryWith(preds ...predicate.ReleaseEntry) predicate.Artifact
- func HasRelease() predicate.Artifact
- func HasReleaseWith(preds ...predicate.Release) predicate.Artifact
- func ID(id int) predicate.Artifact
- func IDEQ(id int) predicate.Artifact
- func IDGT(id int) predicate.Artifact
- func IDGTE(id int) predicate.Artifact
- func IDIn(ids ...int) predicate.Artifact
- func IDLT(id int) predicate.Artifact
- func IDLTE(id int) predicate.Artifact
- func IDNEQ(id int) predicate.Artifact
- func IDNotIn(ids ...int) predicate.Artifact
- func MetadataIsNil() predicate.Artifact
- func MetadataNotNil() predicate.Artifact
- func Name(v string) predicate.Artifact
- func NameContains(v string) predicate.Artifact
- func NameContainsFold(v string) predicate.Artifact
- func NameEQ(v string) predicate.Artifact
- func NameEqualFold(v string) predicate.Artifact
- func NameGT(v string) predicate.Artifact
- func NameGTE(v string) predicate.Artifact
- func NameHasPrefix(v string) predicate.Artifact
- func NameHasSuffix(v string) predicate.Artifact
- func NameIn(vs ...string) predicate.Artifact
- func NameLT(v string) predicate.Artifact
- func NameLTE(v string) predicate.Artifact
- func NameNEQ(v string) predicate.Artifact
- func NameNotIn(vs ...string) predicate.Artifact
- func Not(p predicate.Artifact) predicate.Artifact
- func Or(predicates ...predicate.Artifact) predicate.Artifact
- func Sha256(v string) predicate.Artifact
- func Sha256Contains(v string) predicate.Artifact
- func Sha256ContainsFold(v string) predicate.Artifact
- func Sha256EQ(v string) predicate.Artifact
- func Sha256EqualFold(v string) predicate.Artifact
- func Sha256GT(v string) predicate.Artifact
- func Sha256GTE(v string) predicate.Artifact
- func Sha256HasPrefix(v string) predicate.Artifact
- func Sha256HasSuffix(v string) predicate.Artifact
- func Sha256In(vs ...string) predicate.Artifact
- func Sha256LT(v string) predicate.Artifact
- func Sha256LTE(v string) predicate.Artifact
- func Sha256NEQ(v string) predicate.Artifact
- func Sha256NotIn(vs ...string) predicate.Artifact
- func Time(v time.Time) predicate.Artifact
- func TimeEQ(v time.Time) predicate.Artifact
- func TimeGT(v time.Time) predicate.Artifact
- func TimeGTE(v time.Time) predicate.Artifact
- func TimeIn(vs ...time.Time) predicate.Artifact
- func TimeLT(v time.Time) predicate.Artifact
- func TimeLTE(v time.Time) predicate.Artifact
- func TimeNEQ(v time.Time) predicate.Artifact
- func TimeNotIn(vs ...time.Time) predicate.Artifact
- func TypeEQ(v Type) predicate.Artifact
- func TypeIn(vs ...Type) predicate.Artifact
- func TypeNEQ(v Type) predicate.Artifact
- func TypeNotIn(vs ...Type) predicate.Artifact
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the artifact type in the database. Label = "artifact" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSha256 holds the string denoting the sha256 field in the database. FieldSha256 = "sha256" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldTime holds the string denoting the time field in the database. FieldTime = "time" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // EdgeRelease holds the string denoting the release edge name in mutations. EdgeRelease = "release" // EdgeEntry holds the string denoting the entry edge name in mutations. EdgeEntry = "entry" // Table holds the table name of the artifact in the database. Table = "artifact" // ReleaseTable is the table that holds the release relation/edge. ReleaseTable = "artifact" // ReleaseInverseTable is the table name for the Release entity. // It exists in this package in order to avoid circular dependency with the "release" package. ReleaseInverseTable = "release" // ReleaseColumn is the table column denoting the release relation/edge. ReleaseColumn = "artifact_release" // EntryTable is the table that holds the entry relation/edge. EntryTable = "artifact" // EntryInverseTable is the table name for the ReleaseEntry entity. // It exists in this package in order to avoid circular dependency with the "releaseentry" package. EntryInverseTable = "release_entry" // EntryColumn is the table column denoting the entry relation/edge. EntryColumn = "release_entry_artifact" )
Variables ¶
var ( Hooks [1]ent.Hook // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // Sha256Validator is a validator for the "sha256" field. It is called by the builders before save. Sha256Validator func(string) error // DefaultTime holds the default value on creation for the "time" field. DefaultTime func() time.Time )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/valocode/bubbly/ent/runtime"
var Columns = []string{ FieldID, FieldName, FieldSha256, FieldType, FieldTime, FieldMetadata, }
Columns holds all SQL columns for artifact fields.
var ForeignKeys = []string{
"artifact_release",
"release_entry_artifact",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "artifact" table and are not defined as standalone fields in the schema.
Functions ¶
func HasEntryWith ¶
func HasEntryWith(preds ...predicate.ReleaseEntry) predicate.Artifact
HasEntryWith applies the HasEdge predicate on the "entry" edge with a given conditions (other predicates).
func HasRelease ¶
HasRelease applies the HasEdge predicate on the "release" edge.
func HasReleaseWith ¶
HasReleaseWith applies the HasEdge predicate on the "release" edge with a given conditions (other predicates).
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Sha256 ¶
Sha256 applies equality check predicate on the "sha256" field. It's identical to Sha256EQ.
func Sha256Contains ¶
Sha256Contains applies the Contains predicate on the "sha256" field.
func Sha256ContainsFold ¶
Sha256ContainsFold applies the ContainsFold predicate on the "sha256" field.
func Sha256EqualFold ¶
Sha256EqualFold applies the EqualFold predicate on the "sha256" field.
func Sha256HasPrefix ¶
Sha256HasPrefix applies the HasPrefix predicate on the "sha256" field.
func Sha256HasSuffix ¶
Sha256HasSuffix applies the HasSuffix predicate on the "sha256" field.
func Sha256NotIn ¶
Sha256NotIn applies the NotIn predicate on the "sha256" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Type ¶
type Type string
Type defines the type for the "type" enum field.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.