credential

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the credential type in the database.
	Label = "credential"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPrincipal holds the string denoting the principal vertex property in the database.
	FieldPrincipal = "principal"
	// FieldSecret holds the string denoting the secret vertex property in the database.
	FieldSecret = "secret"
	// FieldKind holds the string denoting the kind vertex property in the database.
	FieldKind = "kind"
	// FieldFails holds the string denoting the fails vertex property in the database.
	FieldFails = "fails"

	// Table holds the table name of the credential in the database.
	Table = "credentials"
	// TargetTable is the table the holds the target relation/edge.
	TargetTable = "credentials"
	// TargetInverseTable is the table name for the Target entity.
	// It exists in this package in order to avoid circular dependency with the "target" package.
	TargetInverseTable = "targets"
	// TargetColumn is the table column denoting the target relation/edge.
	TargetColumn = "target_id"
)

Variables

View Source
var (

	// SecretValidator is a validator for the "secret" field. It is called by the builders before save.
	SecretValidator = descSecret.Validators[0].(func(string) error)

	// DefaultFails holds the default value on creation for the fails field.
	DefaultFails = descFails.Default.(int)
	// FailsValidator is a validator for the "fails" field. It is called by the builders before save.
	FailsValidator = descFails.Validators[0].(func(int) error)
)

Columns holds all SQL columns for credential fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Credential type.

Functions

func And

func And(predicates ...predicate.Credential) predicate.Credential

And groups list of predicates with the AND operator between them.

func Fails

func Fails(v int) predicate.Credential

Fails applies equality check predicate on the "fails" field. It's identical to FailsEQ.

func FailsEQ

func FailsEQ(v int) predicate.Credential

FailsEQ applies the EQ predicate on the "fails" field.

func FailsGT

func FailsGT(v int) predicate.Credential

FailsGT applies the GT predicate on the "fails" field.

func FailsGTE

func FailsGTE(v int) predicate.Credential

FailsGTE applies the GTE predicate on the "fails" field.

func FailsIn

func FailsIn(vs ...int) predicate.Credential

FailsIn applies the In predicate on the "fails" field.

func FailsLT

func FailsLT(v int) predicate.Credential

FailsLT applies the LT predicate on the "fails" field.

func FailsLTE

func FailsLTE(v int) predicate.Credential

FailsLTE applies the LTE predicate on the "fails" field.

func FailsNEQ

func FailsNEQ(v int) predicate.Credential

FailsNEQ applies the NEQ predicate on the "fails" field.

func FailsNotIn

func FailsNotIn(vs ...int) predicate.Credential

FailsNotIn applies the NotIn predicate on the "fails" field.

func HasTarget added in v0.3.0

func HasTarget() predicate.Credential

HasTarget applies the HasEdge predicate on the "target" edge.

func HasTargetWith added in v0.3.0

func HasTargetWith(preds ...predicate.Target) predicate.Credential

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

func ID

func ID(id int) predicate.Credential

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Credential

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Credential

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Credential

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Credential

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Credential

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Credential

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ added in v0.2.3

func KindEQ(v Kind) predicate.Credential

KindEQ applies the EQ predicate on the "kind" field.

func KindIn added in v0.2.3

func KindIn(vs ...Kind) predicate.Credential

KindIn applies the In predicate on the "kind" field.

func KindNEQ added in v0.2.3

func KindNEQ(v Kind) predicate.Credential

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn added in v0.2.3

func KindNotIn(vs ...Kind) predicate.Credential

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator added in v0.2.3

func KindValidator(k Kind) error

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Credential) predicate.Credential

Or groups list of predicates with the OR operator between them.

func Principal

func Principal(v string) predicate.Credential

Principal applies equality check predicate on the "principal" field. It's identical to PrincipalEQ.

func PrincipalContains

func PrincipalContains(v string) predicate.Credential

PrincipalContains applies the Contains predicate on the "principal" field.

func PrincipalContainsFold

func PrincipalContainsFold(v string) predicate.Credential

PrincipalContainsFold applies the ContainsFold predicate on the "principal" field.

func PrincipalEQ

func PrincipalEQ(v string) predicate.Credential

PrincipalEQ applies the EQ predicate on the "principal" field.

func PrincipalEqualFold

func PrincipalEqualFold(v string) predicate.Credential

PrincipalEqualFold applies the EqualFold predicate on the "principal" field.

func PrincipalGT

func PrincipalGT(v string) predicate.Credential

PrincipalGT applies the GT predicate on the "principal" field.

func PrincipalGTE

func PrincipalGTE(v string) predicate.Credential

PrincipalGTE applies the GTE predicate on the "principal" field.

func PrincipalHasPrefix

func PrincipalHasPrefix(v string) predicate.Credential

PrincipalHasPrefix applies the HasPrefix predicate on the "principal" field.

func PrincipalHasSuffix

func PrincipalHasSuffix(v string) predicate.Credential

PrincipalHasSuffix applies the HasSuffix predicate on the "principal" field.

func PrincipalIn

func PrincipalIn(vs ...string) predicate.Credential

PrincipalIn applies the In predicate on the "principal" field.

func PrincipalLT

func PrincipalLT(v string) predicate.Credential

PrincipalLT applies the LT predicate on the "principal" field.

func PrincipalLTE

func PrincipalLTE(v string) predicate.Credential

PrincipalLTE applies the LTE predicate on the "principal" field.

func PrincipalNEQ

func PrincipalNEQ(v string) predicate.Credential

PrincipalNEQ applies the NEQ predicate on the "principal" field.

func PrincipalNotIn

func PrincipalNotIn(vs ...string) predicate.Credential

PrincipalNotIn applies the NotIn predicate on the "principal" field.

func Secret

func Secret(v string) predicate.Credential

Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.

func SecretContains

func SecretContains(v string) predicate.Credential

SecretContains applies the Contains predicate on the "secret" field.

func SecretContainsFold

func SecretContainsFold(v string) predicate.Credential

SecretContainsFold applies the ContainsFold predicate on the "secret" field.

func SecretEQ

func SecretEQ(v string) predicate.Credential

SecretEQ applies the EQ predicate on the "secret" field.

func SecretEqualFold

func SecretEqualFold(v string) predicate.Credential

SecretEqualFold applies the EqualFold predicate on the "secret" field.

func SecretGT

func SecretGT(v string) predicate.Credential

SecretGT applies the GT predicate on the "secret" field.

func SecretGTE

func SecretGTE(v string) predicate.Credential

SecretGTE applies the GTE predicate on the "secret" field.

func SecretHasPrefix

func SecretHasPrefix(v string) predicate.Credential

SecretHasPrefix applies the HasPrefix predicate on the "secret" field.

func SecretHasSuffix

func SecretHasSuffix(v string) predicate.Credential

SecretHasSuffix applies the HasSuffix predicate on the "secret" field.

func SecretIn

func SecretIn(vs ...string) predicate.Credential

SecretIn applies the In predicate on the "secret" field.

func SecretLT

func SecretLT(v string) predicate.Credential

SecretLT applies the LT predicate on the "secret" field.

func SecretLTE

func SecretLTE(v string) predicate.Credential

SecretLTE applies the LTE predicate on the "secret" field.

func SecretNEQ

func SecretNEQ(v string) predicate.Credential

SecretNEQ applies the NEQ predicate on the "secret" field.

func SecretNotIn

func SecretNotIn(vs ...string) predicate.Credential

SecretNotIn applies the NotIn predicate on the "secret" field.

Types

type Kind added in v0.2.3

type Kind string

Kind defines the type for the kind enum field.

const (
	KindPassword    Kind = "password"
	KindKey         Kind = "key"
	KindCertificate Kind = "certificate"
)

Kind values.

func (Kind) String added in v0.2.3

func (s Kind) String() string

Jump to

Keyboard shortcuts

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