hostcredential

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the hostcredential type in the database.
	Label = "host_credential"
	// 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"
	// FieldLastModifiedAt holds the string denoting the last_modified_at field in the database.
	FieldLastModifiedAt = "last_modified_at"
	// FieldPrincipal holds the string denoting the principal field in the database.
	FieldPrincipal = "principal"
	// FieldSecret holds the string denoting the secret field in the database.
	FieldSecret = "secret"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// EdgeHost holds the string denoting the host edge name in mutations.
	EdgeHost = "host"
	// EdgeTask holds the string denoting the task edge name in mutations.
	EdgeTask = "task"
	// Table holds the table name of the hostcredential in the database.
	Table = "host_credentials"
	// HostTable is the table that holds the host relation/edge.
	HostTable = "host_credentials"
	// HostInverseTable is the table name for the Host entity.
	// It exists in this package in order to avoid circular dependency with the "host" package.
	HostInverseTable = "hosts"
	// HostColumn is the table column denoting the host relation/edge.
	HostColumn = "host_credential_host"
	// TaskTable is the table that holds the task relation/edge.
	TaskTable = "host_credentials"
	// TaskInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TaskInverseTable = "tasks"
	// TaskColumn is the table column denoting the task relation/edge.
	TaskColumn = "task_reported_credentials"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultLastModifiedAt holds the default value on creation for the "last_modified_at" field.
	DefaultLastModifiedAt func() time.Time
	// UpdateDefaultLastModifiedAt holds the default value on update for the "last_modified_at" field.
	UpdateDefaultLastModifiedAt func() time.Time
	// PrincipalValidator is a validator for the "principal" field. It is called by the builders before save.
	PrincipalValidator func(string) error
	// SecretValidator is a validator for the "secret" field. It is called by the builders before save.
	SecretValidator func(string) error
)

Columns holds all SQL columns for hostcredential fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.HostCredential

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.HostCredential

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.HostCredential

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.HostCredential

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.HostCredential

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.HostCredential

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.HostCredential

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

func CreatedAtNotIn

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

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

func HasHost

func HasHost() predicate.HostCredential

HasHost applies the HasEdge predicate on the "host" edge.

func HasHostWith

func HasHostWith(preds ...predicate.Host) predicate.HostCredential

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

func HasTask

func HasTask() predicate.HostCredential

HasTask applies the HasEdge predicate on the "task" edge.

func HasTaskWith

func HasTaskWith(preds ...predicate.Task) predicate.HostCredential

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.HostCredential

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.HostCredential

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.HostCredential

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.HostCredential

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.HostCredential

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.HostCredential

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ

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

func KindIn

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

func KindNEQ

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

func KindNotIn

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

func KindValidator

func KindValidator(k epb.Credential_Kind) error

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

func LastModifiedAt

func LastModifiedAt(v time.Time) predicate.HostCredential

LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.

func LastModifiedAtEQ

func LastModifiedAtEQ(v time.Time) predicate.HostCredential

LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.

func LastModifiedAtGT

func LastModifiedAtGT(v time.Time) predicate.HostCredential

LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.

func LastModifiedAtGTE

func LastModifiedAtGTE(v time.Time) predicate.HostCredential

LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.

func LastModifiedAtIn

func LastModifiedAtIn(vs ...time.Time) predicate.HostCredential

LastModifiedAtIn applies the In predicate on the "last_modified_at" field.

func LastModifiedAtLT

func LastModifiedAtLT(v time.Time) predicate.HostCredential

LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.

func LastModifiedAtLTE

func LastModifiedAtLTE(v time.Time) predicate.HostCredential

LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.

func LastModifiedAtNEQ

func LastModifiedAtNEQ(v time.Time) predicate.HostCredential

LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.

func LastModifiedAtNotIn

func LastModifiedAtNotIn(vs ...time.Time) predicate.HostCredential

LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Principal

func Principal(v string) predicate.HostCredential

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

func PrincipalContains

func PrincipalContains(v string) predicate.HostCredential

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

func PrincipalContainsFold

func PrincipalContainsFold(v string) predicate.HostCredential

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

func PrincipalEQ

func PrincipalEQ(v string) predicate.HostCredential

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

func PrincipalEqualFold

func PrincipalEqualFold(v string) predicate.HostCredential

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

func PrincipalGT

func PrincipalGT(v string) predicate.HostCredential

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

func PrincipalGTE

func PrincipalGTE(v string) predicate.HostCredential

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

func PrincipalHasPrefix

func PrincipalHasPrefix(v string) predicate.HostCredential

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

func PrincipalHasSuffix

func PrincipalHasSuffix(v string) predicate.HostCredential

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

func PrincipalIn

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

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

func PrincipalLT

func PrincipalLT(v string) predicate.HostCredential

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

func PrincipalLTE

func PrincipalLTE(v string) predicate.HostCredential

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

func PrincipalNEQ

func PrincipalNEQ(v string) predicate.HostCredential

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

func PrincipalNotIn

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

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

func Secret

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

func SecretContains

func SecretContains(v string) predicate.HostCredential

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

func SecretContainsFold

func SecretContainsFold(v string) predicate.HostCredential

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

func SecretEQ

func SecretEQ(v string) predicate.HostCredential

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

func SecretEqualFold

func SecretEqualFold(v string) predicate.HostCredential

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

func SecretGT

func SecretGT(v string) predicate.HostCredential

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

func SecretGTE

func SecretGTE(v string) predicate.HostCredential

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

func SecretHasPrefix

func SecretHasPrefix(v string) predicate.HostCredential

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

func SecretHasSuffix

func SecretHasSuffix(v string) predicate.HostCredential

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

func SecretIn

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

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

func SecretLT

func SecretLT(v string) predicate.HostCredential

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

func SecretLTE

func SecretLTE(v string) predicate.HostCredential

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

func SecretNEQ

func SecretNEQ(v string) predicate.HostCredential

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

func SecretNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the HostCredential queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByHostField

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

ByHostField orders the results by host field.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func ByLastModifiedAt

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

ByLastModifiedAt orders the results by the last_modified_at field.

func ByPrincipal

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

ByPrincipal orders the results by the principal field.

func BySecret

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

BySecret orders the results by the secret field.

func ByTaskField

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

ByTaskField orders the results by task field.

Jump to

Keyboard shortcuts

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