tenant

package
v0.0.1-beta6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldMspId holds the string denoting the mspid field in the database.
	FieldMspId = "msp_id"
	// FieldSignCertCAPrivateKey holds the string denoting the signcertcaprivatekey field in the database.
	FieldSignCertCAPrivateKey = "sign_cert_ca_private_key"
	// FieldSignCertCACert holds the string denoting the signcertcacert field in the database.
	FieldSignCertCACert = "sign_cert_ca_cert"
	// FieldTlsCertCAPrivateKey holds the string denoting the tlscertcaprivatekey field in the database.
	FieldTlsCertCAPrivateKey = "tls_cert_ca_private_key"
	// FieldTlsCertCACert holds the string denoting the tlscertcacert field in the database.
	FieldTlsCertCACert = "tls_cert_ca_cert"
	// EdgeChaincodes holds the string denoting the chaincodes edge name in mutations.
	EdgeChaincodes = "chaincodes"
	// Table holds the table name of the tenant in the database.
	Table = "tenants"
	// ChaincodesTable is the table that holds the chaincodes relation/edge.
	ChaincodesTable = "chaincodes"
	// ChaincodesInverseTable is the table name for the Chaincode entity.
	// It exists in this package in order to avoid circular dependency with the "chaincode" package.
	ChaincodesInverseTable = "chaincodes"
	// ChaincodesColumn is the table column denoting the chaincodes relation/edge.
	ChaincodesColumn = "tenant_chaincodes"
)

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 HasChaincodes

func HasChaincodes() predicate.Tenant

HasChaincodes applies the HasEdge predicate on the "chaincodes" edge.

func HasChaincodesWith

func HasChaincodesWith(preds ...predicate.Chaincode) predicate.Tenant

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

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 MspId

func MspId(v string) predicate.Tenant

MspId applies equality check predicate on the "mspId" field. It's identical to MspIdEQ.

func MspIdContains

func MspIdContains(v string) predicate.Tenant

MspIdContains applies the Contains predicate on the "mspId" field.

func MspIdContainsFold

func MspIdContainsFold(v string) predicate.Tenant

MspIdContainsFold applies the ContainsFold predicate on the "mspId" field.

func MspIdEQ

func MspIdEQ(v string) predicate.Tenant

MspIdEQ applies the EQ predicate on the "mspId" field.

func MspIdEqualFold

func MspIdEqualFold(v string) predicate.Tenant

MspIdEqualFold applies the EqualFold predicate on the "mspId" field.

func MspIdGT

func MspIdGT(v string) predicate.Tenant

MspIdGT applies the GT predicate on the "mspId" field.

func MspIdGTE

func MspIdGTE(v string) predicate.Tenant

MspIdGTE applies the GTE predicate on the "mspId" field.

func MspIdHasPrefix

func MspIdHasPrefix(v string) predicate.Tenant

MspIdHasPrefix applies the HasPrefix predicate on the "mspId" field.

func MspIdHasSuffix

func MspIdHasSuffix(v string) predicate.Tenant

MspIdHasSuffix applies the HasSuffix predicate on the "mspId" field.

func MspIdIn

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

MspIdIn applies the In predicate on the "mspId" field.

func MspIdLT

func MspIdLT(v string) predicate.Tenant

MspIdLT applies the LT predicate on the "mspId" field.

func MspIdLTE

func MspIdLTE(v string) predicate.Tenant

MspIdLTE applies the LTE predicate on the "mspId" field.

func MspIdNEQ

func MspIdNEQ(v string) predicate.Tenant

MspIdNEQ applies the NEQ predicate on the "mspId" field.

func MspIdNotIn

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

MspIdNotIn applies the NotIn predicate on the "mspId" field.

func Name

func Name(v string) predicate.Tenant

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Tenant

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Tenant

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Tenant

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Tenant

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Tenant

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Tenant

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Tenant

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Tenant

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

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

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Tenant

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Tenant

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Tenant

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" 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 SignCertCACert

func SignCertCACert(v []byte) predicate.Tenant

SignCertCACert applies equality check predicate on the "signCertCACert" field. It's identical to SignCertCACertEQ.

func SignCertCACertEQ

func SignCertCACertEQ(v []byte) predicate.Tenant

SignCertCACertEQ applies the EQ predicate on the "signCertCACert" field.

func SignCertCACertGT

func SignCertCACertGT(v []byte) predicate.Tenant

SignCertCACertGT applies the GT predicate on the "signCertCACert" field.

func SignCertCACertGTE

func SignCertCACertGTE(v []byte) predicate.Tenant

SignCertCACertGTE applies the GTE predicate on the "signCertCACert" field.

func SignCertCACertIn

func SignCertCACertIn(vs ...[]byte) predicate.Tenant

SignCertCACertIn applies the In predicate on the "signCertCACert" field.

func SignCertCACertIsNil

func SignCertCACertIsNil() predicate.Tenant

SignCertCACertIsNil applies the IsNil predicate on the "signCertCACert" field.

func SignCertCACertLT

func SignCertCACertLT(v []byte) predicate.Tenant

SignCertCACertLT applies the LT predicate on the "signCertCACert" field.

func SignCertCACertLTE

func SignCertCACertLTE(v []byte) predicate.Tenant

SignCertCACertLTE applies the LTE predicate on the "signCertCACert" field.

func SignCertCACertNEQ

func SignCertCACertNEQ(v []byte) predicate.Tenant

SignCertCACertNEQ applies the NEQ predicate on the "signCertCACert" field.

func SignCertCACertNotIn

func SignCertCACertNotIn(vs ...[]byte) predicate.Tenant

SignCertCACertNotIn applies the NotIn predicate on the "signCertCACert" field.

func SignCertCACertNotNil

func SignCertCACertNotNil() predicate.Tenant

SignCertCACertNotNil applies the NotNil predicate on the "signCertCACert" field.

func SignCertCAPrivateKey

func SignCertCAPrivateKey(v []byte) predicate.Tenant

SignCertCAPrivateKey applies equality check predicate on the "signCertCAPrivateKey" field. It's identical to SignCertCAPrivateKeyEQ.

func SignCertCAPrivateKeyEQ

func SignCertCAPrivateKeyEQ(v []byte) predicate.Tenant

SignCertCAPrivateKeyEQ applies the EQ predicate on the "signCertCAPrivateKey" field.

func SignCertCAPrivateKeyGT

func SignCertCAPrivateKeyGT(v []byte) predicate.Tenant

SignCertCAPrivateKeyGT applies the GT predicate on the "signCertCAPrivateKey" field.

func SignCertCAPrivateKeyGTE

func SignCertCAPrivateKeyGTE(v []byte) predicate.Tenant

SignCertCAPrivateKeyGTE applies the GTE predicate on the "signCertCAPrivateKey" field.

func SignCertCAPrivateKeyIn

func SignCertCAPrivateKeyIn(vs ...[]byte) predicate.Tenant

SignCertCAPrivateKeyIn applies the In predicate on the "signCertCAPrivateKey" field.

func SignCertCAPrivateKeyIsNil

func SignCertCAPrivateKeyIsNil() predicate.Tenant

SignCertCAPrivateKeyIsNil applies the IsNil predicate on the "signCertCAPrivateKey" field.

func SignCertCAPrivateKeyLT

func SignCertCAPrivateKeyLT(v []byte) predicate.Tenant

SignCertCAPrivateKeyLT applies the LT predicate on the "signCertCAPrivateKey" field.

func SignCertCAPrivateKeyLTE

func SignCertCAPrivateKeyLTE(v []byte) predicate.Tenant

SignCertCAPrivateKeyLTE applies the LTE predicate on the "signCertCAPrivateKey" field.

func SignCertCAPrivateKeyNEQ

func SignCertCAPrivateKeyNEQ(v []byte) predicate.Tenant

SignCertCAPrivateKeyNEQ applies the NEQ predicate on the "signCertCAPrivateKey" field.

func SignCertCAPrivateKeyNotIn

func SignCertCAPrivateKeyNotIn(vs ...[]byte) predicate.Tenant

SignCertCAPrivateKeyNotIn applies the NotIn predicate on the "signCertCAPrivateKey" field.

func SignCertCAPrivateKeyNotNil

func SignCertCAPrivateKeyNotNil() predicate.Tenant

SignCertCAPrivateKeyNotNil applies the NotNil predicate on the "signCertCAPrivateKey" field.

func TlsCertCACert

func TlsCertCACert(v []byte) predicate.Tenant

TlsCertCACert applies equality check predicate on the "tlsCertCACert" field. It's identical to TlsCertCACertEQ.

func TlsCertCACertEQ

func TlsCertCACertEQ(v []byte) predicate.Tenant

TlsCertCACertEQ applies the EQ predicate on the "tlsCertCACert" field.

func TlsCertCACertGT

func TlsCertCACertGT(v []byte) predicate.Tenant

TlsCertCACertGT applies the GT predicate on the "tlsCertCACert" field.

func TlsCertCACertGTE

func TlsCertCACertGTE(v []byte) predicate.Tenant

TlsCertCACertGTE applies the GTE predicate on the "tlsCertCACert" field.

func TlsCertCACertIn

func TlsCertCACertIn(vs ...[]byte) predicate.Tenant

TlsCertCACertIn applies the In predicate on the "tlsCertCACert" field.

func TlsCertCACertIsNil

func TlsCertCACertIsNil() predicate.Tenant

TlsCertCACertIsNil applies the IsNil predicate on the "tlsCertCACert" field.

func TlsCertCACertLT

func TlsCertCACertLT(v []byte) predicate.Tenant

TlsCertCACertLT applies the LT predicate on the "tlsCertCACert" field.

func TlsCertCACertLTE

func TlsCertCACertLTE(v []byte) predicate.Tenant

TlsCertCACertLTE applies the LTE predicate on the "tlsCertCACert" field.

func TlsCertCACertNEQ

func TlsCertCACertNEQ(v []byte) predicate.Tenant

TlsCertCACertNEQ applies the NEQ predicate on the "tlsCertCACert" field.

func TlsCertCACertNotIn

func TlsCertCACertNotIn(vs ...[]byte) predicate.Tenant

TlsCertCACertNotIn applies the NotIn predicate on the "tlsCertCACert" field.

func TlsCertCACertNotNil

func TlsCertCACertNotNil() predicate.Tenant

TlsCertCACertNotNil applies the NotNil predicate on the "tlsCertCACert" field.

func TlsCertCAPrivateKey

func TlsCertCAPrivateKey(v []byte) predicate.Tenant

TlsCertCAPrivateKey applies equality check predicate on the "tlsCertCAPrivateKey" field. It's identical to TlsCertCAPrivateKeyEQ.

func TlsCertCAPrivateKeyEQ

func TlsCertCAPrivateKeyEQ(v []byte) predicate.Tenant

TlsCertCAPrivateKeyEQ applies the EQ predicate on the "tlsCertCAPrivateKey" field.

func TlsCertCAPrivateKeyGT

func TlsCertCAPrivateKeyGT(v []byte) predicate.Tenant

TlsCertCAPrivateKeyGT applies the GT predicate on the "tlsCertCAPrivateKey" field.

func TlsCertCAPrivateKeyGTE

func TlsCertCAPrivateKeyGTE(v []byte) predicate.Tenant

TlsCertCAPrivateKeyGTE applies the GTE predicate on the "tlsCertCAPrivateKey" field.

func TlsCertCAPrivateKeyIn

func TlsCertCAPrivateKeyIn(vs ...[]byte) predicate.Tenant

TlsCertCAPrivateKeyIn applies the In predicate on the "tlsCertCAPrivateKey" field.

func TlsCertCAPrivateKeyIsNil

func TlsCertCAPrivateKeyIsNil() predicate.Tenant

TlsCertCAPrivateKeyIsNil applies the IsNil predicate on the "tlsCertCAPrivateKey" field.

func TlsCertCAPrivateKeyLT

func TlsCertCAPrivateKeyLT(v []byte) predicate.Tenant

TlsCertCAPrivateKeyLT applies the LT predicate on the "tlsCertCAPrivateKey" field.

func TlsCertCAPrivateKeyLTE

func TlsCertCAPrivateKeyLTE(v []byte) predicate.Tenant

TlsCertCAPrivateKeyLTE applies the LTE predicate on the "tlsCertCAPrivateKey" field.

func TlsCertCAPrivateKeyNEQ

func TlsCertCAPrivateKeyNEQ(v []byte) predicate.Tenant

TlsCertCAPrivateKeyNEQ applies the NEQ predicate on the "tlsCertCAPrivateKey" field.

func TlsCertCAPrivateKeyNotIn

func TlsCertCAPrivateKeyNotIn(vs ...[]byte) predicate.Tenant

TlsCertCAPrivateKeyNotIn applies the NotIn predicate on the "tlsCertCAPrivateKey" field.

func TlsCertCAPrivateKeyNotNil

func TlsCertCAPrivateKeyNotNil() predicate.Tenant

TlsCertCAPrivateKeyNotNil applies the NotNil predicate on the "tlsCertCAPrivateKey" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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