Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.HostCredential) predicate.HostCredential
- func CreatedAt(v time.Time) predicate.HostCredential
- func CreatedAtEQ(v time.Time) predicate.HostCredential
- func CreatedAtGT(v time.Time) predicate.HostCredential
- func CreatedAtGTE(v time.Time) predicate.HostCredential
- func CreatedAtIn(vs ...time.Time) predicate.HostCredential
- func CreatedAtLT(v time.Time) predicate.HostCredential
- func CreatedAtLTE(v time.Time) predicate.HostCredential
- func CreatedAtNEQ(v time.Time) predicate.HostCredential
- func CreatedAtNotIn(vs ...time.Time) predicate.HostCredential
- func HasHost() predicate.HostCredential
- func HasHostWith(preds ...predicate.Host) predicate.HostCredential
- func HasTask() predicate.HostCredential
- func HasTaskWith(preds ...predicate.Task) predicate.HostCredential
- func ID(id int) predicate.HostCredential
- func IDEQ(id int) predicate.HostCredential
- func IDGT(id int) predicate.HostCredential
- func IDGTE(id int) predicate.HostCredential
- func IDIn(ids ...int) predicate.HostCredential
- func IDLT(id int) predicate.HostCredential
- func IDLTE(id int) predicate.HostCredential
- func IDNEQ(id int) predicate.HostCredential
- func IDNotIn(ids ...int) predicate.HostCredential
- func KindEQ(v epb.Credential_Kind) predicate.HostCredential
- func KindIn(vs ...epb.Credential_Kind) predicate.HostCredential
- func KindNEQ(v epb.Credential_Kind) predicate.HostCredential
- func KindNotIn(vs ...epb.Credential_Kind) predicate.HostCredential
- func KindValidator(k epb.Credential_Kind) error
- func LastModifiedAt(v time.Time) predicate.HostCredential
- func LastModifiedAtEQ(v time.Time) predicate.HostCredential
- func LastModifiedAtGT(v time.Time) predicate.HostCredential
- func LastModifiedAtGTE(v time.Time) predicate.HostCredential
- func LastModifiedAtIn(vs ...time.Time) predicate.HostCredential
- func LastModifiedAtLT(v time.Time) predicate.HostCredential
- func LastModifiedAtLTE(v time.Time) predicate.HostCredential
- func LastModifiedAtNEQ(v time.Time) predicate.HostCredential
- func LastModifiedAtNotIn(vs ...time.Time) predicate.HostCredential
- func Not(p predicate.HostCredential) predicate.HostCredential
- func Or(predicates ...predicate.HostCredential) predicate.HostCredential
- func Principal(v string) predicate.HostCredential
- func PrincipalContains(v string) predicate.HostCredential
- func PrincipalContainsFold(v string) predicate.HostCredential
- func PrincipalEQ(v string) predicate.HostCredential
- func PrincipalEqualFold(v string) predicate.HostCredential
- func PrincipalGT(v string) predicate.HostCredential
- func PrincipalGTE(v string) predicate.HostCredential
- func PrincipalHasPrefix(v string) predicate.HostCredential
- func PrincipalHasSuffix(v string) predicate.HostCredential
- func PrincipalIn(vs ...string) predicate.HostCredential
- func PrincipalLT(v string) predicate.HostCredential
- func PrincipalLTE(v string) predicate.HostCredential
- func PrincipalNEQ(v string) predicate.HostCredential
- func PrincipalNotIn(vs ...string) predicate.HostCredential
- func Secret(v string) predicate.HostCredential
- func SecretContains(v string) predicate.HostCredential
- func SecretContainsFold(v string) predicate.HostCredential
- func SecretEQ(v string) predicate.HostCredential
- func SecretEqualFold(v string) predicate.HostCredential
- func SecretGT(v string) predicate.HostCredential
- func SecretGTE(v string) predicate.HostCredential
- func SecretHasPrefix(v string) predicate.HostCredential
- func SecretHasSuffix(v string) predicate.HostCredential
- func SecretIn(vs ...string) predicate.HostCredential
- func SecretLT(v string) predicate.HostCredential
- func SecretLTE(v string) predicate.HostCredential
- func SecretNEQ(v string) predicate.HostCredential
- func SecretNotIn(vs ...string) predicate.HostCredential
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHostField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipal(opts ...sql.OrderTermOption) OrderOption
- func BySecret(opts ...sql.OrderTermOption) OrderOption
- func ByTaskField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldLastModifiedAt, FieldPrincipal, FieldSecret, FieldKind, }
Columns holds all SQL columns for hostcredential fields.
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 ¶
func And(predicates ...predicate.HostCredential) predicate.HostCredential
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 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 ¶
func KindEQ(v epb.Credential_Kind) predicate.HostCredential
KindEQ applies the EQ predicate on the "kind" field.
func KindIn ¶
func KindIn(vs ...epb.Credential_Kind) predicate.HostCredential
KindIn applies the In predicate on the "kind" field.
func KindNEQ ¶
func KindNEQ(v epb.Credential_Kind) predicate.HostCredential
KindNEQ applies the NEQ predicate on the "kind" field.
func KindNotIn ¶
func KindNotIn(vs ...epb.Credential_Kind) predicate.HostCredential
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 ¶
func Not(p predicate.HostCredential) predicate.HostCredential
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.HostCredential) predicate.HostCredential
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 ¶
func Secret(v string) predicate.HostCredential
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.