Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Blueprint) predicate.Blueprint
- func BlueprintTemplate(v []byte) predicate.Blueprint
- func BlueprintTemplateEQ(v []byte) predicate.Blueprint
- func BlueprintTemplateGT(v []byte) predicate.Blueprint
- func BlueprintTemplateGTE(v []byte) predicate.Blueprint
- func BlueprintTemplateIn(vs ...[]byte) predicate.Blueprint
- func BlueprintTemplateLT(v []byte) predicate.Blueprint
- func BlueprintTemplateLTE(v []byte) predicate.Blueprint
- func BlueprintTemplateNEQ(v []byte) predicate.Blueprint
- func BlueprintTemplateNotIn(vs ...[]byte) predicate.Blueprint
- func CreatedAt(v time.Time) predicate.Blueprint
- func CreatedAtEQ(v time.Time) predicate.Blueprint
- func CreatedAtGT(v time.Time) predicate.Blueprint
- func CreatedAtGTE(v time.Time) predicate.Blueprint
- func CreatedAtIn(vs ...time.Time) predicate.Blueprint
- func CreatedAtLT(v time.Time) predicate.Blueprint
- func CreatedAtLTE(v time.Time) predicate.Blueprint
- func CreatedAtNEQ(v time.Time) predicate.Blueprint
- func CreatedAtNotIn(vs ...time.Time) predicate.Blueprint
- func Description(v string) predicate.Blueprint
- func DescriptionContains(v string) predicate.Blueprint
- func DescriptionContainsFold(v string) predicate.Blueprint
- func DescriptionEQ(v string) predicate.Blueprint
- func DescriptionEqualFold(v string) predicate.Blueprint
- func DescriptionGT(v string) predicate.Blueprint
- func DescriptionGTE(v string) predicate.Blueprint
- func DescriptionHasPrefix(v string) predicate.Blueprint
- func DescriptionHasSuffix(v string) predicate.Blueprint
- func DescriptionIn(vs ...string) predicate.Blueprint
- func DescriptionLT(v string) predicate.Blueprint
- func DescriptionLTE(v string) predicate.Blueprint
- func DescriptionNEQ(v string) predicate.Blueprint
- func DescriptionNotIn(vs ...string) predicate.Blueprint
- func HasDeployments() predicate.Blueprint
- func HasDeploymentsWith(preds ...predicate.Deployment) predicate.Blueprint
- func HasParentGroup() predicate.Blueprint
- func HasParentGroupWith(preds ...predicate.Group) predicate.Blueprint
- func HasProvider() predicate.Blueprint
- func HasProviderWith(preds ...predicate.Provider) predicate.Blueprint
- func ID(id uuid.UUID) predicate.Blueprint
- func IDEQ(id uuid.UUID) predicate.Blueprint
- func IDGT(id uuid.UUID) predicate.Blueprint
- func IDGTE(id uuid.UUID) predicate.Blueprint
- func IDIn(ids ...uuid.UUID) predicate.Blueprint
- func IDLT(id uuid.UUID) predicate.Blueprint
- func IDLTE(id uuid.UUID) predicate.Blueprint
- func IDNEQ(id uuid.UUID) predicate.Blueprint
- func IDNotIn(ids ...uuid.UUID) predicate.Blueprint
- func Name(v string) predicate.Blueprint
- func NameContains(v string) predicate.Blueprint
- func NameContainsFold(v string) predicate.Blueprint
- func NameEQ(v string) predicate.Blueprint
- func NameEqualFold(v string) predicate.Blueprint
- func NameGT(v string) predicate.Blueprint
- func NameGTE(v string) predicate.Blueprint
- func NameHasPrefix(v string) predicate.Blueprint
- func NameHasSuffix(v string) predicate.Blueprint
- func NameIn(vs ...string) predicate.Blueprint
- func NameLT(v string) predicate.Blueprint
- func NameLTE(v string) predicate.Blueprint
- func NameNEQ(v string) predicate.Blueprint
- func NameNotIn(vs ...string) predicate.Blueprint
- func Not(p predicate.Blueprint) predicate.Blueprint
- func Or(predicates ...predicate.Blueprint) predicate.Blueprint
- func UpdatedAt(v time.Time) predicate.Blueprint
- func UpdatedAtEQ(v time.Time) predicate.Blueprint
- func UpdatedAtGT(v time.Time) predicate.Blueprint
- func UpdatedAtGTE(v time.Time) predicate.Blueprint
- func UpdatedAtIn(vs ...time.Time) predicate.Blueprint
- func UpdatedAtLT(v time.Time) predicate.Blueprint
- func UpdatedAtLTE(v time.Time) predicate.Blueprint
- func UpdatedAtNEQ(v time.Time) predicate.Blueprint
- func UpdatedAtNotIn(vs ...time.Time) predicate.Blueprint
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeployments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDeploymentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByParentGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProviderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the blueprint type in the database. Label = "blueprint" // 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" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldBlueprintTemplate holds the string denoting the blueprint_template field in the database. FieldBlueprintTemplate = "blueprint_template" // EdgeParentGroup holds the string denoting the parent_group edge name in mutations. EdgeParentGroup = "parent_group" // EdgeProvider holds the string denoting the provider edge name in mutations. EdgeProvider = "provider" // EdgeDeployments holds the string denoting the deployments edge name in mutations. EdgeDeployments = "deployments" // Table holds the table name of the blueprint in the database. Table = "blueprints" // ParentGroupTable is the table that holds the parent_group relation/edge. ParentGroupTable = "blueprints" // ParentGroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. ParentGroupInverseTable = "groups" // ParentGroupColumn is the table column denoting the parent_group relation/edge. ParentGroupColumn = "blueprint_parent_group" // ProviderTable is the table that holds the provider relation/edge. ProviderTable = "blueprints" // ProviderInverseTable is the table name for the Provider entity. // It exists in this package in order to avoid circular dependency with the "provider" package. ProviderInverseTable = "providers" // ProviderColumn is the table column denoting the provider relation/edge. ProviderColumn = "blueprint_provider" // DeploymentsTable is the table that holds the deployments relation/edge. DeploymentsTable = "deployments" // DeploymentsInverseTable is the table name for the Deployment entity. // It exists in this package in order to avoid circular dependency with the "deployment" package. DeploymentsInverseTable = "deployments" // DeploymentsColumn is the table column denoting the deployments relation/edge. DeploymentsColumn = "deployment_blueprint" )
Variables ¶
var ( // 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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDescription, FieldBlueprintTemplate, }
Columns holds all SQL columns for blueprint fields.
var ForeignKeys = []string{
"blueprint_parent_group",
"blueprint_provider",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "blueprints" table and are not defined as standalone fields in the schema.
Functions ¶
func BlueprintTemplate ¶
BlueprintTemplate applies equality check predicate on the "blueprint_template" field. It's identical to BlueprintTemplateEQ.
func BlueprintTemplateEQ ¶
BlueprintTemplateEQ applies the EQ predicate on the "blueprint_template" field.
func BlueprintTemplateGT ¶
BlueprintTemplateGT applies the GT predicate on the "blueprint_template" field.
func BlueprintTemplateGTE ¶
BlueprintTemplateGTE applies the GTE predicate on the "blueprint_template" field.
func BlueprintTemplateIn ¶
BlueprintTemplateIn applies the In predicate on the "blueprint_template" field.
func BlueprintTemplateLT ¶
BlueprintTemplateLT applies the LT predicate on the "blueprint_template" field.
func BlueprintTemplateLTE ¶
BlueprintTemplateLTE applies the LTE predicate on the "blueprint_template" field.
func BlueprintTemplateNEQ ¶
BlueprintTemplateNEQ applies the NEQ predicate on the "blueprint_template" field.
func BlueprintTemplateNotIn ¶
BlueprintTemplateNotIn applies the NotIn predicate on the "blueprint_template" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasDeployments ¶
HasDeployments applies the HasEdge predicate on the "deployments" edge.
func HasDeploymentsWith ¶
func HasDeploymentsWith(preds ...predicate.Deployment) predicate.Blueprint
HasDeploymentsWith applies the HasEdge predicate on the "deployments" edge with a given conditions (other predicates).
func HasParentGroup ¶
HasParentGroup applies the HasEdge predicate on the "parent_group" edge.
func HasParentGroupWith ¶
HasParentGroupWith applies the HasEdge predicate on the "parent_group" edge with a given conditions (other predicates).
func HasProvider ¶
HasProvider applies the HasEdge predicate on the "provider" edge.
func HasProviderWith ¶
HasProviderWith applies the HasEdge predicate on the "provider" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Blueprint queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeployments ¶
func ByDeployments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDeployments orders the results by deployments terms.
func ByDeploymentsCount ¶
func ByDeploymentsCount(opts ...sql.OrderTermOption) OrderOption
ByDeploymentsCount orders the results by deployments count.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByParentGroupField ¶
func ByParentGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentGroupField orders the results by parent_group field.
func ByProviderField ¶
func ByProviderField(field string, opts ...sql.OrderTermOption) OrderOption
ByProviderField orders the results by provider field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.