keeper

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 17 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 Keeper

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

func NewKeeper

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

	dclauthKeeper types.DclauthKeeper, modelKeeper types.ModelKeeper,
) *Keeper

func (Keeper) GetAllCertifiedModel

func (k Keeper) GetAllCertifiedModel(ctx sdk.Context) (list []types.CertifiedModel)

GetAllCertifiedModel returns all certifiedModel.

func (Keeper) GetAllComplianceInfo

func (k Keeper) GetAllComplianceInfo(ctx sdk.Context) (list []types.ComplianceInfo)

GetAllComplianceInfo returns all complianceInfo.

func (Keeper) GetAllDeviceSoftwareCompliance added in v0.12.0

func (k Keeper) GetAllDeviceSoftwareCompliance(ctx sdk.Context) (list []types.DeviceSoftwareCompliance)

GetAllDeviceSoftwareCompliance returns all deviceSoftwareCompliance.

func (Keeper) GetAllProvisionalModel

func (k Keeper) GetAllProvisionalModel(ctx sdk.Context) (list []types.ProvisionalModel)

GetAllProvisionalModel returns all provisionalModel.

func (Keeper) GetAllRevokedModel

func (k Keeper) GetAllRevokedModel(ctx sdk.Context) (list []types.RevokedModel)

GetAllRevokedModel returns all revokedModel.

func (Keeper) GetCertifiedModel

func (k Keeper) GetCertifiedModel(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
) (val types.CertifiedModel, found bool)

GetCertifiedModel returns a certifiedModel from its index.

func (Keeper) GetComplianceInfo

func (k Keeper) GetComplianceInfo(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
) (val types.ComplianceInfo, found bool)

GetComplianceInfo returns a complianceInfo from its index.

func (Keeper) GetDeviceSoftwareCompliance added in v0.12.0

func (k Keeper) GetDeviceSoftwareCompliance(
	ctx sdk.Context,
	cDCertificateID string,
) (val types.DeviceSoftwareCompliance, found bool)

GetDeviceSoftwareCompliance returns a deviceSoftwareCompliance from its index.

func (Keeper) GetProvisionalModel

func (k Keeper) GetProvisionalModel(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
) (val types.ProvisionalModel, found bool)

GetProvisionalModel returns a provisionalModel from its index.

func (Keeper) GetRevokedModel

func (k Keeper) GetRevokedModel(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
) (val types.RevokedModel, found bool)

GetRevokedModel returns a revokedModel from its index.

func (Keeper) Logger

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

func (Keeper) RemoveCertifiedModel

func (k Keeper) RemoveCertifiedModel(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
)

RemoveCertifiedModel removes a certifiedModel from the store.

func (Keeper) RemoveComplianceInfo

func (k Keeper) RemoveComplianceInfo(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
)

RemoveComplianceInfo removes a complianceInfo from the store.

func (Keeper) RemoveDeviceSoftwareCompliance added in v0.12.0

func (k Keeper) RemoveDeviceSoftwareCompliance(
	ctx sdk.Context,
	cDCertificateID string,
)

RemoveDeviceSoftwareCompliance removes a deviceSoftwareCompliance from the store.

func (Keeper) RemoveProvisionalModel

func (k Keeper) RemoveProvisionalModel(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
)

RemoveProvisionalModel removes a provisionalModel from the store.

func (Keeper) RemoveRevokedModel

func (k Keeper) RemoveRevokedModel(
	ctx sdk.Context,
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
)

RemoveRevokedModel removes a revokedModel from the store.

func (Keeper) SetCertifiedModel

func (k Keeper) SetCertifiedModel(ctx sdk.Context, certifiedModel types.CertifiedModel)

SetCertifiedModel set a specific certifiedModel in the store from its index.

func (Keeper) SetComplianceInfo

func (k Keeper) SetComplianceInfo(ctx sdk.Context, complianceInfo types.ComplianceInfo)

SetComplianceInfo set a specific complianceInfo in the store from its index.

func (Keeper) SetDeviceSoftwareCompliance added in v0.12.0

func (k Keeper) SetDeviceSoftwareCompliance(ctx sdk.Context, deviceSoftwareCompliance types.DeviceSoftwareCompliance)

SetDeviceSoftwareCompliance set a specific deviceSoftwareCompliance in the store from its index.

func (Keeper) SetProvisionalModel

func (k Keeper) SetProvisionalModel(ctx sdk.Context, provisionalModel types.ProvisionalModel)

SetProvisionalModel set a specific provisionalModel in the store from its index.

func (Keeper) SetRevokedModel

func (k Keeper) SetRevokedModel(ctx sdk.Context, revokedModel types.RevokedModel)

SetRevokedModel set a specific revokedModel in the store from its index.

Jump to

Keyboard shortcuts

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