attestation

package
v0.159.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the attestation type in the database.
	Label = "attestation"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldBundle holds the string denoting the bundle field in the database.
	FieldBundle = "bundle"
	// FieldWorkflowrunID holds the string denoting the workflowrun_id field in the database.
	FieldWorkflowrunID = "workflowrun_id"
	// EdgeWorkflowrun holds the string denoting the workflowrun edge name in mutations.
	EdgeWorkflowrun = "workflowrun"
	// Table holds the table name of the attestation in the database.
	Table = "attestations"
	// WorkflowrunTable is the table that holds the workflowrun relation/edge.
	WorkflowrunTable = "attestations"
	// WorkflowrunInverseTable is the table name for the WorkflowRun entity.
	// It exists in this package in order to avoid circular dependency with the "workflowrun" package.
	WorkflowrunInverseTable = "workflow_runs"
	// WorkflowrunColumn is the table column denoting the workflowrun relation/edge.
	WorkflowrunColumn = "workflowrun_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// BundleValidator is a validator for the "bundle" field. It is called by the builders before save.
	BundleValidator func([]byte) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for attestation fields.

Functions

func And

func And(predicates ...predicate.Attestation) predicate.Attestation

And groups predicates with the AND operator between them.

func Bundle

func Bundle(v []byte) predicate.Attestation

Bundle applies equality check predicate on the "bundle" field. It's identical to BundleEQ.

func BundleEQ

func BundleEQ(v []byte) predicate.Attestation

BundleEQ applies the EQ predicate on the "bundle" field.

func BundleGT

func BundleGT(v []byte) predicate.Attestation

BundleGT applies the GT predicate on the "bundle" field.

func BundleGTE

func BundleGTE(v []byte) predicate.Attestation

BundleGTE applies the GTE predicate on the "bundle" field.

func BundleIn

func BundleIn(vs ...[]byte) predicate.Attestation

BundleIn applies the In predicate on the "bundle" field.

func BundleLT

func BundleLT(v []byte) predicate.Attestation

BundleLT applies the LT predicate on the "bundle" field.

func BundleLTE

func BundleLTE(v []byte) predicate.Attestation

BundleLTE applies the LTE predicate on the "bundle" field.

func BundleNEQ

func BundleNEQ(v []byte) predicate.Attestation

BundleNEQ applies the NEQ predicate on the "bundle" field.

func BundleNotIn

func BundleNotIn(vs ...[]byte) predicate.Attestation

BundleNotIn applies the NotIn predicate on the "bundle" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Attestation

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Attestation

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Attestation

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Attestation

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Attestation

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Attestation

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Attestation

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Attestation

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Attestation

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasWorkflowrun

func HasWorkflowrun() predicate.Attestation

HasWorkflowrun applies the HasEdge predicate on the "workflowrun" edge.

func HasWorkflowrunWith

func HasWorkflowrunWith(preds ...predicate.WorkflowRun) predicate.Attestation

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Attestation

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Attestation

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Attestation

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Attestation

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Attestation

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Attestation

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Attestation

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Attestation

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Attestation) predicate.Attestation

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func WorkflowrunID

func WorkflowrunID(v uuid.UUID) predicate.Attestation

WorkflowrunID applies equality check predicate on the "workflowrun_id" field. It's identical to WorkflowrunIDEQ.

func WorkflowrunIDEQ

func WorkflowrunIDEQ(v uuid.UUID) predicate.Attestation

WorkflowrunIDEQ applies the EQ predicate on the "workflowrun_id" field.

func WorkflowrunIDIn

func WorkflowrunIDIn(vs ...uuid.UUID) predicate.Attestation

WorkflowrunIDIn applies the In predicate on the "workflowrun_id" field.

func WorkflowrunIDNEQ

func WorkflowrunIDNEQ(v uuid.UUID) predicate.Attestation

WorkflowrunIDNEQ applies the NEQ predicate on the "workflowrun_id" field.

func WorkflowrunIDNotIn

func WorkflowrunIDNotIn(vs ...uuid.UUID) predicate.Attestation

WorkflowrunIDNotIn applies the NotIn predicate on the "workflowrun_id" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Attestation queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByWorkflowrunField

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

ByWorkflowrunField orders the results by workflowrun field.

func ByWorkflowrunID

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

ByWorkflowrunID orders the results by the workflowrun_id field.

Jump to

Keyboard shortcuts

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