revision

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the revision type in the database.
	Label = "revision"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "version"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldExecutionState holds the string denoting the execution_state field in the database.
	FieldExecutionState = "execution_state"
	// FieldExecutedAt holds the string denoting the executed_at field in the database.
	FieldExecutedAt = "executed_at"
	// FieldExecutionTime holds the string denoting the execution_time field in the database.
	FieldExecutionTime = "execution_time"
	// FieldHash holds the string denoting the hash field in the database.
	FieldHash = "hash"
	// FieldOperatorVersion holds the string denoting the operator_version field in the database.
	FieldOperatorVersion = "operator_version"
	// FieldMeta holds the string denoting the meta field in the database.
	FieldMeta = "meta"
	// Table holds the table name of the revision in the database.
	Table = "atlas_schema_revisions"
)

Variables

Columns holds all SQL columns for revision fields.

Functions

func And

func And(predicates ...predicate.Revision) predicate.Revision

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Revision

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Revision

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Revision

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Revision

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Revision

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Revision

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Revision

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Revision

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Revision

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Revision

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Revision

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Revision

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Revision

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Revision

DescriptionNotIn applies the NotIn predicate on the "description" field.

func ExecutedAt

func ExecutedAt(v time.Time) predicate.Revision

ExecutedAt applies equality check predicate on the "executed_at" field. It's identical to ExecutedAtEQ.

func ExecutedAtEQ

func ExecutedAtEQ(v time.Time) predicate.Revision

ExecutedAtEQ applies the EQ predicate on the "executed_at" field.

func ExecutedAtGT

func ExecutedAtGT(v time.Time) predicate.Revision

ExecutedAtGT applies the GT predicate on the "executed_at" field.

func ExecutedAtGTE

func ExecutedAtGTE(v time.Time) predicate.Revision

ExecutedAtGTE applies the GTE predicate on the "executed_at" field.

func ExecutedAtIn

func ExecutedAtIn(vs ...time.Time) predicate.Revision

ExecutedAtIn applies the In predicate on the "executed_at" field.

func ExecutedAtLT

func ExecutedAtLT(v time.Time) predicate.Revision

ExecutedAtLT applies the LT predicate on the "executed_at" field.

func ExecutedAtLTE

func ExecutedAtLTE(v time.Time) predicate.Revision

ExecutedAtLTE applies the LTE predicate on the "executed_at" field.

func ExecutedAtNEQ

func ExecutedAtNEQ(v time.Time) predicate.Revision

ExecutedAtNEQ applies the NEQ predicate on the "executed_at" field.

func ExecutedAtNotIn

func ExecutedAtNotIn(vs ...time.Time) predicate.Revision

ExecutedAtNotIn applies the NotIn predicate on the "executed_at" field.

func ExecutionStateEQ

func ExecutionStateEQ(v ExecutionState) predicate.Revision

ExecutionStateEQ applies the EQ predicate on the "execution_state" field.

func ExecutionStateIn

func ExecutionStateIn(vs ...ExecutionState) predicate.Revision

ExecutionStateIn applies the In predicate on the "execution_state" field.

func ExecutionStateNEQ

func ExecutionStateNEQ(v ExecutionState) predicate.Revision

ExecutionStateNEQ applies the NEQ predicate on the "execution_state" field.

func ExecutionStateNotIn

func ExecutionStateNotIn(vs ...ExecutionState) predicate.Revision

ExecutionStateNotIn applies the NotIn predicate on the "execution_state" field.

func ExecutionStateValidator

func ExecutionStateValidator(es ExecutionState) error

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

func ExecutionTime

func ExecutionTime(v time.Duration) predicate.Revision

ExecutionTime applies equality check predicate on the "execution_time" field. It's identical to ExecutionTimeEQ.

func ExecutionTimeEQ

func ExecutionTimeEQ(v time.Duration) predicate.Revision

ExecutionTimeEQ applies the EQ predicate on the "execution_time" field.

func ExecutionTimeGT

func ExecutionTimeGT(v time.Duration) predicate.Revision

ExecutionTimeGT applies the GT predicate on the "execution_time" field.

func ExecutionTimeGTE

func ExecutionTimeGTE(v time.Duration) predicate.Revision

ExecutionTimeGTE applies the GTE predicate on the "execution_time" field.

func ExecutionTimeIn

func ExecutionTimeIn(vs ...time.Duration) predicate.Revision

ExecutionTimeIn applies the In predicate on the "execution_time" field.

func ExecutionTimeLT

func ExecutionTimeLT(v time.Duration) predicate.Revision

ExecutionTimeLT applies the LT predicate on the "execution_time" field.

func ExecutionTimeLTE

func ExecutionTimeLTE(v time.Duration) predicate.Revision

ExecutionTimeLTE applies the LTE predicate on the "execution_time" field.

func ExecutionTimeNEQ

func ExecutionTimeNEQ(v time.Duration) predicate.Revision

ExecutionTimeNEQ applies the NEQ predicate on the "execution_time" field.

func ExecutionTimeNotIn

func ExecutionTimeNotIn(vs ...time.Duration) predicate.Revision

ExecutionTimeNotIn applies the NotIn predicate on the "execution_time" field.

func Hash

func Hash(v string) predicate.Revision

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.Revision

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.Revision

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.Revision

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.Revision

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.Revision

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.Revision

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.Revision

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.Revision

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.Revision

HashIn applies the In predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.Revision

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.Revision

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.Revision

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.Revision

HashNotIn applies the NotIn predicate on the "hash" field.

func ID

func ID(id string) predicate.Revision

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Revision

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Revision

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Revision

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Revision

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Revision

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Revision

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Revision

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Revision

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func OperatorVersion

func OperatorVersion(v string) predicate.Revision

OperatorVersion applies equality check predicate on the "operator_version" field. It's identical to OperatorVersionEQ.

func OperatorVersionContains

func OperatorVersionContains(v string) predicate.Revision

OperatorVersionContains applies the Contains predicate on the "operator_version" field.

func OperatorVersionContainsFold

func OperatorVersionContainsFold(v string) predicate.Revision

OperatorVersionContainsFold applies the ContainsFold predicate on the "operator_version" field.

func OperatorVersionEQ

func OperatorVersionEQ(v string) predicate.Revision

OperatorVersionEQ applies the EQ predicate on the "operator_version" field.

func OperatorVersionEqualFold

func OperatorVersionEqualFold(v string) predicate.Revision

OperatorVersionEqualFold applies the EqualFold predicate on the "operator_version" field.

func OperatorVersionGT

func OperatorVersionGT(v string) predicate.Revision

OperatorVersionGT applies the GT predicate on the "operator_version" field.

func OperatorVersionGTE

func OperatorVersionGTE(v string) predicate.Revision

OperatorVersionGTE applies the GTE predicate on the "operator_version" field.

func OperatorVersionHasPrefix

func OperatorVersionHasPrefix(v string) predicate.Revision

OperatorVersionHasPrefix applies the HasPrefix predicate on the "operator_version" field.

func OperatorVersionHasSuffix

func OperatorVersionHasSuffix(v string) predicate.Revision

OperatorVersionHasSuffix applies the HasSuffix predicate on the "operator_version" field.

func OperatorVersionIn

func OperatorVersionIn(vs ...string) predicate.Revision

OperatorVersionIn applies the In predicate on the "operator_version" field.

func OperatorVersionLT

func OperatorVersionLT(v string) predicate.Revision

OperatorVersionLT applies the LT predicate on the "operator_version" field.

func OperatorVersionLTE

func OperatorVersionLTE(v string) predicate.Revision

OperatorVersionLTE applies the LTE predicate on the "operator_version" field.

func OperatorVersionNEQ

func OperatorVersionNEQ(v string) predicate.Revision

OperatorVersionNEQ applies the NEQ predicate on the "operator_version" field.

func OperatorVersionNotIn

func OperatorVersionNotIn(vs ...string) predicate.Revision

OperatorVersionNotIn applies the NotIn predicate on the "operator_version" field.

func Or

func Or(predicates ...predicate.Revision) predicate.Revision

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).

Types

type ExecutionState

type ExecutionState string

ExecutionState defines the type for the "execution_state" enum field.

const (
	ExecutionStateOngoing ExecutionState = "ongoing"
	ExecutionStateOk      ExecutionState = "ok"
	ExecutionStateError   ExecutionState = "error"
)

ExecutionState values.

func (ExecutionState) String

func (es ExecutionState) String() string

Jump to

Keyboard shortcuts

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