chaincode

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 chaincode type in the database.
	Label = "chaincode"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPackageId holds the string denoting the packageid field in the database.
	FieldPackageId = "package_id"
	// FieldChannelId holds the string denoting the channelid field in the database.
	FieldChannelId = "channel_id"
	// EdgeTenant holds the string denoting the tenant edge name in mutations.
	EdgeTenant = "tenant"
	// Table holds the table name of the chaincode in the database.
	Table = "chaincodes"
	// TenantTable is the table that holds the tenant relation/edge.
	TenantTable = "chaincodes"
	// TenantInverseTable is the table name for the Tenant entity.
	// It exists in this package in order to avoid circular dependency with the "tenant" package.
	TenantInverseTable = "tenants"
	// TenantColumn is the table column denoting the tenant relation/edge.
	TenantColumn = "tenant_chaincodes"
)

Variables

Columns holds all SQL columns for chaincode fields.

View Source
var ForeignKeys = []string{
	"tenant_chaincodes",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "chaincodes" table and are not defined as standalone fields in the schema.

View Source
var (
	// PackageIdValidator is a validator for the "packageId" field. It is called by the builders before save.
	PackageIdValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Chaincode) predicate.Chaincode

And groups predicates with the AND operator between them.

func ChannelId

func ChannelId(v string) predicate.Chaincode

ChannelId applies equality check predicate on the "channelId" field. It's identical to ChannelIdEQ.

func ChannelIdContains

func ChannelIdContains(v string) predicate.Chaincode

ChannelIdContains applies the Contains predicate on the "channelId" field.

func ChannelIdContainsFold

func ChannelIdContainsFold(v string) predicate.Chaincode

ChannelIdContainsFold applies the ContainsFold predicate on the "channelId" field.

func ChannelIdEQ

func ChannelIdEQ(v string) predicate.Chaincode

ChannelIdEQ applies the EQ predicate on the "channelId" field.

func ChannelIdEqualFold

func ChannelIdEqualFold(v string) predicate.Chaincode

ChannelIdEqualFold applies the EqualFold predicate on the "channelId" field.

func ChannelIdGT

func ChannelIdGT(v string) predicate.Chaincode

ChannelIdGT applies the GT predicate on the "channelId" field.

func ChannelIdGTE

func ChannelIdGTE(v string) predicate.Chaincode

ChannelIdGTE applies the GTE predicate on the "channelId" field.

func ChannelIdHasPrefix

func ChannelIdHasPrefix(v string) predicate.Chaincode

ChannelIdHasPrefix applies the HasPrefix predicate on the "channelId" field.

func ChannelIdHasSuffix

func ChannelIdHasSuffix(v string) predicate.Chaincode

ChannelIdHasSuffix applies the HasSuffix predicate on the "channelId" field.

func ChannelIdIn

func ChannelIdIn(vs ...string) predicate.Chaincode

ChannelIdIn applies the In predicate on the "channelId" field.

func ChannelIdLT

func ChannelIdLT(v string) predicate.Chaincode

ChannelIdLT applies the LT predicate on the "channelId" field.

func ChannelIdLTE

func ChannelIdLTE(v string) predicate.Chaincode

ChannelIdLTE applies the LTE predicate on the "channelId" field.

func ChannelIdNEQ

func ChannelIdNEQ(v string) predicate.Chaincode

ChannelIdNEQ applies the NEQ predicate on the "channelId" field.

func ChannelIdNotIn

func ChannelIdNotIn(vs ...string) predicate.Chaincode

ChannelIdNotIn applies the NotIn predicate on the "channelId" field.

func HasTenant

func HasTenant() predicate.Chaincode

HasTenant applies the HasEdge predicate on the "tenant" edge.

func HasTenantWith

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

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

func ID

func ID(id int) predicate.Chaincode

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Chaincode

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Chaincode

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Chaincode

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Chaincode

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Chaincode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Chaincode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Chaincode) predicate.Chaincode

Or groups predicates with the OR operator between them.

func PackageId

func PackageId(v string) predicate.Chaincode

PackageId applies equality check predicate on the "packageId" field. It's identical to PackageIdEQ.

func PackageIdContains

func PackageIdContains(v string) predicate.Chaincode

PackageIdContains applies the Contains predicate on the "packageId" field.

func PackageIdContainsFold

func PackageIdContainsFold(v string) predicate.Chaincode

PackageIdContainsFold applies the ContainsFold predicate on the "packageId" field.

func PackageIdEQ

func PackageIdEQ(v string) predicate.Chaincode

PackageIdEQ applies the EQ predicate on the "packageId" field.

func PackageIdEqualFold

func PackageIdEqualFold(v string) predicate.Chaincode

PackageIdEqualFold applies the EqualFold predicate on the "packageId" field.

func PackageIdGT

func PackageIdGT(v string) predicate.Chaincode

PackageIdGT applies the GT predicate on the "packageId" field.

func PackageIdGTE

func PackageIdGTE(v string) predicate.Chaincode

PackageIdGTE applies the GTE predicate on the "packageId" field.

func PackageIdHasPrefix

func PackageIdHasPrefix(v string) predicate.Chaincode

PackageIdHasPrefix applies the HasPrefix predicate on the "packageId" field.

func PackageIdHasSuffix

func PackageIdHasSuffix(v string) predicate.Chaincode

PackageIdHasSuffix applies the HasSuffix predicate on the "packageId" field.

func PackageIdIn

func PackageIdIn(vs ...string) predicate.Chaincode

PackageIdIn applies the In predicate on the "packageId" field.

func PackageIdLT

func PackageIdLT(v string) predicate.Chaincode

PackageIdLT applies the LT predicate on the "packageId" field.

func PackageIdLTE

func PackageIdLTE(v string) predicate.Chaincode

PackageIdLTE applies the LTE predicate on the "packageId" field.

func PackageIdNEQ

func PackageIdNEQ(v string) predicate.Chaincode

PackageIdNEQ applies the NEQ predicate on the "packageId" field.

func PackageIdNotIn

func PackageIdNotIn(vs ...string) predicate.Chaincode

PackageIdNotIn applies the NotIn predicate on the "packageId" 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