releasepolicyviolation

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the releasepolicyviolation type in the database.
	Label = "release_policy_violation"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldSeverity holds the string denoting the severity field in the database.
	FieldSeverity = "severity"
	// EdgePolicy holds the string denoting the policy edge name in mutations.
	EdgePolicy = "policy"
	// EdgeRelease holds the string denoting the release edge name in mutations.
	EdgeRelease = "release"
	// Table holds the table name of the releasepolicyviolation in the database.
	Table = "release_policy_violation"
	// PolicyTable is the table that holds the policy relation/edge.
	PolicyTable = "release_policy_violation"
	// PolicyInverseTable is the table name for the ReleasePolicy entity.
	// It exists in this package in order to avoid circular dependency with the "releasepolicy" package.
	PolicyInverseTable = "release_policy"
	// PolicyColumn is the table column denoting the policy relation/edge.
	PolicyColumn = "release_policy_violation_policy"
	// ReleaseTable is the table that holds the release relation/edge.
	ReleaseTable = "release_policy_violation"
	// 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 = "release_policy_violation_release"
)

Variables

Columns holds all SQL columns for releasepolicyviolation fields.

View Source
var ForeignKeys = []string{
	"release_policy_violation_policy",
	"release_policy_violation_release",
}

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

View Source
var (
	// MessageValidator is a validator for the "message" field. It is called by the builders before save.
	MessageValidator func(string) error
)

Functions

func And

And groups predicates with the AND operator between them.

func HasPolicy

HasPolicy applies the HasEdge predicate on the "policy" edge.

func HasPolicyWith

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

func HasRelease

func HasRelease() predicate.ReleasePolicyViolation

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

func HasReleaseWith

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

HasReleaseWith applies the HasEdge predicate on the "release" 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

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 ...int) predicate.ReleasePolicyViolation

IDNotIn applies the NotIn predicate on the ID field.

func Message

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.ReleasePolicyViolation

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.ReleasePolicyViolation

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.ReleasePolicyViolation

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.ReleasePolicyViolation

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.ReleasePolicyViolation

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.ReleasePolicyViolation

MessageIn applies the In predicate on the "message" field.

func MessageLT

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.ReleasePolicyViolation

MessageNotIn applies the NotIn predicate on the "message" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func SeverityEQ

SeverityEQ applies the EQ predicate on the "severity" field.

func SeverityIn

func SeverityIn(vs ...Severity) predicate.ReleasePolicyViolation

SeverityIn applies the In predicate on the "severity" field.

func SeverityNEQ

SeverityNEQ applies the NEQ predicate on the "severity" field.

func SeverityNotIn

func SeverityNotIn(vs ...Severity) predicate.ReleasePolicyViolation

SeverityNotIn applies the NotIn predicate on the "severity" field.

func SeverityValidator

func SeverityValidator(s Severity) error

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

func TypeEQ

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

func TypeIn

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

func TypeNEQ

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

func TypeNotIn

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

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 Severity

type Severity string

Severity defines the type for the "severity" enum field.

const (
	SeveritySuggestion Severity = "suggestion"
	SeverityWarning    Severity = "warning"
	SeverityBlocking   Severity = "blocking"
)

Severity values.

func (Severity) MarshalGQL

func (s Severity) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Severity) String

func (s Severity) String() string

func (*Severity) UnmarshalGQL

func (s *Severity) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeRequire Type = "require"
	TypeDeny    Type = "deny"
)

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