Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tenant) predicate.Tenant
- func CreatedAt(v string) predicate.Tenant
- func CreatedAtContains(v string) predicate.Tenant
- func CreatedAtContainsFold(v string) predicate.Tenant
- func CreatedAtEQ(v string) predicate.Tenant
- func CreatedAtEqualFold(v string) predicate.Tenant
- func CreatedAtGT(v string) predicate.Tenant
- func CreatedAtGTE(v string) predicate.Tenant
- func CreatedAtHasPrefix(v string) predicate.Tenant
- func CreatedAtHasSuffix(v string) predicate.Tenant
- func CreatedAtIn(vs ...string) predicate.Tenant
- func CreatedAtLT(v string) predicate.Tenant
- func CreatedAtLTE(v string) predicate.Tenant
- func CreatedAtNEQ(v string) predicate.Tenant
- func CreatedAtNotIn(vs ...string) predicate.Tenant
- func CurrentStateEQ(v CurrentState) predicate.Tenant
- func CurrentStateIn(vs ...CurrentState) predicate.Tenant
- func CurrentStateIsNil() predicate.Tenant
- func CurrentStateNEQ(v CurrentState) predicate.Tenant
- func CurrentStateNotIn(vs ...CurrentState) predicate.Tenant
- func CurrentStateNotNil() predicate.Tenant
- func CurrentStateValidator(cs CurrentState) error
- func DesiredStateEQ(v DesiredState) predicate.Tenant
- func DesiredStateIn(vs ...DesiredState) predicate.Tenant
- func DesiredStateNEQ(v DesiredState) predicate.Tenant
- func DesiredStateNotIn(vs ...DesiredState) predicate.Tenant
- func DesiredStateValidator(ds DesiredState) error
- func ID(id int) predicate.Tenant
- func IDEQ(id int) predicate.Tenant
- func IDGT(id int) predicate.Tenant
- func IDGTE(id int) predicate.Tenant
- func IDIn(ids ...int) predicate.Tenant
- func IDLT(id int) predicate.Tenant
- func IDLTE(id int) predicate.Tenant
- func IDNEQ(id int) predicate.Tenant
- func IDNotIn(ids ...int) predicate.Tenant
- func Not(p predicate.Tenant) predicate.Tenant
- func Or(predicates ...predicate.Tenant) predicate.Tenant
- func ResourceID(v string) predicate.Tenant
- func ResourceIDContains(v string) predicate.Tenant
- func ResourceIDContainsFold(v string) predicate.Tenant
- func ResourceIDEQ(v string) predicate.Tenant
- func ResourceIDEqualFold(v string) predicate.Tenant
- func ResourceIDGT(v string) predicate.Tenant
- func ResourceIDGTE(v string) predicate.Tenant
- func ResourceIDHasPrefix(v string) predicate.Tenant
- func ResourceIDHasSuffix(v string) predicate.Tenant
- func ResourceIDIn(vs ...string) predicate.Tenant
- func ResourceIDLT(v string) predicate.Tenant
- func ResourceIDLTE(v string) predicate.Tenant
- func ResourceIDNEQ(v string) predicate.Tenant
- func ResourceIDNotIn(vs ...string) predicate.Tenant
- func TenantID(v string) predicate.Tenant
- func TenantIDContains(v string) predicate.Tenant
- func TenantIDContainsFold(v string) predicate.Tenant
- func TenantIDEQ(v string) predicate.Tenant
- func TenantIDEqualFold(v string) predicate.Tenant
- func TenantIDGT(v string) predicate.Tenant
- func TenantIDGTE(v string) predicate.Tenant
- func TenantIDHasPrefix(v string) predicate.Tenant
- func TenantIDHasSuffix(v string) predicate.Tenant
- func TenantIDIn(vs ...string) predicate.Tenant
- func TenantIDLT(v string) predicate.Tenant
- func TenantIDLTE(v string) predicate.Tenant
- func TenantIDNEQ(v string) predicate.Tenant
- func TenantIDNotIn(vs ...string) predicate.Tenant
- func UpdatedAt(v string) predicate.Tenant
- func UpdatedAtContains(v string) predicate.Tenant
- func UpdatedAtContainsFold(v string) predicate.Tenant
- func UpdatedAtEQ(v string) predicate.Tenant
- func UpdatedAtEqualFold(v string) predicate.Tenant
- func UpdatedAtGT(v string) predicate.Tenant
- func UpdatedAtGTE(v string) predicate.Tenant
- func UpdatedAtHasPrefix(v string) predicate.Tenant
- func UpdatedAtHasSuffix(v string) predicate.Tenant
- func UpdatedAtIn(vs ...string) predicate.Tenant
- func UpdatedAtLT(v string) predicate.Tenant
- func UpdatedAtLTE(v string) predicate.Tenant
- func UpdatedAtNEQ(v string) predicate.Tenant
- func UpdatedAtNotIn(vs ...string) predicate.Tenant
- func ValidColumn(column string) bool
- func WatcherOsmanager(v bool) predicate.Tenant
- func WatcherOsmanagerEQ(v bool) predicate.Tenant
- func WatcherOsmanagerIsNil() predicate.Tenant
- func WatcherOsmanagerNEQ(v bool) predicate.Tenant
- func WatcherOsmanagerNotNil() predicate.Tenant
- type CurrentState
- type DesiredState
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCurrentState(opts ...sql.OrderTermOption) OrderOption
- func ByDesiredState(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByResourceID(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWatcherOsmanager(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the tenant type in the database. Label = "tenant" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldResourceID holds the string denoting the resource_id field in the database. FieldResourceID = "resource_id" // FieldCurrentState holds the string denoting the current_state field in the database. FieldCurrentState = "current_state" // FieldDesiredState holds the string denoting the desired_state field in the database. FieldDesiredState = "desired_state" // FieldWatcherOsmanager holds the string denoting the watcher_osmanager field in the database. FieldWatcherOsmanager = "watcher_osmanager" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_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" // Table holds the table name of the tenant in the database. Table = "tenants" )
Variables ¶
var Columns = []string{ FieldID, FieldResourceID, FieldCurrentState, FieldDesiredState, FieldWatcherOsmanager, FieldTenantID, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for tenant fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtContains ¶
CreatedAtContains applies the Contains predicate on the "created_at" field.
func CreatedAtContainsFold ¶
CreatedAtContainsFold applies the ContainsFold predicate on the "created_at" field.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEqualFold ¶
CreatedAtEqualFold applies the EqualFold 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 CreatedAtHasPrefix ¶
CreatedAtHasPrefix applies the HasPrefix predicate on the "created_at" field.
func CreatedAtHasSuffix ¶
CreatedAtHasSuffix applies the HasSuffix 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 CurrentStateEQ ¶
func CurrentStateEQ(v CurrentState) predicate.Tenant
CurrentStateEQ applies the EQ predicate on the "current_state" field.
func CurrentStateIn ¶
func CurrentStateIn(vs ...CurrentState) predicate.Tenant
CurrentStateIn applies the In predicate on the "current_state" field.
func CurrentStateIsNil ¶
CurrentStateIsNil applies the IsNil predicate on the "current_state" field.
func CurrentStateNEQ ¶
func CurrentStateNEQ(v CurrentState) predicate.Tenant
CurrentStateNEQ applies the NEQ predicate on the "current_state" field.
func CurrentStateNotIn ¶
func CurrentStateNotIn(vs ...CurrentState) predicate.Tenant
CurrentStateNotIn applies the NotIn predicate on the "current_state" field.
func CurrentStateNotNil ¶
CurrentStateNotNil applies the NotNil predicate on the "current_state" field.
func CurrentStateValidator ¶
func CurrentStateValidator(cs CurrentState) error
CurrentStateValidator is a validator for the "current_state" field enum values. It is called by the builders before save.
func DesiredStateEQ ¶
func DesiredStateEQ(v DesiredState) predicate.Tenant
DesiredStateEQ applies the EQ predicate on the "desired_state" field.
func DesiredStateIn ¶
func DesiredStateIn(vs ...DesiredState) predicate.Tenant
DesiredStateIn applies the In predicate on the "desired_state" field.
func DesiredStateNEQ ¶
func DesiredStateNEQ(v DesiredState) predicate.Tenant
DesiredStateNEQ applies the NEQ predicate on the "desired_state" field.
func DesiredStateNotIn ¶
func DesiredStateNotIn(vs ...DesiredState) predicate.Tenant
DesiredStateNotIn applies the NotIn predicate on the "desired_state" field.
func DesiredStateValidator ¶
func DesiredStateValidator(ds DesiredState) error
DesiredStateValidator is a validator for the "desired_state" field enum values. It is called by the builders before save.
func ResourceID ¶
ResourceID applies equality check predicate on the "resource_id" field. It's identical to ResourceIDEQ.
func ResourceIDContains ¶
ResourceIDContains applies the Contains predicate on the "resource_id" field.
func ResourceIDContainsFold ¶
ResourceIDContainsFold applies the ContainsFold predicate on the "resource_id" field.
func ResourceIDEQ ¶
ResourceIDEQ applies the EQ predicate on the "resource_id" field.
func ResourceIDEqualFold ¶
ResourceIDEqualFold applies the EqualFold predicate on the "resource_id" field.
func ResourceIDGT ¶
ResourceIDGT applies the GT predicate on the "resource_id" field.
func ResourceIDGTE ¶
ResourceIDGTE applies the GTE predicate on the "resource_id" field.
func ResourceIDHasPrefix ¶
ResourceIDHasPrefix applies the HasPrefix predicate on the "resource_id" field.
func ResourceIDHasSuffix ¶
ResourceIDHasSuffix applies the HasSuffix predicate on the "resource_id" field.
func ResourceIDIn ¶
ResourceIDIn applies the In predicate on the "resource_id" field.
func ResourceIDLT ¶
ResourceIDLT applies the LT predicate on the "resource_id" field.
func ResourceIDLTE ¶
ResourceIDLTE applies the LTE predicate on the "resource_id" field.
func ResourceIDNEQ ¶
ResourceIDNEQ applies the NEQ predicate on the "resource_id" field.
func ResourceIDNotIn ¶
ResourceIDNotIn applies the NotIn predicate on the "resource_id" field.
func TenantID ¶
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDContains ¶
TenantIDContains applies the Contains predicate on the "tenant_id" field.
func TenantIDContainsFold ¶
TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.
func TenantIDEQ ¶
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDEqualFold ¶
TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.
func TenantIDGT ¶
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDHasPrefix ¶
TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.
func TenantIDHasSuffix ¶
TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.
func TenantIDIn ¶
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtContains ¶
UpdatedAtContains applies the Contains predicate on the "updated_at" field.
func UpdatedAtContainsFold ¶
UpdatedAtContainsFold applies the ContainsFold predicate on the "updated_at" field.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEqualFold ¶
UpdatedAtEqualFold applies the EqualFold 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 UpdatedAtHasPrefix ¶
UpdatedAtHasPrefix applies the HasPrefix predicate on the "updated_at" field.
func UpdatedAtHasSuffix ¶
UpdatedAtHasSuffix applies the HasSuffix 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).
func WatcherOsmanager ¶
WatcherOsmanager applies equality check predicate on the "watcher_osmanager" field. It's identical to WatcherOsmanagerEQ.
func WatcherOsmanagerEQ ¶
WatcherOsmanagerEQ applies the EQ predicate on the "watcher_osmanager" field.
func WatcherOsmanagerIsNil ¶
WatcherOsmanagerIsNil applies the IsNil predicate on the "watcher_osmanager" field.
func WatcherOsmanagerNEQ ¶
WatcherOsmanagerNEQ applies the NEQ predicate on the "watcher_osmanager" field.
func WatcherOsmanagerNotNil ¶
WatcherOsmanagerNotNil applies the NotNil predicate on the "watcher_osmanager" field.
Types ¶
type CurrentState ¶
type CurrentState string
CurrentState defines the type for the "current_state" enum field.
const ( CurrentStateTENANT_STATE_UNSPECIFIED CurrentState = "TENANT_STATE_UNSPECIFIED" CurrentStateTENANT_STATE_CREATED CurrentState = "TENANT_STATE_CREATED" CurrentStateTENANT_STATE_DELETED CurrentState = "TENANT_STATE_DELETED" )
CurrentState values.
func (CurrentState) String ¶
func (cs CurrentState) String() string
type DesiredState ¶
type DesiredState string
DesiredState defines the type for the "desired_state" enum field.
const ( DesiredStateTENANT_STATE_UNSPECIFIED DesiredState = "TENANT_STATE_UNSPECIFIED" DesiredStateTENANT_STATE_CREATED DesiredState = "TENANT_STATE_CREATED" DesiredStateTENANT_STATE_DELETED DesiredState = "TENANT_STATE_DELETED" )
DesiredState values.
func (DesiredState) String ¶
func (ds DesiredState) String() string
type OrderOption ¶
OrderOption defines the ordering options for the Tenant queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCurrentState ¶
func ByCurrentState(opts ...sql.OrderTermOption) OrderOption
ByCurrentState orders the results by the current_state field.
func ByDesiredState ¶
func ByDesiredState(opts ...sql.OrderTermOption) OrderOption
ByDesiredState orders the results by the desired_state field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByResourceID ¶
func ByResourceID(opts ...sql.OrderTermOption) OrderOption
ByResourceID orders the results by the resource_id field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWatcherOsmanager ¶
func ByWatcherOsmanager(opts ...sql.OrderTermOption) OrderOption
ByWatcherOsmanager orders the results by the watcher_osmanager field.