artifactreference

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the artifactreference type in the database.
	Label = "artifact_reference"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPurpose holds the string denoting the purpose field in the database.
	FieldPurpose = "purpose"
	// EdgeArtifact holds the string denoting the artifact edge name in mutations.
	EdgeArtifact = "artifact"
	// EdgeDeploymentPackageFk holds the string denoting the deployment_package_fk edge name in mutations.
	EdgeDeploymentPackageFk = "deployment_package_fk"
	// Table holds the table name of the artifactreference in the database.
	Table = "artifact_references"
	// ArtifactTable is the table that holds the artifact relation/edge.
	ArtifactTable = "artifact_references"
	// ArtifactInverseTable is the table name for the Artifact entity.
	// It exists in this package in order to avoid circular dependency with the "artifact" package.
	ArtifactInverseTable = "artifacts"
	// ArtifactColumn is the table column denoting the artifact relation/edge.
	ArtifactColumn = "artifact_reference_artifact"
	// DeploymentPackageFkTable is the table that holds the deployment_package_fk relation/edge.
	DeploymentPackageFkTable = "artifact_references"
	// DeploymentPackageFkInverseTable is the table name for the DeploymentPackage entity.
	// It exists in this package in order to avoid circular dependency with the "deploymentpackage" package.
	DeploymentPackageFkInverseTable = "deployment_packages"
	// DeploymentPackageFkColumn is the table column denoting the deployment_package_fk relation/edge.
	DeploymentPackageFkColumn = "deployment_package_artifacts"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldPurpose,
}

Columns holds all SQL columns for artifactreference fields.

View Source
var ForeignKeys = []string{
	"artifact_reference_artifact",
	"deployment_package_artifacts",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "artifact_references" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func HasArtifact

func HasArtifact() predicate.ArtifactReference

HasArtifact applies the HasEdge predicate on the "artifact" edge.

func HasArtifactWith

func HasArtifactWith(preds ...predicate.Artifact) predicate.ArtifactReference

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

func HasDeploymentPackageFk

func HasDeploymentPackageFk() predicate.ArtifactReference

HasDeploymentPackageFk applies the HasEdge predicate on the "deployment_package_fk" edge.

func HasDeploymentPackageFkWith

func HasDeploymentPackageFkWith(preds ...predicate.DeploymentPackage) predicate.ArtifactReference

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.ArtifactReference

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.ArtifactReference

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Purpose

Purpose applies equality check predicate on the "purpose" field. It's identical to PurposeEQ.

func PurposeContains

func PurposeContains(v string) predicate.ArtifactReference

PurposeContains applies the Contains predicate on the "purpose" field.

func PurposeContainsFold

func PurposeContainsFold(v string) predicate.ArtifactReference

PurposeContainsFold applies the ContainsFold predicate on the "purpose" field.

func PurposeEQ

func PurposeEQ(v string) predicate.ArtifactReference

PurposeEQ applies the EQ predicate on the "purpose" field.

func PurposeEqualFold

func PurposeEqualFold(v string) predicate.ArtifactReference

PurposeEqualFold applies the EqualFold predicate on the "purpose" field.

func PurposeGT

func PurposeGT(v string) predicate.ArtifactReference

PurposeGT applies the GT predicate on the "purpose" field.

func PurposeGTE

func PurposeGTE(v string) predicate.ArtifactReference

PurposeGTE applies the GTE predicate on the "purpose" field.

func PurposeHasPrefix

func PurposeHasPrefix(v string) predicate.ArtifactReference

PurposeHasPrefix applies the HasPrefix predicate on the "purpose" field.

func PurposeHasSuffix

func PurposeHasSuffix(v string) predicate.ArtifactReference

PurposeHasSuffix applies the HasSuffix predicate on the "purpose" field.

func PurposeIn

func PurposeIn(vs ...string) predicate.ArtifactReference

PurposeIn applies the In predicate on the "purpose" field.

func PurposeLT

func PurposeLT(v string) predicate.ArtifactReference

PurposeLT applies the LT predicate on the "purpose" field.

func PurposeLTE

func PurposeLTE(v string) predicate.ArtifactReference

PurposeLTE applies the LTE predicate on the "purpose" field.

func PurposeNEQ

func PurposeNEQ(v string) predicate.ArtifactReference

PurposeNEQ applies the NEQ predicate on the "purpose" field.

func PurposeNotIn

func PurposeNotIn(vs ...string) predicate.ArtifactReference

PurposeNotIn applies the NotIn predicate on the "purpose" 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 ArtifactReference queries.

func ByArtifactField

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

ByArtifactField orders the results by artifact field.

func ByDeploymentPackageFkField

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

ByDeploymentPackageFkField orders the results by deployment_package_fk field.

func ByID

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

ByID orders the results by the id field.

func ByPurpose

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

ByPurpose orders the results by the purpose field.

Jump to

Keyboard shortcuts

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