keeper

package
v1.4.1-pre Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type ComplianceKeeper added in v1.4.0

type ComplianceKeeper interface {
	// Methods imported from compliance should be defined here
	GetComplianceInfo(
		ctx sdk.Context,
		vid int32,
		pid int32,
		softwareVersion uint32,
		certificationType string,
	) (val compliancetypes.ComplianceInfo, found bool)
}

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,

	dclauthKeeper types.DclauthKeeper,
	complianceKeeper ComplianceKeeper,
) *Keeper

func (Keeper) AddModelVersion

func (k Keeper) AddModelVersion(ctx sdk.Context, vid int32, pid int32, softwareVersion uint32)

AddModelVersion adds a softwareVersion to existing or new ModelVersions.

func (Keeper) GetAllModel

func (k Keeper) GetAllModel(ctx sdk.Context) (list []types.Model)

GetAllModel returns all model.

func (Keeper) GetAllModelVersion

func (k Keeper) GetAllModelVersion(ctx sdk.Context) (list []types.ModelVersion)

GetAllModelVersion returns all modelVersion.

func (Keeper) GetAllModelVersions

func (k Keeper) GetAllModelVersions(ctx sdk.Context) (list []types.ModelVersions)

GetAllModelVersions returns all modelVersions.

func (Keeper) GetAllVendorProducts

func (k Keeper) GetAllVendorProducts(ctx sdk.Context) (list []types.VendorProducts)

GetAllVendorProducts returns all vendorProducts.

func (Keeper) GetModel

func (k Keeper) GetModel(
	ctx sdk.Context,
	vid int32,
	pid int32,
) (val types.Model, found bool)

GetModel returns a model from its index.

func (Keeper) GetModelVersion

func (k Keeper) GetModelVersion(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
) (val types.ModelVersion, found bool)

GetModelVersion returns a modelVersion from its index.

func (Keeper) GetModelVersions

func (k Keeper) GetModelVersions(
	ctx sdk.Context,
	vid int32,
	pid int32,
) (val types.ModelVersions, found bool)

GetModelVersions returns a modelVersions from its index.

func (Keeper) GetVendorProducts

func (k Keeper) GetVendorProducts(
	ctx sdk.Context,
	vid int32,
) (val types.VendorProducts, found bool)

GetVendorProducts returns a vendorProducts from its index.

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) RemoveModel

func (k Keeper) RemoveModel(
	ctx sdk.Context,
	vid int32,
	pid int32,
)

RemoveModel removes a model from the store.

func (Keeper) RemoveModelVersion

func (k Keeper) RemoveModelVersion(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
)

RemoveModelVersion removes a modelVersion from the store.

func (Keeper) RemoveModelVersions

func (k Keeper) RemoveModelVersions(
	ctx sdk.Context,
	vid int32,
	pid int32,
)

RemoveModelVersions removes a modelVersions from the store.

func (Keeper) RemoveVendorProduct

func (k Keeper) RemoveVendorProduct(
	ctx sdk.Context,
	vid int32,
	pid int32,
)

RemoveVendorProduct removes a product from existing VendorProducts.

func (Keeper) RemoveVendorProducts

func (k Keeper) RemoveVendorProducts(
	ctx sdk.Context,
	vid int32,
)

RemoveVendorProducts removes a vendorProducts from the store.

func (*Keeper) SetComplianceKeeper added in v1.1.1

func (k *Keeper) SetComplianceKeeper(complianceKeeper ComplianceKeeper)

func (Keeper) SetModel

func (k Keeper) SetModel(ctx sdk.Context, model types.Model)

SetModel set a specific model in the store from its index.

func (Keeper) SetModelVersion

func (k Keeper) SetModelVersion(ctx sdk.Context, modelVersion types.ModelVersion)

SetModelVersion set a specific modelVersion in the store from its index.

func (Keeper) SetModelVersions

func (k Keeper) SetModelVersions(ctx sdk.Context, modelVersions types.ModelVersions)

SetModelVersions set a specific modelVersions in the store from its index.

func (Keeper) SetVendorProduct

func (k Keeper) SetVendorProduct(
	ctx sdk.Context,
	vid int32,
	product types.Product,
)

SetVendorProduct sets a product to existing or new VendorProducts.

func (Keeper) SetVendorProducts

func (k Keeper) SetVendorProducts(ctx sdk.Context, vendorProducts types.VendorProducts)

SetVendorProducts set a specific vendorProducts in the store from its index.

Jump to

Keyboard shortcuts

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