Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type ComplianceKeeper
- type Keeper
- func (k Keeper) AddModelVersion(ctx sdk.Context, vid int32, pid int32, softwareVersion uint32)
- func (k Keeper) GetAllModel(ctx sdk.Context) (list []types.Model)
- func (k Keeper) GetAllModelVersion(ctx sdk.Context) (list []types.ModelVersion)
- func (k Keeper) GetAllModelVersions(ctx sdk.Context) (list []types.ModelVersions)
- func (k Keeper) GetAllVendorProducts(ctx sdk.Context) (list []types.VendorProducts)
- func (k Keeper) GetModel(ctx sdk.Context, vid int32, pid int32) (val types.Model, found bool)
- func (k Keeper) GetModelVersion(ctx sdk.Context, vid int32, pid int32, softwareVersion uint32) (val types.ModelVersion, found bool)
- func (k Keeper) GetModelVersions(ctx sdk.Context, vid int32, pid int32) (val types.ModelVersions, found bool)
- func (k Keeper) GetVendorProducts(ctx sdk.Context, vid int32) (val types.VendorProducts, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Model(c context.Context, req *types.QueryGetModelRequest) (*types.QueryGetModelResponse, error)
- func (k Keeper) ModelAll(c context.Context, req *types.QueryAllModelRequest) (*types.QueryAllModelResponse, error)
- func (k Keeper) ModelVersion(c context.Context, req *types.QueryGetModelVersionRequest) (*types.QueryGetModelVersionResponse, error)
- func (k Keeper) ModelVersions(c context.Context, req *types.QueryGetModelVersionsRequest) (*types.QueryGetModelVersionsResponse, error)
- func (k Keeper) RemoveModel(ctx sdk.Context, vid int32, pid int32)
- func (k Keeper) RemoveModelVersion(ctx sdk.Context, vid int32, pid int32, softwareVersion uint32)
- func (k Keeper) RemoveModelVersions(ctx sdk.Context, vid int32, pid int32)
- func (k Keeper) RemoveVendorProduct(ctx sdk.Context, vid int32, pid int32)
- func (k Keeper) RemoveVendorProducts(ctx sdk.Context, vid int32)
- func (k *Keeper) SetComplianceKeeper(complianceKeeper ComplianceKeeper)
- func (k Keeper) SetModel(ctx sdk.Context, model types.Model)
- func (k Keeper) SetModelVersion(ctx sdk.Context, modelVersion types.ModelVersion)
- func (k Keeper) SetModelVersions(ctx sdk.Context, modelVersions types.ModelVersions)
- func (k Keeper) SetVendorProduct(ctx sdk.Context, vid int32, product types.Product)
- func (k Keeper) SetVendorProducts(ctx sdk.Context, vendorProducts types.VendorProducts)
- func (k Keeper) VendorProducts(c context.Context, req *types.QueryGetVendorProductsRequest) (*types.QueryGetVendorProductsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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 ¶
AddModelVersion adds a softwareVersion to existing or new ModelVersions.
func (Keeper) GetAllModel ¶
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) 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) Model ¶
func (k Keeper) Model(c context.Context, req *types.QueryGetModelRequest) (*types.QueryGetModelResponse, error)
func (Keeper) ModelAll ¶
func (k Keeper) ModelAll(c context.Context, req *types.QueryAllModelRequest) (*types.QueryAllModelResponse, error)
func (Keeper) ModelVersion ¶
func (k Keeper) ModelVersion(c context.Context, req *types.QueryGetModelVersionRequest) (*types.QueryGetModelVersionResponse, error)
func (Keeper) ModelVersions ¶
func (k Keeper) ModelVersions(c context.Context, req *types.QueryGetModelVersionsRequest) (*types.QueryGetModelVersionsResponse, error)
func (Keeper) RemoveModel ¶
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 ¶
RemoveModelVersions removes a modelVersions from the store.
func (Keeper) RemoveVendorProduct ¶
RemoveVendorProduct removes a product from existing VendorProducts.
func (Keeper) RemoveVendorProducts ¶
RemoveVendorProducts removes a vendorProducts from the store.
func (*Keeper) SetComplianceKeeper ¶ added in v1.1.1
func (k *Keeper) SetComplianceKeeper(complianceKeeper ComplianceKeeper)
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 ¶
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.
func (Keeper) VendorProducts ¶
func (k Keeper) VendorProducts(c context.Context, req *types.QueryGetVendorProductsRequest) (*types.QueryGetVendorProductsResponse, error)