tenant

package
v2.30.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for tenant fields.

Functions

func And

func And(predicates ...predicate.Tenant) predicate.Tenant

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v string) predicate.Tenant

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

func CreatedAtContains

func CreatedAtContains(v string) predicate.Tenant

CreatedAtContains applies the Contains predicate on the "created_at" field.

func CreatedAtContainsFold

func CreatedAtContainsFold(v string) predicate.Tenant

CreatedAtContainsFold applies the ContainsFold predicate on the "created_at" field.

func CreatedAtEQ

func CreatedAtEQ(v string) predicate.Tenant

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

func CreatedAtEqualFold

func CreatedAtEqualFold(v string) predicate.Tenant

CreatedAtEqualFold applies the EqualFold predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v string) predicate.Tenant

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

func CreatedAtGTE

func CreatedAtGTE(v string) predicate.Tenant

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

func CreatedAtHasPrefix

func CreatedAtHasPrefix(v string) predicate.Tenant

CreatedAtHasPrefix applies the HasPrefix predicate on the "created_at" field.

func CreatedAtHasSuffix

func CreatedAtHasSuffix(v string) predicate.Tenant

CreatedAtHasSuffix applies the HasSuffix predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...string) predicate.Tenant

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

func CreatedAtLT

func CreatedAtLT(v string) predicate.Tenant

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

func CreatedAtLTE

func CreatedAtLTE(v string) predicate.Tenant

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

func CreatedAtNEQ

func CreatedAtNEQ(v string) predicate.Tenant

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

func CreatedAtNotIn

func CreatedAtNotIn(vs ...string) predicate.Tenant

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

func CurrentStateIsNil() predicate.Tenant

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

func CurrentStateNotNil() predicate.Tenant

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 ID

func ID(id int) predicate.Tenant

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tenant

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tenant

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tenant

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tenant

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tenant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tenant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tenant) predicate.Tenant

Or groups predicates with the OR operator between them.

func ResourceID

func ResourceID(v string) predicate.Tenant

ResourceID applies equality check predicate on the "resource_id" field. It's identical to ResourceIDEQ.

func ResourceIDContains

func ResourceIDContains(v string) predicate.Tenant

ResourceIDContains applies the Contains predicate on the "resource_id" field.

func ResourceIDContainsFold

func ResourceIDContainsFold(v string) predicate.Tenant

ResourceIDContainsFold applies the ContainsFold predicate on the "resource_id" field.

func ResourceIDEQ

func ResourceIDEQ(v string) predicate.Tenant

ResourceIDEQ applies the EQ predicate on the "resource_id" field.

func ResourceIDEqualFold

func ResourceIDEqualFold(v string) predicate.Tenant

ResourceIDEqualFold applies the EqualFold predicate on the "resource_id" field.

func ResourceIDGT

func ResourceIDGT(v string) predicate.Tenant

ResourceIDGT applies the GT predicate on the "resource_id" field.

func ResourceIDGTE

func ResourceIDGTE(v string) predicate.Tenant

ResourceIDGTE applies the GTE predicate on the "resource_id" field.

func ResourceIDHasPrefix

func ResourceIDHasPrefix(v string) predicate.Tenant

ResourceIDHasPrefix applies the HasPrefix predicate on the "resource_id" field.

func ResourceIDHasSuffix

func ResourceIDHasSuffix(v string) predicate.Tenant

ResourceIDHasSuffix applies the HasSuffix predicate on the "resource_id" field.

func ResourceIDIn

func ResourceIDIn(vs ...string) predicate.Tenant

ResourceIDIn applies the In predicate on the "resource_id" field.

func ResourceIDLT

func ResourceIDLT(v string) predicate.Tenant

ResourceIDLT applies the LT predicate on the "resource_id" field.

func ResourceIDLTE

func ResourceIDLTE(v string) predicate.Tenant

ResourceIDLTE applies the LTE predicate on the "resource_id" field.

func ResourceIDNEQ

func ResourceIDNEQ(v string) predicate.Tenant

ResourceIDNEQ applies the NEQ predicate on the "resource_id" field.

func ResourceIDNotIn

func ResourceIDNotIn(vs ...string) predicate.Tenant

ResourceIDNotIn applies the NotIn predicate on the "resource_id" field.

func TenantID

func TenantID(v string) predicate.Tenant

TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.

func TenantIDContains

func TenantIDContains(v string) predicate.Tenant

TenantIDContains applies the Contains predicate on the "tenant_id" field.

func TenantIDContainsFold

func TenantIDContainsFold(v string) predicate.Tenant

TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.

func TenantIDEQ

func TenantIDEQ(v string) predicate.Tenant

TenantIDEQ applies the EQ predicate on the "tenant_id" field.

func TenantIDEqualFold

func TenantIDEqualFold(v string) predicate.Tenant

TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.

func TenantIDGT

func TenantIDGT(v string) predicate.Tenant

TenantIDGT applies the GT predicate on the "tenant_id" field.

func TenantIDGTE

func TenantIDGTE(v string) predicate.Tenant

TenantIDGTE applies the GTE predicate on the "tenant_id" field.

func TenantIDHasPrefix

func TenantIDHasPrefix(v string) predicate.Tenant

TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.

func TenantIDHasSuffix

func TenantIDHasSuffix(v string) predicate.Tenant

TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.

func TenantIDIn

func TenantIDIn(vs ...string) predicate.Tenant

TenantIDIn applies the In predicate on the "tenant_id" field.

func TenantIDLT

func TenantIDLT(v string) predicate.Tenant

TenantIDLT applies the LT predicate on the "tenant_id" field.

func TenantIDLTE

func TenantIDLTE(v string) predicate.Tenant

TenantIDLTE applies the LTE predicate on the "tenant_id" field.

func TenantIDNEQ

func TenantIDNEQ(v string) predicate.Tenant

TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.

func TenantIDNotIn

func TenantIDNotIn(vs ...string) predicate.Tenant

TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.

func UpdatedAt

func UpdatedAt(v string) predicate.Tenant

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

func UpdatedAtContains

func UpdatedAtContains(v string) predicate.Tenant

UpdatedAtContains applies the Contains predicate on the "updated_at" field.

func UpdatedAtContainsFold

func UpdatedAtContainsFold(v string) predicate.Tenant

UpdatedAtContainsFold applies the ContainsFold predicate on the "updated_at" field.

func UpdatedAtEQ

func UpdatedAtEQ(v string) predicate.Tenant

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

func UpdatedAtEqualFold

func UpdatedAtEqualFold(v string) predicate.Tenant

UpdatedAtEqualFold applies the EqualFold predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v string) predicate.Tenant

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

func UpdatedAtGTE

func UpdatedAtGTE(v string) predicate.Tenant

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

func UpdatedAtHasPrefix

func UpdatedAtHasPrefix(v string) predicate.Tenant

UpdatedAtHasPrefix applies the HasPrefix predicate on the "updated_at" field.

func UpdatedAtHasSuffix

func UpdatedAtHasSuffix(v string) predicate.Tenant

UpdatedAtHasSuffix applies the HasSuffix predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...string) predicate.Tenant

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

func UpdatedAtLT

func UpdatedAtLT(v string) predicate.Tenant

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

func UpdatedAtLTE

func UpdatedAtLTE(v string) predicate.Tenant

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v string) predicate.Tenant

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

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...string) predicate.Tenant

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 WatcherOsmanager

func WatcherOsmanager(v bool) predicate.Tenant

WatcherOsmanager applies equality check predicate on the "watcher_osmanager" field. It's identical to WatcherOsmanagerEQ.

func WatcherOsmanagerEQ

func WatcherOsmanagerEQ(v bool) predicate.Tenant

WatcherOsmanagerEQ applies the EQ predicate on the "watcher_osmanager" field.

func WatcherOsmanagerIsNil

func WatcherOsmanagerIsNil() predicate.Tenant

WatcherOsmanagerIsNil applies the IsNil predicate on the "watcher_osmanager" field.

func WatcherOsmanagerNEQ

func WatcherOsmanagerNEQ(v bool) predicate.Tenant

WatcherOsmanagerNEQ applies the NEQ predicate on the "watcher_osmanager" field.

func WatcherOsmanagerNotNil

func WatcherOsmanagerNotNil() predicate.Tenant

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

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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