secret

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the secret type in the database.
	Label = "secret"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// FieldScopeKind holds the string denoting the scope_kind field in the database.
	FieldScopeKind = "scope_kind"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldAlgorithm holds the string denoting the algorithm field in the database.
	FieldAlgorithm = "algorithm"
	// FieldKeySource holds the string denoting the key_source field in the database.
	FieldKeySource = "key_source"
	// FieldKeyID holds the string denoting the key_id field in the database.
	FieldKeyID = "key_id"
	// FieldValuePreview holds the string denoting the value_preview field in the database.
	FieldValuePreview = "value_preview"
	// FieldNonce holds the string denoting the nonce field in the database.
	FieldNonce = "nonce"
	// FieldCiphertext holds the string denoting the ciphertext field in the database.
	FieldCiphertext = "ciphertext"
	// FieldRotatedAt holds the string denoting the rotated_at field in the database.
	FieldRotatedAt = "rotated_at"
	// FieldDisabledAt holds the string denoting the disabled_at field in the database.
	FieldDisabledAt = "disabled_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeBindings holds the string denoting the bindings edge name in mutations.
	EdgeBindings = "bindings"
	// Table holds the table name of the secret in the database.
	Table = "secrets"
	// BindingsTable is the table that holds the bindings relation/edge.
	BindingsTable = "secret_bindings"
	// BindingsInverseTable is the table name for the SecretBinding entity.
	// It exists in this package in order to avoid circular dependency with the "secretbinding" package.
	BindingsInverseTable = "secret_bindings"
	// BindingsColumn is the table column denoting the bindings relation/edge.
	BindingsColumn = "secret_id"
)
View Source
const DefaultKind = KindOpaque

KindOpaque is the default value of the Kind enum.

Variables

View Source
var (
	// DefaultProjectID holds the default value on creation for the "project_id" field.
	DefaultProjectID func() uuid.UUID
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
	// AlgorithmValidator is a validator for the "algorithm" field. It is called by the builders before save.
	AlgorithmValidator func(string) error
	// KeySourceValidator is a validator for the "key_source" field. It is called by the builders before save.
	KeySourceValidator func(string) error
	// KeyIDValidator is a validator for the "key_id" field. It is called by the builders before save.
	KeyIDValidator func(string) error
	// ValuePreviewValidator is a validator for the "value_preview" field. It is called by the builders before save.
	ValuePreviewValidator func(string) error
	// NonceValidator is a validator for the "nonce" field. It is called by the builders before save.
	NonceValidator func(string) error
	// CiphertextValidator is a validator for the "ciphertext" field. It is called by the builders before save.
	CiphertextValidator func(string) error
	// DefaultRotatedAt holds the default value on creation for the "rotated_at" field.
	DefaultRotatedAt func() time.Time
	// UpdateDefaultRotatedAt holds the default value on update for the "rotated_at" field.
	UpdateDefaultRotatedAt func() time.Time
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for secret fields.

Functions

func Algorithm

func Algorithm(v string) predicate.Secret

Algorithm applies equality check predicate on the "algorithm" field. It's identical to AlgorithmEQ.

func AlgorithmContains

func AlgorithmContains(v string) predicate.Secret

AlgorithmContains applies the Contains predicate on the "algorithm" field.

func AlgorithmContainsFold

func AlgorithmContainsFold(v string) predicate.Secret

AlgorithmContainsFold applies the ContainsFold predicate on the "algorithm" field.

func AlgorithmEQ

func AlgorithmEQ(v string) predicate.Secret

AlgorithmEQ applies the EQ predicate on the "algorithm" field.

func AlgorithmEqualFold

func AlgorithmEqualFold(v string) predicate.Secret

AlgorithmEqualFold applies the EqualFold predicate on the "algorithm" field.

func AlgorithmGT

func AlgorithmGT(v string) predicate.Secret

AlgorithmGT applies the GT predicate on the "algorithm" field.

func AlgorithmGTE

func AlgorithmGTE(v string) predicate.Secret

AlgorithmGTE applies the GTE predicate on the "algorithm" field.

func AlgorithmHasPrefix

func AlgorithmHasPrefix(v string) predicate.Secret

AlgorithmHasPrefix applies the HasPrefix predicate on the "algorithm" field.

func AlgorithmHasSuffix

func AlgorithmHasSuffix(v string) predicate.Secret

AlgorithmHasSuffix applies the HasSuffix predicate on the "algorithm" field.

func AlgorithmIn

func AlgorithmIn(vs ...string) predicate.Secret

AlgorithmIn applies the In predicate on the "algorithm" field.

func AlgorithmLT

func AlgorithmLT(v string) predicate.Secret

AlgorithmLT applies the LT predicate on the "algorithm" field.

func AlgorithmLTE

func AlgorithmLTE(v string) predicate.Secret

AlgorithmLTE applies the LTE predicate on the "algorithm" field.

func AlgorithmNEQ

func AlgorithmNEQ(v string) predicate.Secret

AlgorithmNEQ applies the NEQ predicate on the "algorithm" field.

func AlgorithmNotIn

func AlgorithmNotIn(vs ...string) predicate.Secret

AlgorithmNotIn applies the NotIn predicate on the "algorithm" field.

func And

func And(predicates ...predicate.Secret) predicate.Secret

And groups predicates with the AND operator between them.

func Ciphertext

func Ciphertext(v string) predicate.Secret

Ciphertext applies equality check predicate on the "ciphertext" field. It's identical to CiphertextEQ.

func CiphertextContains

func CiphertextContains(v string) predicate.Secret

CiphertextContains applies the Contains predicate on the "ciphertext" field.

func CiphertextContainsFold

func CiphertextContainsFold(v string) predicate.Secret

CiphertextContainsFold applies the ContainsFold predicate on the "ciphertext" field.

func CiphertextEQ

func CiphertextEQ(v string) predicate.Secret

CiphertextEQ applies the EQ predicate on the "ciphertext" field.

func CiphertextEqualFold

func CiphertextEqualFold(v string) predicate.Secret

CiphertextEqualFold applies the EqualFold predicate on the "ciphertext" field.

func CiphertextGT

func CiphertextGT(v string) predicate.Secret

CiphertextGT applies the GT predicate on the "ciphertext" field.

func CiphertextGTE

func CiphertextGTE(v string) predicate.Secret

CiphertextGTE applies the GTE predicate on the "ciphertext" field.

func CiphertextHasPrefix

func CiphertextHasPrefix(v string) predicate.Secret

CiphertextHasPrefix applies the HasPrefix predicate on the "ciphertext" field.

func CiphertextHasSuffix

func CiphertextHasSuffix(v string) predicate.Secret

CiphertextHasSuffix applies the HasSuffix predicate on the "ciphertext" field.

func CiphertextIn

func CiphertextIn(vs ...string) predicate.Secret

CiphertextIn applies the In predicate on the "ciphertext" field.

func CiphertextLT

func CiphertextLT(v string) predicate.Secret

CiphertextLT applies the LT predicate on the "ciphertext" field.

func CiphertextLTE

func CiphertextLTE(v string) predicate.Secret

CiphertextLTE applies the LTE predicate on the "ciphertext" field.

func CiphertextNEQ

func CiphertextNEQ(v string) predicate.Secret

CiphertextNEQ applies the NEQ predicate on the "ciphertext" field.

func CiphertextNotIn

func CiphertextNotIn(vs ...string) predicate.Secret

CiphertextNotIn applies the NotIn predicate on the "ciphertext" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Secret

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Secret

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Secret

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Secret

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Secret

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Secret

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Secret

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Secret

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

func DescriptionContains

func DescriptionContains(v string) predicate.Secret

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Secret

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Secret

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Secret

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

func DescriptionGT

func DescriptionGT(v string) predicate.Secret

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Secret

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Secret

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Secret

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.Secret

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Secret

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Secret

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

func DescriptionNotIn

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

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

func DisabledAt

func DisabledAt(v time.Time) predicate.Secret

DisabledAt applies equality check predicate on the "disabled_at" field. It's identical to DisabledAtEQ.

func DisabledAtEQ

func DisabledAtEQ(v time.Time) predicate.Secret

DisabledAtEQ applies the EQ predicate on the "disabled_at" field.

func DisabledAtGT

func DisabledAtGT(v time.Time) predicate.Secret

DisabledAtGT applies the GT predicate on the "disabled_at" field.

func DisabledAtGTE

func DisabledAtGTE(v time.Time) predicate.Secret

DisabledAtGTE applies the GTE predicate on the "disabled_at" field.

func DisabledAtIn

func DisabledAtIn(vs ...time.Time) predicate.Secret

DisabledAtIn applies the In predicate on the "disabled_at" field.

func DisabledAtIsNil

func DisabledAtIsNil() predicate.Secret

DisabledAtIsNil applies the IsNil predicate on the "disabled_at" field.

func DisabledAtLT

func DisabledAtLT(v time.Time) predicate.Secret

DisabledAtLT applies the LT predicate on the "disabled_at" field.

func DisabledAtLTE

func DisabledAtLTE(v time.Time) predicate.Secret

DisabledAtLTE applies the LTE predicate on the "disabled_at" field.

func DisabledAtNEQ

func DisabledAtNEQ(v time.Time) predicate.Secret

DisabledAtNEQ applies the NEQ predicate on the "disabled_at" field.

func DisabledAtNotIn

func DisabledAtNotIn(vs ...time.Time) predicate.Secret

DisabledAtNotIn applies the NotIn predicate on the "disabled_at" field.

func DisabledAtNotNil

func DisabledAtNotNil() predicate.Secret

DisabledAtNotNil applies the NotNil predicate on the "disabled_at" field.

func HasBindings

func HasBindings() predicate.Secret

HasBindings applies the HasEdge predicate on the "bindings" edge.

func HasBindingsWith

func HasBindingsWith(preds ...predicate.SecretBinding) predicate.Secret

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

func ID

func ID(id uuid.UUID) predicate.Secret

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Secret

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Secret

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Secret

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Secret

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Secret

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Secret

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KeyID

func KeyID(v string) predicate.Secret

KeyID applies equality check predicate on the "key_id" field. It's identical to KeyIDEQ.

func KeyIDContains

func KeyIDContains(v string) predicate.Secret

KeyIDContains applies the Contains predicate on the "key_id" field.

func KeyIDContainsFold

func KeyIDContainsFold(v string) predicate.Secret

KeyIDContainsFold applies the ContainsFold predicate on the "key_id" field.

func KeyIDEQ

func KeyIDEQ(v string) predicate.Secret

KeyIDEQ applies the EQ predicate on the "key_id" field.

func KeyIDEqualFold

func KeyIDEqualFold(v string) predicate.Secret

KeyIDEqualFold applies the EqualFold predicate on the "key_id" field.

func KeyIDGT

func KeyIDGT(v string) predicate.Secret

KeyIDGT applies the GT predicate on the "key_id" field.

func KeyIDGTE

func KeyIDGTE(v string) predicate.Secret

KeyIDGTE applies the GTE predicate on the "key_id" field.

func KeyIDHasPrefix

func KeyIDHasPrefix(v string) predicate.Secret

KeyIDHasPrefix applies the HasPrefix predicate on the "key_id" field.

func KeyIDHasSuffix

func KeyIDHasSuffix(v string) predicate.Secret

KeyIDHasSuffix applies the HasSuffix predicate on the "key_id" field.

func KeyIDIn

func KeyIDIn(vs ...string) predicate.Secret

KeyIDIn applies the In predicate on the "key_id" field.

func KeyIDLT

func KeyIDLT(v string) predicate.Secret

KeyIDLT applies the LT predicate on the "key_id" field.

func KeyIDLTE

func KeyIDLTE(v string) predicate.Secret

KeyIDLTE applies the LTE predicate on the "key_id" field.

func KeyIDNEQ

func KeyIDNEQ(v string) predicate.Secret

KeyIDNEQ applies the NEQ predicate on the "key_id" field.

func KeyIDNotIn

func KeyIDNotIn(vs ...string) predicate.Secret

KeyIDNotIn applies the NotIn predicate on the "key_id" field.

func KeySource

func KeySource(v string) predicate.Secret

KeySource applies equality check predicate on the "key_source" field. It's identical to KeySourceEQ.

func KeySourceContains

func KeySourceContains(v string) predicate.Secret

KeySourceContains applies the Contains predicate on the "key_source" field.

func KeySourceContainsFold

func KeySourceContainsFold(v string) predicate.Secret

KeySourceContainsFold applies the ContainsFold predicate on the "key_source" field.

func KeySourceEQ

func KeySourceEQ(v string) predicate.Secret

KeySourceEQ applies the EQ predicate on the "key_source" field.

func KeySourceEqualFold

func KeySourceEqualFold(v string) predicate.Secret

KeySourceEqualFold applies the EqualFold predicate on the "key_source" field.

func KeySourceGT

func KeySourceGT(v string) predicate.Secret

KeySourceGT applies the GT predicate on the "key_source" field.

func KeySourceGTE

func KeySourceGTE(v string) predicate.Secret

KeySourceGTE applies the GTE predicate on the "key_source" field.

func KeySourceHasPrefix

func KeySourceHasPrefix(v string) predicate.Secret

KeySourceHasPrefix applies the HasPrefix predicate on the "key_source" field.

func KeySourceHasSuffix

func KeySourceHasSuffix(v string) predicate.Secret

KeySourceHasSuffix applies the HasSuffix predicate on the "key_source" field.

func KeySourceIn

func KeySourceIn(vs ...string) predicate.Secret

KeySourceIn applies the In predicate on the "key_source" field.

func KeySourceLT

func KeySourceLT(v string) predicate.Secret

KeySourceLT applies the LT predicate on the "key_source" field.

func KeySourceLTE

func KeySourceLTE(v string) predicate.Secret

KeySourceLTE applies the LTE predicate on the "key_source" field.

func KeySourceNEQ

func KeySourceNEQ(v string) predicate.Secret

KeySourceNEQ applies the NEQ predicate on the "key_source" field.

func KeySourceNotIn

func KeySourceNotIn(vs ...string) predicate.Secret

KeySourceNotIn applies the NotIn predicate on the "key_source" field.

func KindEQ

func KindEQ(v Kind) predicate.Secret

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

func KindIn

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

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

func KindNEQ

func KindNEQ(v Kind) predicate.Secret

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

func KindNotIn

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

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

func KindValidator

func KindValidator(k Kind) error

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

func Name

func Name(v string) predicate.Secret

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Secret

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Secret

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Secret

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Secret

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Secret

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Secret

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Secret

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Secret

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Secret

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Secret

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Secret

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Secret

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Secret

NameNotIn applies the NotIn predicate on the "name" field.

func Nonce

func Nonce(v string) predicate.Secret

Nonce applies equality check predicate on the "nonce" field. It's identical to NonceEQ.

func NonceContains

func NonceContains(v string) predicate.Secret

NonceContains applies the Contains predicate on the "nonce" field.

func NonceContainsFold

func NonceContainsFold(v string) predicate.Secret

NonceContainsFold applies the ContainsFold predicate on the "nonce" field.

func NonceEQ

func NonceEQ(v string) predicate.Secret

NonceEQ applies the EQ predicate on the "nonce" field.

func NonceEqualFold

func NonceEqualFold(v string) predicate.Secret

NonceEqualFold applies the EqualFold predicate on the "nonce" field.

func NonceGT

func NonceGT(v string) predicate.Secret

NonceGT applies the GT predicate on the "nonce" field.

func NonceGTE

func NonceGTE(v string) predicate.Secret

NonceGTE applies the GTE predicate on the "nonce" field.

func NonceHasPrefix

func NonceHasPrefix(v string) predicate.Secret

NonceHasPrefix applies the HasPrefix predicate on the "nonce" field.

func NonceHasSuffix

func NonceHasSuffix(v string) predicate.Secret

NonceHasSuffix applies the HasSuffix predicate on the "nonce" field.

func NonceIn

func NonceIn(vs ...string) predicate.Secret

NonceIn applies the In predicate on the "nonce" field.

func NonceLT

func NonceLT(v string) predicate.Secret

NonceLT applies the LT predicate on the "nonce" field.

func NonceLTE

func NonceLTE(v string) predicate.Secret

NonceLTE applies the LTE predicate on the "nonce" field.

func NonceNEQ

func NonceNEQ(v string) predicate.Secret

NonceNEQ applies the NEQ predicate on the "nonce" field.

func NonceNotIn

func NonceNotIn(vs ...string) predicate.Secret

NonceNotIn applies the NotIn predicate on the "nonce" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Secret) predicate.Secret

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.Secret

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.Secret

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDGT

func OrganizationIDGT(v uuid.UUID) predicate.Secret

OrganizationIDGT applies the GT predicate on the "organization_id" field.

func OrganizationIDGTE

func OrganizationIDGTE(v uuid.UUID) predicate.Secret

OrganizationIDGTE applies the GTE predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.Secret

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDLT

func OrganizationIDLT(v uuid.UUID) predicate.Secret

OrganizationIDLT applies the LT predicate on the "organization_id" field.

func OrganizationIDLTE

func OrganizationIDLTE(v uuid.UUID) predicate.Secret

OrganizationIDLTE applies the LTE predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.Secret

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.Secret

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func ProjectID

func ProjectID(v uuid.UUID) predicate.Secret

ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.

func ProjectIDEQ

func ProjectIDEQ(v uuid.UUID) predicate.Secret

ProjectIDEQ applies the EQ predicate on the "project_id" field.

func ProjectIDGT

func ProjectIDGT(v uuid.UUID) predicate.Secret

ProjectIDGT applies the GT predicate on the "project_id" field.

func ProjectIDGTE

func ProjectIDGTE(v uuid.UUID) predicate.Secret

ProjectIDGTE applies the GTE predicate on the "project_id" field.

func ProjectIDIn

func ProjectIDIn(vs ...uuid.UUID) predicate.Secret

ProjectIDIn applies the In predicate on the "project_id" field.

func ProjectIDLT

func ProjectIDLT(v uuid.UUID) predicate.Secret

ProjectIDLT applies the LT predicate on the "project_id" field.

func ProjectIDLTE

func ProjectIDLTE(v uuid.UUID) predicate.Secret

ProjectIDLTE applies the LTE predicate on the "project_id" field.

func ProjectIDNEQ

func ProjectIDNEQ(v uuid.UUID) predicate.Secret

ProjectIDNEQ applies the NEQ predicate on the "project_id" field.

func ProjectIDNotIn

func ProjectIDNotIn(vs ...uuid.UUID) predicate.Secret

ProjectIDNotIn applies the NotIn predicate on the "project_id" field.

func RotatedAt

func RotatedAt(v time.Time) predicate.Secret

RotatedAt applies equality check predicate on the "rotated_at" field. It's identical to RotatedAtEQ.

func RotatedAtEQ

func RotatedAtEQ(v time.Time) predicate.Secret

RotatedAtEQ applies the EQ predicate on the "rotated_at" field.

func RotatedAtGT

func RotatedAtGT(v time.Time) predicate.Secret

RotatedAtGT applies the GT predicate on the "rotated_at" field.

func RotatedAtGTE

func RotatedAtGTE(v time.Time) predicate.Secret

RotatedAtGTE applies the GTE predicate on the "rotated_at" field.

func RotatedAtIn

func RotatedAtIn(vs ...time.Time) predicate.Secret

RotatedAtIn applies the In predicate on the "rotated_at" field.

func RotatedAtLT

func RotatedAtLT(v time.Time) predicate.Secret

RotatedAtLT applies the LT predicate on the "rotated_at" field.

func RotatedAtLTE

func RotatedAtLTE(v time.Time) predicate.Secret

RotatedAtLTE applies the LTE predicate on the "rotated_at" field.

func RotatedAtNEQ

func RotatedAtNEQ(v time.Time) predicate.Secret

RotatedAtNEQ applies the NEQ predicate on the "rotated_at" field.

func RotatedAtNotIn

func RotatedAtNotIn(vs ...time.Time) predicate.Secret

RotatedAtNotIn applies the NotIn predicate on the "rotated_at" field.

func ScopeKindEQ

func ScopeKindEQ(v ScopeKind) predicate.Secret

ScopeKindEQ applies the EQ predicate on the "scope_kind" field.

func ScopeKindIn

func ScopeKindIn(vs ...ScopeKind) predicate.Secret

ScopeKindIn applies the In predicate on the "scope_kind" field.

func ScopeKindNEQ

func ScopeKindNEQ(v ScopeKind) predicate.Secret

ScopeKindNEQ applies the NEQ predicate on the "scope_kind" field.

func ScopeKindNotIn

func ScopeKindNotIn(vs ...ScopeKind) predicate.Secret

ScopeKindNotIn applies the NotIn predicate on the "scope_kind" field.

func ScopeKindValidator

func ScopeKindValidator(sk ScopeKind) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Secret

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Secret

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Secret

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Secret

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Secret

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Secret

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Secret

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Secret

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Secret

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

func ValuePreview

func ValuePreview(v string) predicate.Secret

ValuePreview applies equality check predicate on the "value_preview" field. It's identical to ValuePreviewEQ.

func ValuePreviewContains

func ValuePreviewContains(v string) predicate.Secret

ValuePreviewContains applies the Contains predicate on the "value_preview" field.

func ValuePreviewContainsFold

func ValuePreviewContainsFold(v string) predicate.Secret

ValuePreviewContainsFold applies the ContainsFold predicate on the "value_preview" field.

func ValuePreviewEQ

func ValuePreviewEQ(v string) predicate.Secret

ValuePreviewEQ applies the EQ predicate on the "value_preview" field.

func ValuePreviewEqualFold

func ValuePreviewEqualFold(v string) predicate.Secret

ValuePreviewEqualFold applies the EqualFold predicate on the "value_preview" field.

func ValuePreviewGT

func ValuePreviewGT(v string) predicate.Secret

ValuePreviewGT applies the GT predicate on the "value_preview" field.

func ValuePreviewGTE

func ValuePreviewGTE(v string) predicate.Secret

ValuePreviewGTE applies the GTE predicate on the "value_preview" field.

func ValuePreviewHasPrefix

func ValuePreviewHasPrefix(v string) predicate.Secret

ValuePreviewHasPrefix applies the HasPrefix predicate on the "value_preview" field.

func ValuePreviewHasSuffix

func ValuePreviewHasSuffix(v string) predicate.Secret

ValuePreviewHasSuffix applies the HasSuffix predicate on the "value_preview" field.

func ValuePreviewIn

func ValuePreviewIn(vs ...string) predicate.Secret

ValuePreviewIn applies the In predicate on the "value_preview" field.

func ValuePreviewLT

func ValuePreviewLT(v string) predicate.Secret

ValuePreviewLT applies the LT predicate on the "value_preview" field.

func ValuePreviewLTE

func ValuePreviewLTE(v string) predicate.Secret

ValuePreviewLTE applies the LTE predicate on the "value_preview" field.

func ValuePreviewNEQ

func ValuePreviewNEQ(v string) predicate.Secret

ValuePreviewNEQ applies the NEQ predicate on the "value_preview" field.

func ValuePreviewNotIn

func ValuePreviewNotIn(vs ...string) predicate.Secret

ValuePreviewNotIn applies the NotIn predicate on the "value_preview" field.

Types

type Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindOpaque Kind = "opaque"
)

Kind values.

func (Kind) String

func (k Kind) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Secret queries.

func ByAlgorithm

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

ByAlgorithm orders the results by the algorithm field.

func ByBindings

func ByBindings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBindings orders the results by bindings terms.

func ByBindingsCount

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

ByBindingsCount orders the results by bindings count.

func ByCiphertext

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

ByCiphertext orders the results by the ciphertext field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByDisabledAt

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

ByDisabledAt orders the results by the disabled_at field.

func ByID

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

ByID orders the results by the id field.

func ByKeyID

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

ByKeyID orders the results by the key_id field.

func ByKeySource

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

ByKeySource orders the results by the key_source field.

func ByKind

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

ByKind orders the results by the kind field.

func ByName

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

ByName orders the results by the name field.

func ByNonce

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

ByNonce orders the results by the nonce field.

func ByOrganizationID

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

ByOrganizationID orders the results by the organization_id field.

func ByProjectID

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

ByProjectID orders the results by the project_id field.

func ByRotatedAt

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

ByRotatedAt orders the results by the rotated_at field.

func ByScopeKind

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

ByScopeKind orders the results by the scope_kind field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByValuePreview

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

ByValuePreview orders the results by the value_preview field.

type ScopeKind

type ScopeKind string

ScopeKind defines the type for the "scope_kind" enum field.

const (
	ScopeKindOrganization ScopeKind = "organization"
	ScopeKindProject      ScopeKind = "project"
)

ScopeKind values.

func (ScopeKind) String

func (sk ScopeKind) String() string

Jump to

Keyboard shortcuts

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