artifact

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for artifact fields.

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

func And(predicates ...predicate.Artifact) predicate.Artifact

And groups predicates with the AND operator between them.

func HasEntry

func HasEntry() predicate.Artifact

HasEntry applies the HasEdge predicate on the "entry" edge.

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

func HasRelease() predicate.Artifact

HasRelease applies the HasEdge predicate on the "release" edge.

func HasReleaseWith

func HasReleaseWith(preds ...predicate.Release) predicate.Artifact

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

func ID

func ID(id int) predicate.Artifact

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Artifact

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Artifact

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Artifact

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Artifact

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Artifact

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Artifact

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Artifact

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Artifact

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.Artifact

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Artifact

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.Artifact

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Artifact

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Artifact

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Artifact

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Artifact

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Artifact

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Artifact

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Artifact

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Artifact

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Artifact

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Artifact

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Artifact

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Artifact

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Artifact

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Artifact) predicate.Artifact

Or groups predicates with the OR operator between them.

func Sha256

func Sha256(v string) predicate.Artifact

Sha256 applies equality check predicate on the "sha256" field. It's identical to Sha256EQ.

func Sha256Contains

func Sha256Contains(v string) predicate.Artifact

Sha256Contains applies the Contains predicate on the "sha256" field.

func Sha256ContainsFold

func Sha256ContainsFold(v string) predicate.Artifact

Sha256ContainsFold applies the ContainsFold predicate on the "sha256" field.

func Sha256EQ

func Sha256EQ(v string) predicate.Artifact

Sha256EQ applies the EQ predicate on the "sha256" field.

func Sha256EqualFold

func Sha256EqualFold(v string) predicate.Artifact

Sha256EqualFold applies the EqualFold predicate on the "sha256" field.

func Sha256GT

func Sha256GT(v string) predicate.Artifact

Sha256GT applies the GT predicate on the "sha256" field.

func Sha256GTE

func Sha256GTE(v string) predicate.Artifact

Sha256GTE applies the GTE predicate on the "sha256" field.

func Sha256HasPrefix

func Sha256HasPrefix(v string) predicate.Artifact

Sha256HasPrefix applies the HasPrefix predicate on the "sha256" field.

func Sha256HasSuffix

func Sha256HasSuffix(v string) predicate.Artifact

Sha256HasSuffix applies the HasSuffix predicate on the "sha256" field.

func Sha256In

func Sha256In(vs ...string) predicate.Artifact

Sha256In applies the In predicate on the "sha256" field.

func Sha256LT

func Sha256LT(v string) predicate.Artifact

Sha256LT applies the LT predicate on the "sha256" field.

func Sha256LTE

func Sha256LTE(v string) predicate.Artifact

Sha256LTE applies the LTE predicate on the "sha256" field.

func Sha256NEQ

func Sha256NEQ(v string) predicate.Artifact

Sha256NEQ applies the NEQ predicate on the "sha256" field.

func Sha256NotIn

func Sha256NotIn(vs ...string) predicate.Artifact

Sha256NotIn applies the NotIn predicate on the "sha256" field.

func Time

func Time(v time.Time) predicate.Artifact

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeEQ

func TimeEQ(v time.Time) predicate.Artifact

TimeEQ applies the EQ predicate on the "time" field.

func TimeGT

func TimeGT(v time.Time) predicate.Artifact

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v time.Time) predicate.Artifact

TimeGTE applies the GTE predicate on the "time" field.

func TimeIn

func TimeIn(vs ...time.Time) predicate.Artifact

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v time.Time) predicate.Artifact

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v time.Time) predicate.Artifact

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v time.Time) predicate.Artifact

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...time.Time) predicate.Artifact

TimeNotIn applies the NotIn predicate on the "time" field.

func TypeEQ

func TypeEQ(v Type) predicate.Artifact

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Artifact

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Artifact

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Artifact

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

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

func ValidColumn

func ValidColumn(column string) bool

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.

const (
	TypeDocker Type = "docker"
	TypeFile   Type = "file"
)

Type values.

func (Type) MarshalGQL

func (_type Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (_type *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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