types

package
v0.6.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name.
	ModuleName = "compliance"

	// StoreKey defines the primary module store key.
	StoreKey = ModuleName

	// RouterKey is the message route for slashing.
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key.
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key.
	MemStoreKey = "mem_compliance"
)
View Source
const (
	ZigbeeCertificationType string = "zigbee"
	MatterCertificationType string = "matter"
)
View Source
const (
	CodeProvisional uint32 = 1
	CodeCertified   uint32 = 2
	CodeRevoked     uint32 = 3
)
View Source
const (
	// CertifiedModelKeyPrefix is the prefix to retrieve all CertifiedModel.
	CertifiedModelKeyPrefix = "CertifiedModel/value/"
)
View Source
const (
	// ComplianceInfoKeyPrefix is the prefix to retrieve all ComplianceInfo.
	ComplianceInfoKeyPrefix = "ComplianceInfo/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index.

View Source
const (
	// ProvisionalModelKeyPrefix is the prefix to retrieve all ProvisionalModel.
	ProvisionalModelKeyPrefix = "ProvisionalModel/value/"
)
View Source
const (
	// RevokedModelKeyPrefix is the prefix to retrieve all RevokedModel.
	RevokedModelKeyPrefix = "RevokedModel/value/"
)
View Source
const TypeMsgCertifyModel = "certify_model"
View Source
const TypeMsgProvisionModel = "provision_model"
View Source
const TypeMsgRevokeModel = "revoke_model"

Variables

View Source
var (
	ErrInvalidLengthCertifiedModel        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCertifiedModel          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCertifiedModel = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthComplianceHistoryItem        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowComplianceHistoryItem          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupComplianceHistoryItem = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthComplianceInfo        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowComplianceInfo          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupComplianceInfo = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrComplianceInfoAlreadyExist     = sdkerrors.Register(ModuleName, 301, "compliance info already exist")
	ErrInconsistentDates              = sdkerrors.Register(ModuleName, 302, "inconsistent dates")
	ErrAlreadyCertified               = sdkerrors.Register(ModuleName, 303, "model already certified")
	ErrAlreadyRevoked                 = sdkerrors.Register(ModuleName, 304, "model already revoked")
	ErrAlreadyProvisional             = sdkerrors.Register(ModuleName, 305, "model already in provisional state")
	ErrModelVersionStringDoesNotMatch = sdkerrors.Register(ModuleName, 306, "model version does not match")
	ErrInvalidTestDateFormat          = sdkerrors.Register(ModuleName, 307, "test date must be in RFC3339 format")
	ErrInvalidCertificationType       = sdkerrors.Register(ModuleName, 308, "invalid certification type")
)

x/compliance module sentinel errors.

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProvisionalModel        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProvisionalModel          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProvisionalModel = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthRevokedModel        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRevokedModel          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRevokedModel = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func CertifiedModelKey

func CertifiedModelKey(
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
) []byte

CertifiedModelKey returns the store key to retrieve a CertifiedModel from the index fields.

func ComplianceInfoKey

func ComplianceInfoKey(
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
) []byte

ComplianceInfoKey returns the store key to retrieve a ComplianceInfo from the index fields.

func IsValidCertificationType

func IsValidCertificationType(certificationType string) bool

func KeyPrefix

func KeyPrefix(p string) []byte

func NewErrAlreadyCertified

func NewErrAlreadyCertified(vid interface{}, pid interface{}, sv interface{}, certificationType interface{}) error

func NewErrAlreadyProvisional

func NewErrAlreadyProvisional(vid interface{}, pid interface{}, sv interface{}, certificationType interface{}) error

func NewErrAlreadyRevoked

func NewErrAlreadyRevoked(vid interface{}, pid interface{}, sv interface{}, certificationType interface{}) error

func NewErrComplianceInfoAlreadyExist

func NewErrComplianceInfoAlreadyExist(vid interface{}, pid interface{}, sv interface{}, certificationType interface{}) error

func NewErrInconsistentDates

func NewErrInconsistentDates(err interface{}) error

func NewErrInvalidCertificationType

func NewErrInvalidCertificationType(certType interface{}, certList interface{}) error

func NewErrInvalidTestDateFormat

func NewErrInvalidTestDateFormat(testDate interface{}) error

func NewErrModelVersionStringDoesNotMatch

func NewErrModelVersionStringDoesNotMatch(vid interface{}, pid interface{},
	softwareVersion interface{}, softwareVersionString interface{}) error

func ProvisionalModelKey

func ProvisionalModelKey(
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
) []byte

ProvisionalModelKey returns the store key to retrieve a ProvisionalModel from the index fields.

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func RevokedModelKey

func RevokedModelKey(
	vid int32,
	pid int32,
	softwareVersion uint32,
	certificationType string,
) []byte

RevokedModelKey returns the store key to retrieve a RevokedModel from the index fields.

Types

type CertificationTypes

type CertificationTypes []string

List of Certification Types

type CertifiedModel

type CertifiedModel struct {
	Vid               int32  `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid               int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion   uint32 `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	CertificationType string `protobuf:"bytes,4,opt,name=certification_type,json=certificationType,proto3" json:"certification_type,omitempty"`
	Value             bool   `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
}

func (*CertifiedModel) Descriptor

func (*CertifiedModel) Descriptor() ([]byte, []int)

func (*CertifiedModel) GetCertificationType

func (m *CertifiedModel) GetCertificationType() string

func (*CertifiedModel) GetPid

func (m *CertifiedModel) GetPid() int32

func (*CertifiedModel) GetSoftwareVersion

func (m *CertifiedModel) GetSoftwareVersion() uint32

func (*CertifiedModel) GetValue

func (m *CertifiedModel) GetValue() bool

func (*CertifiedModel) GetVid

func (m *CertifiedModel) GetVid() int32

func (*CertifiedModel) Marshal

func (m *CertifiedModel) Marshal() (dAtA []byte, err error)

func (*CertifiedModel) MarshalTo

func (m *CertifiedModel) MarshalTo(dAtA []byte) (int, error)

func (*CertifiedModel) MarshalToSizedBuffer

func (m *CertifiedModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CertifiedModel) ProtoMessage

func (*CertifiedModel) ProtoMessage()

func (*CertifiedModel) Reset

func (m *CertifiedModel) Reset()

func (*CertifiedModel) Size

func (m *CertifiedModel) Size() (n int)

func (*CertifiedModel) String

func (m *CertifiedModel) String() string

func (*CertifiedModel) Unmarshal

func (m *CertifiedModel) Unmarshal(dAtA []byte) error

func (*CertifiedModel) XXX_DiscardUnknown

func (m *CertifiedModel) XXX_DiscardUnknown()

func (*CertifiedModel) XXX_Marshal

func (m *CertifiedModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CertifiedModel) XXX_Merge

func (m *CertifiedModel) XXX_Merge(src proto.Message)

func (*CertifiedModel) XXX_Size

func (m *CertifiedModel) XXX_Size() int

func (*CertifiedModel) XXX_Unmarshal

func (m *CertifiedModel) XXX_Unmarshal(b []byte) error

type ComplianceHistoryItem

type ComplianceHistoryItem struct {
	SoftwareVersionCertificationStatus uint32 `` /* 168-byte string literal not displayed */
	Date                               string `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
	Reason                             string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	CDVersionNumber                    uint32 `protobuf:"varint,4,opt,name=c_d_version_number,json=cDVersionNumber,proto3" json:"c_d_version_number,omitempty"`
}

func (*ComplianceHistoryItem) Descriptor

func (*ComplianceHistoryItem) Descriptor() ([]byte, []int)

func (*ComplianceHistoryItem) GetCDVersionNumber

func (m *ComplianceHistoryItem) GetCDVersionNumber() uint32

func (*ComplianceHistoryItem) GetDate

func (m *ComplianceHistoryItem) GetDate() string

func (*ComplianceHistoryItem) GetReason

func (m *ComplianceHistoryItem) GetReason() string

func (*ComplianceHistoryItem) GetSoftwareVersionCertificationStatus

func (m *ComplianceHistoryItem) GetSoftwareVersionCertificationStatus() uint32

func (*ComplianceHistoryItem) Marshal

func (m *ComplianceHistoryItem) Marshal() (dAtA []byte, err error)

func (*ComplianceHistoryItem) MarshalTo

func (m *ComplianceHistoryItem) MarshalTo(dAtA []byte) (int, error)

func (*ComplianceHistoryItem) MarshalToSizedBuffer

func (m *ComplianceHistoryItem) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ComplianceHistoryItem) ProtoMessage

func (*ComplianceHistoryItem) ProtoMessage()

func (*ComplianceHistoryItem) Reset

func (m *ComplianceHistoryItem) Reset()

func (*ComplianceHistoryItem) Size

func (m *ComplianceHistoryItem) Size() (n int)

func (*ComplianceHistoryItem) String

func (m *ComplianceHistoryItem) String() string

func (*ComplianceHistoryItem) Unmarshal

func (m *ComplianceHistoryItem) Unmarshal(dAtA []byte) error

func (*ComplianceHistoryItem) XXX_DiscardUnknown

func (m *ComplianceHistoryItem) XXX_DiscardUnknown()

func (*ComplianceHistoryItem) XXX_Marshal

func (m *ComplianceHistoryItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ComplianceHistoryItem) XXX_Merge

func (m *ComplianceHistoryItem) XXX_Merge(src proto.Message)

func (*ComplianceHistoryItem) XXX_Size

func (m *ComplianceHistoryItem) XXX_Size() int

func (*ComplianceHistoryItem) XXX_Unmarshal

func (m *ComplianceHistoryItem) XXX_Unmarshal(b []byte) error

type ComplianceInfo

type ComplianceInfo struct {
	Vid                                int32                    `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid                                int32                    `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion                    uint32                   `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	CertificationType                  string                   `protobuf:"bytes,4,opt,name=certification_type,json=certificationType,proto3" json:"certification_type,omitempty"`
	SoftwareVersionString              string                   `` /* 126-byte string literal not displayed */
	CDVersionNumber                    uint32                   `protobuf:"varint,6,opt,name=c_d_version_number,json=cDVersionNumber,proto3" json:"c_d_version_number,omitempty"`
	SoftwareVersionCertificationStatus uint32                   `` /* 168-byte string literal not displayed */
	Date                               string                   `protobuf:"bytes,8,opt,name=date,proto3" json:"date,omitempty"`
	Reason                             string                   `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty"`
	Owner                              string                   `protobuf:"bytes,10,opt,name=owner,proto3" json:"owner,omitempty"`
	History                            []*ComplianceHistoryItem `protobuf:"bytes,11,rep,name=history,proto3" json:"history,omitempty"`
}

func (*ComplianceInfo) Descriptor

func (*ComplianceInfo) Descriptor() ([]byte, []int)

func (*ComplianceInfo) GetCDVersionNumber

func (m *ComplianceInfo) GetCDVersionNumber() uint32

func (*ComplianceInfo) GetCertificationType

func (m *ComplianceInfo) GetCertificationType() string

func (*ComplianceInfo) GetDate

func (m *ComplianceInfo) GetDate() string

func (*ComplianceInfo) GetHistory

func (m *ComplianceInfo) GetHistory() []*ComplianceHistoryItem

func (*ComplianceInfo) GetOwner

func (m *ComplianceInfo) GetOwner() string

func (*ComplianceInfo) GetPid

func (m *ComplianceInfo) GetPid() int32

func (*ComplianceInfo) GetReason

func (m *ComplianceInfo) GetReason() string

func (*ComplianceInfo) GetSoftwareVersion

func (m *ComplianceInfo) GetSoftwareVersion() uint32

func (*ComplianceInfo) GetSoftwareVersionCertificationStatus

func (m *ComplianceInfo) GetSoftwareVersionCertificationStatus() uint32

func (*ComplianceInfo) GetSoftwareVersionString

func (m *ComplianceInfo) GetSoftwareVersionString() string

func (*ComplianceInfo) GetVid

func (m *ComplianceInfo) GetVid() int32

func (*ComplianceInfo) Marshal

func (m *ComplianceInfo) Marshal() (dAtA []byte, err error)

func (*ComplianceInfo) MarshalTo

func (m *ComplianceInfo) MarshalTo(dAtA []byte) (int, error)

func (*ComplianceInfo) MarshalToSizedBuffer

func (m *ComplianceInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ComplianceInfo) ProtoMessage

func (*ComplianceInfo) ProtoMessage()

func (*ComplianceInfo) Reset

func (m *ComplianceInfo) Reset()

func (*ComplianceInfo) SetCertifiedStatus

func (d *ComplianceInfo) SetCertifiedStatus(date string, reason string)

func (*ComplianceInfo) SetRevokedStatus

func (d *ComplianceInfo) SetRevokedStatus(date string, reason string)

func (*ComplianceInfo) Size

func (m *ComplianceInfo) Size() (n int)

func (*ComplianceInfo) String

func (m *ComplianceInfo) String() string

func (*ComplianceInfo) Unmarshal

func (m *ComplianceInfo) Unmarshal(dAtA []byte) error

func (*ComplianceInfo) XXX_DiscardUnknown

func (m *ComplianceInfo) XXX_DiscardUnknown()

func (*ComplianceInfo) XXX_Marshal

func (m *ComplianceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ComplianceInfo) XXX_Merge

func (m *ComplianceInfo) XXX_Merge(src proto.Message)

func (*ComplianceInfo) XXX_Size

func (m *ComplianceInfo) XXX_Size() int

func (*ComplianceInfo) XXX_Unmarshal

func (m *ComplianceInfo) XXX_Unmarshal(b []byte) error

type CompliancetestKeeper

type CompliancetestKeeper interface {
	GetTestingResults(ctx sdk.Context, vid int32, pid int32, softwareVersion uint32) (val compliancetesttypes.TestingResults, found bool)
}

type DclauthKeeper

type DclauthKeeper interface {
	HasRole(ctx sdk.Context, addr sdk.AccAddress, roleToCheck dclauthtypes.AccountRole) bool
}

type GenesisState

type GenesisState struct {
	ComplianceInfoList   []ComplianceInfo   `protobuf:"bytes,1,rep,name=complianceInfoList,proto3" json:"complianceInfoList"`
	CertifiedModelList   []CertifiedModel   `protobuf:"bytes,2,rep,name=certifiedModelList,proto3" json:"certifiedModelList"`
	RevokedModelList     []RevokedModel     `protobuf:"bytes,3,rep,name=revokedModelList,proto3" json:"revokedModelList"`
	ProvisionalModelList []ProvisionalModel `protobuf:"bytes,4,rep,name=provisionalModelList,proto3" json:"provisionalModelList"`
}

GenesisState defines the compliance module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetCertifiedModelList

func (m *GenesisState) GetCertifiedModelList() []CertifiedModel

func (*GenesisState) GetComplianceInfoList

func (m *GenesisState) GetComplianceInfoList() []ComplianceInfo

func (*GenesisState) GetProvisionalModelList

func (m *GenesisState) GetProvisionalModelList() []ProvisionalModel

func (*GenesisState) GetRevokedModelList

func (m *GenesisState) GetRevokedModelList() []RevokedModel

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type ModelKeeper

type ModelKeeper interface {
	GetModelVersion(ctx sdk.Context, vid int32, pid int32, softwareVersion uint32) (val modeltypes.ModelVersion, found bool)
}

type MsgCertifyModel

type MsgCertifyModel struct {
	Signer                string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" validate:"required"`
	Vid                   int32  `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty" validate:"gte=1,lte=65535"`
	Pid                   int32  `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"`
	SoftwareVersion       uint32 `protobuf:"varint,4,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	SoftwareVersionString string `` /* 153-byte string literal not displayed */
	CDVersionNumber       uint32 `` /* 138-byte string literal not displayed */
	CertificationDate     string `` /* 132-byte string literal not displayed */
	CertificationType     string `` /* 140-byte string literal not displayed */
	Reason                string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty" validate:"max=102400"`
}

func NewMsgCertifyModel

func NewMsgCertifyModel(signer string, vid int32, pid int32, softwareVersion uint32, softwareVersionString string, cdVersionNumber uint32, certificationDate string, certificationType string, reason string) *MsgCertifyModel

func (*MsgCertifyModel) Descriptor

func (*MsgCertifyModel) Descriptor() ([]byte, []int)

func (*MsgCertifyModel) GetCDVersionNumber

func (m *MsgCertifyModel) GetCDVersionNumber() uint32

func (*MsgCertifyModel) GetCertificationDate

func (m *MsgCertifyModel) GetCertificationDate() string

func (*MsgCertifyModel) GetCertificationType

func (m *MsgCertifyModel) GetCertificationType() string

func (*MsgCertifyModel) GetPid

func (m *MsgCertifyModel) GetPid() int32

func (*MsgCertifyModel) GetReason

func (m *MsgCertifyModel) GetReason() string

func (*MsgCertifyModel) GetSignBytes

func (msg *MsgCertifyModel) GetSignBytes() []byte

func (*MsgCertifyModel) GetSigner

func (m *MsgCertifyModel) GetSigner() string

func (*MsgCertifyModel) GetSigners

func (msg *MsgCertifyModel) GetSigners() []sdk.AccAddress

func (*MsgCertifyModel) GetSoftwareVersion

func (m *MsgCertifyModel) GetSoftwareVersion() uint32

func (*MsgCertifyModel) GetSoftwareVersionString

func (m *MsgCertifyModel) GetSoftwareVersionString() string

func (*MsgCertifyModel) GetVid

func (m *MsgCertifyModel) GetVid() int32

func (*MsgCertifyModel) Marshal

func (m *MsgCertifyModel) Marshal() (dAtA []byte, err error)

func (*MsgCertifyModel) MarshalTo

func (m *MsgCertifyModel) MarshalTo(dAtA []byte) (int, error)

func (*MsgCertifyModel) MarshalToSizedBuffer

func (m *MsgCertifyModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCertifyModel) ProtoMessage

func (*MsgCertifyModel) ProtoMessage()

func (*MsgCertifyModel) Reset

func (m *MsgCertifyModel) Reset()

func (*MsgCertifyModel) Route

func (msg *MsgCertifyModel) Route() string

func (*MsgCertifyModel) Size

func (m *MsgCertifyModel) Size() (n int)

func (*MsgCertifyModel) String

func (m *MsgCertifyModel) String() string

func (*MsgCertifyModel) Type

func (msg *MsgCertifyModel) Type() string

func (*MsgCertifyModel) Unmarshal

func (m *MsgCertifyModel) Unmarshal(dAtA []byte) error

func (*MsgCertifyModel) ValidateBasic

func (msg *MsgCertifyModel) ValidateBasic() error

func (*MsgCertifyModel) XXX_DiscardUnknown

func (m *MsgCertifyModel) XXX_DiscardUnknown()

func (*MsgCertifyModel) XXX_Marshal

func (m *MsgCertifyModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCertifyModel) XXX_Merge

func (m *MsgCertifyModel) XXX_Merge(src proto.Message)

func (*MsgCertifyModel) XXX_Size

func (m *MsgCertifyModel) XXX_Size() int

func (*MsgCertifyModel) XXX_Unmarshal

func (m *MsgCertifyModel) XXX_Unmarshal(b []byte) error

type MsgCertifyModelResponse

type MsgCertifyModelResponse struct {
}

func (*MsgCertifyModelResponse) Descriptor

func (*MsgCertifyModelResponse) Descriptor() ([]byte, []int)

func (*MsgCertifyModelResponse) Marshal

func (m *MsgCertifyModelResponse) Marshal() (dAtA []byte, err error)

func (*MsgCertifyModelResponse) MarshalTo

func (m *MsgCertifyModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCertifyModelResponse) MarshalToSizedBuffer

func (m *MsgCertifyModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCertifyModelResponse) ProtoMessage

func (*MsgCertifyModelResponse) ProtoMessage()

func (*MsgCertifyModelResponse) Reset

func (m *MsgCertifyModelResponse) Reset()

func (*MsgCertifyModelResponse) Size

func (m *MsgCertifyModelResponse) Size() (n int)

func (*MsgCertifyModelResponse) String

func (m *MsgCertifyModelResponse) String() string

func (*MsgCertifyModelResponse) Unmarshal

func (m *MsgCertifyModelResponse) Unmarshal(dAtA []byte) error

func (*MsgCertifyModelResponse) XXX_DiscardUnknown

func (m *MsgCertifyModelResponse) XXX_DiscardUnknown()

func (*MsgCertifyModelResponse) XXX_Marshal

func (m *MsgCertifyModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCertifyModelResponse) XXX_Merge

func (m *MsgCertifyModelResponse) XXX_Merge(src proto.Message)

func (*MsgCertifyModelResponse) XXX_Size

func (m *MsgCertifyModelResponse) XXX_Size() int

func (*MsgCertifyModelResponse) XXX_Unmarshal

func (m *MsgCertifyModelResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	CertifyModel(ctx context.Context, in *MsgCertifyModel, opts ...grpc.CallOption) (*MsgCertifyModelResponse, error)
	RevokeModel(ctx context.Context, in *MsgRevokeModel, opts ...grpc.CallOption) (*MsgRevokeModelResponse, error)
	ProvisionModel(ctx context.Context, in *MsgProvisionModel, opts ...grpc.CallOption) (*MsgProvisionModelResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgProvisionModel

type MsgProvisionModel struct {
	Signer                string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" validate:"required"`
	Vid                   int32  `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty" validate:"gte=1,lte=65535"`
	Pid                   int32  `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"`
	SoftwareVersion       uint32 `protobuf:"varint,4,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	SoftwareVersionString string `` /* 153-byte string literal not displayed */
	CDVersionNumber       uint32 `` /* 138-byte string literal not displayed */
	ProvisionalDate       string `` /* 126-byte string literal not displayed */
	CertificationType     string `` /* 140-byte string literal not displayed */
	Reason                string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty" validate:"max=102400"`
}

func NewMsgProvisionModel

func NewMsgProvisionModel(signer string, vid int32, pid int32, softwareVersion uint32, softwareVersionString string, cDVersionNumber uint32, provisionalDate string, certificationType string, reason string) *MsgProvisionModel

func (*MsgProvisionModel) Descriptor

func (*MsgProvisionModel) Descriptor() ([]byte, []int)

func (*MsgProvisionModel) GetCDVersionNumber

func (m *MsgProvisionModel) GetCDVersionNumber() uint32

func (*MsgProvisionModel) GetCertificationType

func (m *MsgProvisionModel) GetCertificationType() string

func (*MsgProvisionModel) GetPid

func (m *MsgProvisionModel) GetPid() int32

func (*MsgProvisionModel) GetProvisionalDate

func (m *MsgProvisionModel) GetProvisionalDate() string

func (*MsgProvisionModel) GetReason

func (m *MsgProvisionModel) GetReason() string

func (*MsgProvisionModel) GetSignBytes

func (msg *MsgProvisionModel) GetSignBytes() []byte

func (*MsgProvisionModel) GetSigner

func (m *MsgProvisionModel) GetSigner() string

func (*MsgProvisionModel) GetSigners

func (msg *MsgProvisionModel) GetSigners() []sdk.AccAddress

func (*MsgProvisionModel) GetSoftwareVersion

func (m *MsgProvisionModel) GetSoftwareVersion() uint32

func (*MsgProvisionModel) GetSoftwareVersionString

func (m *MsgProvisionModel) GetSoftwareVersionString() string

func (*MsgProvisionModel) GetVid

func (m *MsgProvisionModel) GetVid() int32

func (*MsgProvisionModel) Marshal

func (m *MsgProvisionModel) Marshal() (dAtA []byte, err error)

func (*MsgProvisionModel) MarshalTo

func (m *MsgProvisionModel) MarshalTo(dAtA []byte) (int, error)

func (*MsgProvisionModel) MarshalToSizedBuffer

func (m *MsgProvisionModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgProvisionModel) ProtoMessage

func (*MsgProvisionModel) ProtoMessage()

func (*MsgProvisionModel) Reset

func (m *MsgProvisionModel) Reset()

func (*MsgProvisionModel) Route

func (msg *MsgProvisionModel) Route() string

func (*MsgProvisionModel) Size

func (m *MsgProvisionModel) Size() (n int)

func (*MsgProvisionModel) String

func (m *MsgProvisionModel) String() string

func (*MsgProvisionModel) Type

func (msg *MsgProvisionModel) Type() string

func (*MsgProvisionModel) Unmarshal

func (m *MsgProvisionModel) Unmarshal(dAtA []byte) error

func (*MsgProvisionModel) ValidateBasic

func (msg *MsgProvisionModel) ValidateBasic() error

func (*MsgProvisionModel) XXX_DiscardUnknown

func (m *MsgProvisionModel) XXX_DiscardUnknown()

func (*MsgProvisionModel) XXX_Marshal

func (m *MsgProvisionModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgProvisionModel) XXX_Merge

func (m *MsgProvisionModel) XXX_Merge(src proto.Message)

func (*MsgProvisionModel) XXX_Size

func (m *MsgProvisionModel) XXX_Size() int

func (*MsgProvisionModel) XXX_Unmarshal

func (m *MsgProvisionModel) XXX_Unmarshal(b []byte) error

type MsgProvisionModelResponse

type MsgProvisionModelResponse struct {
}

func (*MsgProvisionModelResponse) Descriptor

func (*MsgProvisionModelResponse) Descriptor() ([]byte, []int)

func (*MsgProvisionModelResponse) Marshal

func (m *MsgProvisionModelResponse) Marshal() (dAtA []byte, err error)

func (*MsgProvisionModelResponse) MarshalTo

func (m *MsgProvisionModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgProvisionModelResponse) MarshalToSizedBuffer

func (m *MsgProvisionModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgProvisionModelResponse) ProtoMessage

func (*MsgProvisionModelResponse) ProtoMessage()

func (*MsgProvisionModelResponse) Reset

func (m *MsgProvisionModelResponse) Reset()

func (*MsgProvisionModelResponse) Size

func (m *MsgProvisionModelResponse) Size() (n int)

func (*MsgProvisionModelResponse) String

func (m *MsgProvisionModelResponse) String() string

func (*MsgProvisionModelResponse) Unmarshal

func (m *MsgProvisionModelResponse) Unmarshal(dAtA []byte) error

func (*MsgProvisionModelResponse) XXX_DiscardUnknown

func (m *MsgProvisionModelResponse) XXX_DiscardUnknown()

func (*MsgProvisionModelResponse) XXX_Marshal

func (m *MsgProvisionModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgProvisionModelResponse) XXX_Merge

func (m *MsgProvisionModelResponse) XXX_Merge(src proto.Message)

func (*MsgProvisionModelResponse) XXX_Size

func (m *MsgProvisionModelResponse) XXX_Size() int

func (*MsgProvisionModelResponse) XXX_Unmarshal

func (m *MsgProvisionModelResponse) XXX_Unmarshal(b []byte) error

type MsgRevokeModel

type MsgRevokeModel struct {
	Signer                string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" validate:"required"`
	Vid                   int32  `protobuf:"varint,2,opt,name=vid,proto3" json:"vid,omitempty" validate:"gte=1,lte=65535"`
	Pid                   int32  `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"`
	SoftwareVersion       uint32 `protobuf:"varint,4,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	SoftwareVersionString string `` /* 153-byte string literal not displayed */
	CDVersionNumber       uint32 `` /* 138-byte string literal not displayed */
	RevocationDate        string `protobuf:"bytes,7,opt,name=revocation_date,json=revocationDate,proto3" json:"revocation_date,omitempty" validate:"required"`
	CertificationType     string `` /* 140-byte string literal not displayed */
	Reason                string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty" validate:"max=102400"`
}

func NewMsgRevokeModel

func NewMsgRevokeModel(signer string, vid int32, pid int32, softwareVersion uint32, softwareVersionString string, cdVersionNumber uint32, revocationDate string, certificationType string, reason string) *MsgRevokeModel

func (*MsgRevokeModel) Descriptor

func (*MsgRevokeModel) Descriptor() ([]byte, []int)

func (*MsgRevokeModel) GetCDVersionNumber

func (m *MsgRevokeModel) GetCDVersionNumber() uint32

func (*MsgRevokeModel) GetCertificationType

func (m *MsgRevokeModel) GetCertificationType() string

func (*MsgRevokeModel) GetPid

func (m *MsgRevokeModel) GetPid() int32

func (*MsgRevokeModel) GetReason

func (m *MsgRevokeModel) GetReason() string

func (*MsgRevokeModel) GetRevocationDate

func (m *MsgRevokeModel) GetRevocationDate() string

func (*MsgRevokeModel) GetSignBytes

func (msg *MsgRevokeModel) GetSignBytes() []byte

func (*MsgRevokeModel) GetSigner

func (m *MsgRevokeModel) GetSigner() string

func (*MsgRevokeModel) GetSigners

func (msg *MsgRevokeModel) GetSigners() []sdk.AccAddress

func (*MsgRevokeModel) GetSoftwareVersion

func (m *MsgRevokeModel) GetSoftwareVersion() uint32

func (*MsgRevokeModel) GetSoftwareVersionString

func (m *MsgRevokeModel) GetSoftwareVersionString() string

func (*MsgRevokeModel) GetVid

func (m *MsgRevokeModel) GetVid() int32

func (*MsgRevokeModel) Marshal

func (m *MsgRevokeModel) Marshal() (dAtA []byte, err error)

func (*MsgRevokeModel) MarshalTo

func (m *MsgRevokeModel) MarshalTo(dAtA []byte) (int, error)

func (*MsgRevokeModel) MarshalToSizedBuffer

func (m *MsgRevokeModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRevokeModel) ProtoMessage

func (*MsgRevokeModel) ProtoMessage()

func (*MsgRevokeModel) Reset

func (m *MsgRevokeModel) Reset()

func (*MsgRevokeModel) Route

func (msg *MsgRevokeModel) Route() string

func (*MsgRevokeModel) Size

func (m *MsgRevokeModel) Size() (n int)

func (*MsgRevokeModel) String

func (m *MsgRevokeModel) String() string

func (*MsgRevokeModel) Type

func (msg *MsgRevokeModel) Type() string

func (*MsgRevokeModel) Unmarshal

func (m *MsgRevokeModel) Unmarshal(dAtA []byte) error

func (*MsgRevokeModel) ValidateBasic

func (msg *MsgRevokeModel) ValidateBasic() error

func (*MsgRevokeModel) XXX_DiscardUnknown

func (m *MsgRevokeModel) XXX_DiscardUnknown()

func (*MsgRevokeModel) XXX_Marshal

func (m *MsgRevokeModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRevokeModel) XXX_Merge

func (m *MsgRevokeModel) XXX_Merge(src proto.Message)

func (*MsgRevokeModel) XXX_Size

func (m *MsgRevokeModel) XXX_Size() int

func (*MsgRevokeModel) XXX_Unmarshal

func (m *MsgRevokeModel) XXX_Unmarshal(b []byte) error

type MsgRevokeModelResponse

type MsgRevokeModelResponse struct {
}

func (*MsgRevokeModelResponse) Descriptor

func (*MsgRevokeModelResponse) Descriptor() ([]byte, []int)

func (*MsgRevokeModelResponse) Marshal

func (m *MsgRevokeModelResponse) Marshal() (dAtA []byte, err error)

func (*MsgRevokeModelResponse) MarshalTo

func (m *MsgRevokeModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRevokeModelResponse) MarshalToSizedBuffer

func (m *MsgRevokeModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRevokeModelResponse) ProtoMessage

func (*MsgRevokeModelResponse) ProtoMessage()

func (*MsgRevokeModelResponse) Reset

func (m *MsgRevokeModelResponse) Reset()

func (*MsgRevokeModelResponse) Size

func (m *MsgRevokeModelResponse) Size() (n int)

func (*MsgRevokeModelResponse) String

func (m *MsgRevokeModelResponse) String() string

func (*MsgRevokeModelResponse) Unmarshal

func (m *MsgRevokeModelResponse) Unmarshal(dAtA []byte) error

func (*MsgRevokeModelResponse) XXX_DiscardUnknown

func (m *MsgRevokeModelResponse) XXX_DiscardUnknown()

func (*MsgRevokeModelResponse) XXX_Marshal

func (m *MsgRevokeModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRevokeModelResponse) XXX_Merge

func (m *MsgRevokeModelResponse) XXX_Merge(src proto.Message)

func (*MsgRevokeModelResponse) XXX_Size

func (m *MsgRevokeModelResponse) XXX_Size() int

func (*MsgRevokeModelResponse) XXX_Unmarshal

func (m *MsgRevokeModelResponse) XXX_Unmarshal(b []byte) error

type MsgServer

MsgServer is the server API for Msg service.

type ProvisionalModel

type ProvisionalModel struct {
	Vid               int32  `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid               int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion   uint32 `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	CertificationType string `protobuf:"bytes,4,opt,name=certification_type,json=certificationType,proto3" json:"certification_type,omitempty"`
	Value             bool   `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
}

func (*ProvisionalModel) Descriptor

func (*ProvisionalModel) Descriptor() ([]byte, []int)

func (*ProvisionalModel) GetCertificationType

func (m *ProvisionalModel) GetCertificationType() string

func (*ProvisionalModel) GetPid

func (m *ProvisionalModel) GetPid() int32

func (*ProvisionalModel) GetSoftwareVersion

func (m *ProvisionalModel) GetSoftwareVersion() uint32

func (*ProvisionalModel) GetValue

func (m *ProvisionalModel) GetValue() bool

func (*ProvisionalModel) GetVid

func (m *ProvisionalModel) GetVid() int32

func (*ProvisionalModel) Marshal

func (m *ProvisionalModel) Marshal() (dAtA []byte, err error)

func (*ProvisionalModel) MarshalTo

func (m *ProvisionalModel) MarshalTo(dAtA []byte) (int, error)

func (*ProvisionalModel) MarshalToSizedBuffer

func (m *ProvisionalModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProvisionalModel) ProtoMessage

func (*ProvisionalModel) ProtoMessage()

func (*ProvisionalModel) Reset

func (m *ProvisionalModel) Reset()

func (*ProvisionalModel) Size

func (m *ProvisionalModel) Size() (n int)

func (*ProvisionalModel) String

func (m *ProvisionalModel) String() string

func (*ProvisionalModel) Unmarshal

func (m *ProvisionalModel) Unmarshal(dAtA []byte) error

func (*ProvisionalModel) XXX_DiscardUnknown

func (m *ProvisionalModel) XXX_DiscardUnknown()

func (*ProvisionalModel) XXX_Marshal

func (m *ProvisionalModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProvisionalModel) XXX_Merge

func (m *ProvisionalModel) XXX_Merge(src proto.Message)

func (*ProvisionalModel) XXX_Size

func (m *ProvisionalModel) XXX_Size() int

func (*ProvisionalModel) XXX_Unmarshal

func (m *ProvisionalModel) XXX_Unmarshal(b []byte) error

type QueryAllCertifiedModelRequest

type QueryAllCertifiedModelRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllCertifiedModelRequest) Descriptor

func (*QueryAllCertifiedModelRequest) Descriptor() ([]byte, []int)

func (*QueryAllCertifiedModelRequest) GetPagination

func (m *QueryAllCertifiedModelRequest) GetPagination() *query.PageRequest

func (*QueryAllCertifiedModelRequest) Marshal

func (m *QueryAllCertifiedModelRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllCertifiedModelRequest) MarshalTo

func (m *QueryAllCertifiedModelRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllCertifiedModelRequest) MarshalToSizedBuffer

func (m *QueryAllCertifiedModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllCertifiedModelRequest) ProtoMessage

func (*QueryAllCertifiedModelRequest) ProtoMessage()

func (*QueryAllCertifiedModelRequest) Reset

func (m *QueryAllCertifiedModelRequest) Reset()

func (*QueryAllCertifiedModelRequest) Size

func (m *QueryAllCertifiedModelRequest) Size() (n int)

func (*QueryAllCertifiedModelRequest) String

func (*QueryAllCertifiedModelRequest) Unmarshal

func (m *QueryAllCertifiedModelRequest) Unmarshal(dAtA []byte) error

func (*QueryAllCertifiedModelRequest) XXX_DiscardUnknown

func (m *QueryAllCertifiedModelRequest) XXX_DiscardUnknown()

func (*QueryAllCertifiedModelRequest) XXX_Marshal

func (m *QueryAllCertifiedModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllCertifiedModelRequest) XXX_Merge

func (m *QueryAllCertifiedModelRequest) XXX_Merge(src proto.Message)

func (*QueryAllCertifiedModelRequest) XXX_Size

func (m *QueryAllCertifiedModelRequest) XXX_Size() int

func (*QueryAllCertifiedModelRequest) XXX_Unmarshal

func (m *QueryAllCertifiedModelRequest) XXX_Unmarshal(b []byte) error

type QueryAllCertifiedModelResponse

type QueryAllCertifiedModelResponse struct {
	CertifiedModel []CertifiedModel    `protobuf:"bytes,1,rep,name=certifiedModel,proto3" json:"certifiedModel"`
	Pagination     *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllCertifiedModelResponse) Descriptor

func (*QueryAllCertifiedModelResponse) Descriptor() ([]byte, []int)

func (*QueryAllCertifiedModelResponse) GetCertifiedModel

func (m *QueryAllCertifiedModelResponse) GetCertifiedModel() []CertifiedModel

func (*QueryAllCertifiedModelResponse) GetPagination

func (*QueryAllCertifiedModelResponse) Marshal

func (m *QueryAllCertifiedModelResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllCertifiedModelResponse) MarshalTo

func (m *QueryAllCertifiedModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllCertifiedModelResponse) MarshalToSizedBuffer

func (m *QueryAllCertifiedModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllCertifiedModelResponse) ProtoMessage

func (*QueryAllCertifiedModelResponse) ProtoMessage()

func (*QueryAllCertifiedModelResponse) Reset

func (m *QueryAllCertifiedModelResponse) Reset()

func (*QueryAllCertifiedModelResponse) Size

func (m *QueryAllCertifiedModelResponse) Size() (n int)

func (*QueryAllCertifiedModelResponse) String

func (*QueryAllCertifiedModelResponse) Unmarshal

func (m *QueryAllCertifiedModelResponse) Unmarshal(dAtA []byte) error

func (*QueryAllCertifiedModelResponse) XXX_DiscardUnknown

func (m *QueryAllCertifiedModelResponse) XXX_DiscardUnknown()

func (*QueryAllCertifiedModelResponse) XXX_Marshal

func (m *QueryAllCertifiedModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllCertifiedModelResponse) XXX_Merge

func (m *QueryAllCertifiedModelResponse) XXX_Merge(src proto.Message)

func (*QueryAllCertifiedModelResponse) XXX_Size

func (m *QueryAllCertifiedModelResponse) XXX_Size() int

func (*QueryAllCertifiedModelResponse) XXX_Unmarshal

func (m *QueryAllCertifiedModelResponse) XXX_Unmarshal(b []byte) error

type QueryAllComplianceInfoRequest

type QueryAllComplianceInfoRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllComplianceInfoRequest) Descriptor

func (*QueryAllComplianceInfoRequest) Descriptor() ([]byte, []int)

func (*QueryAllComplianceInfoRequest) GetPagination

func (m *QueryAllComplianceInfoRequest) GetPagination() *query.PageRequest

func (*QueryAllComplianceInfoRequest) Marshal

func (m *QueryAllComplianceInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllComplianceInfoRequest) MarshalTo

func (m *QueryAllComplianceInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllComplianceInfoRequest) MarshalToSizedBuffer

func (m *QueryAllComplianceInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllComplianceInfoRequest) ProtoMessage

func (*QueryAllComplianceInfoRequest) ProtoMessage()

func (*QueryAllComplianceInfoRequest) Reset

func (m *QueryAllComplianceInfoRequest) Reset()

func (*QueryAllComplianceInfoRequest) Size

func (m *QueryAllComplianceInfoRequest) Size() (n int)

func (*QueryAllComplianceInfoRequest) String

func (*QueryAllComplianceInfoRequest) Unmarshal

func (m *QueryAllComplianceInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryAllComplianceInfoRequest) XXX_DiscardUnknown

func (m *QueryAllComplianceInfoRequest) XXX_DiscardUnknown()

func (*QueryAllComplianceInfoRequest) XXX_Marshal

func (m *QueryAllComplianceInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllComplianceInfoRequest) XXX_Merge

func (m *QueryAllComplianceInfoRequest) XXX_Merge(src proto.Message)

func (*QueryAllComplianceInfoRequest) XXX_Size

func (m *QueryAllComplianceInfoRequest) XXX_Size() int

func (*QueryAllComplianceInfoRequest) XXX_Unmarshal

func (m *QueryAllComplianceInfoRequest) XXX_Unmarshal(b []byte) error

type QueryAllComplianceInfoResponse

type QueryAllComplianceInfoResponse struct {
	ComplianceInfo []ComplianceInfo    `protobuf:"bytes,1,rep,name=complianceInfo,proto3" json:"complianceInfo"`
	Pagination     *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllComplianceInfoResponse) Descriptor

func (*QueryAllComplianceInfoResponse) Descriptor() ([]byte, []int)

func (*QueryAllComplianceInfoResponse) GetComplianceInfo

func (m *QueryAllComplianceInfoResponse) GetComplianceInfo() []ComplianceInfo

func (*QueryAllComplianceInfoResponse) GetPagination

func (*QueryAllComplianceInfoResponse) Marshal

func (m *QueryAllComplianceInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllComplianceInfoResponse) MarshalTo

func (m *QueryAllComplianceInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllComplianceInfoResponse) MarshalToSizedBuffer

func (m *QueryAllComplianceInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllComplianceInfoResponse) ProtoMessage

func (*QueryAllComplianceInfoResponse) ProtoMessage()

func (*QueryAllComplianceInfoResponse) Reset

func (m *QueryAllComplianceInfoResponse) Reset()

func (*QueryAllComplianceInfoResponse) Size

func (m *QueryAllComplianceInfoResponse) Size() (n int)

func (*QueryAllComplianceInfoResponse) String

func (*QueryAllComplianceInfoResponse) Unmarshal

func (m *QueryAllComplianceInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryAllComplianceInfoResponse) XXX_DiscardUnknown

func (m *QueryAllComplianceInfoResponse) XXX_DiscardUnknown()

func (*QueryAllComplianceInfoResponse) XXX_Marshal

func (m *QueryAllComplianceInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllComplianceInfoResponse) XXX_Merge

func (m *QueryAllComplianceInfoResponse) XXX_Merge(src proto.Message)

func (*QueryAllComplianceInfoResponse) XXX_Size

func (m *QueryAllComplianceInfoResponse) XXX_Size() int

func (*QueryAllComplianceInfoResponse) XXX_Unmarshal

func (m *QueryAllComplianceInfoResponse) XXX_Unmarshal(b []byte) error

type QueryAllProvisionalModelRequest

type QueryAllProvisionalModelRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllProvisionalModelRequest) Descriptor

func (*QueryAllProvisionalModelRequest) Descriptor() ([]byte, []int)

func (*QueryAllProvisionalModelRequest) GetPagination

func (*QueryAllProvisionalModelRequest) Marshal

func (m *QueryAllProvisionalModelRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllProvisionalModelRequest) MarshalTo

func (m *QueryAllProvisionalModelRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllProvisionalModelRequest) MarshalToSizedBuffer

func (m *QueryAllProvisionalModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllProvisionalModelRequest) ProtoMessage

func (*QueryAllProvisionalModelRequest) ProtoMessage()

func (*QueryAllProvisionalModelRequest) Reset

func (*QueryAllProvisionalModelRequest) Size

func (m *QueryAllProvisionalModelRequest) Size() (n int)

func (*QueryAllProvisionalModelRequest) String

func (*QueryAllProvisionalModelRequest) Unmarshal

func (m *QueryAllProvisionalModelRequest) Unmarshal(dAtA []byte) error

func (*QueryAllProvisionalModelRequest) XXX_DiscardUnknown

func (m *QueryAllProvisionalModelRequest) XXX_DiscardUnknown()

func (*QueryAllProvisionalModelRequest) XXX_Marshal

func (m *QueryAllProvisionalModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllProvisionalModelRequest) XXX_Merge

func (m *QueryAllProvisionalModelRequest) XXX_Merge(src proto.Message)

func (*QueryAllProvisionalModelRequest) XXX_Size

func (m *QueryAllProvisionalModelRequest) XXX_Size() int

func (*QueryAllProvisionalModelRequest) XXX_Unmarshal

func (m *QueryAllProvisionalModelRequest) XXX_Unmarshal(b []byte) error

type QueryAllProvisionalModelResponse

type QueryAllProvisionalModelResponse struct {
	ProvisionalModel []ProvisionalModel  `protobuf:"bytes,1,rep,name=provisionalModel,proto3" json:"provisionalModel"`
	Pagination       *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllProvisionalModelResponse) Descriptor

func (*QueryAllProvisionalModelResponse) Descriptor() ([]byte, []int)

func (*QueryAllProvisionalModelResponse) GetPagination

func (*QueryAllProvisionalModelResponse) GetProvisionalModel

func (m *QueryAllProvisionalModelResponse) GetProvisionalModel() []ProvisionalModel

func (*QueryAllProvisionalModelResponse) Marshal

func (m *QueryAllProvisionalModelResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllProvisionalModelResponse) MarshalTo

func (m *QueryAllProvisionalModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllProvisionalModelResponse) MarshalToSizedBuffer

func (m *QueryAllProvisionalModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllProvisionalModelResponse) ProtoMessage

func (*QueryAllProvisionalModelResponse) ProtoMessage()

func (*QueryAllProvisionalModelResponse) Reset

func (*QueryAllProvisionalModelResponse) Size

func (m *QueryAllProvisionalModelResponse) Size() (n int)

func (*QueryAllProvisionalModelResponse) String

func (*QueryAllProvisionalModelResponse) Unmarshal

func (m *QueryAllProvisionalModelResponse) Unmarshal(dAtA []byte) error

func (*QueryAllProvisionalModelResponse) XXX_DiscardUnknown

func (m *QueryAllProvisionalModelResponse) XXX_DiscardUnknown()

func (*QueryAllProvisionalModelResponse) XXX_Marshal

func (m *QueryAllProvisionalModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllProvisionalModelResponse) XXX_Merge

func (*QueryAllProvisionalModelResponse) XXX_Size

func (m *QueryAllProvisionalModelResponse) XXX_Size() int

func (*QueryAllProvisionalModelResponse) XXX_Unmarshal

func (m *QueryAllProvisionalModelResponse) XXX_Unmarshal(b []byte) error

type QueryAllRevokedModelRequest

type QueryAllRevokedModelRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllRevokedModelRequest) Descriptor

func (*QueryAllRevokedModelRequest) Descriptor() ([]byte, []int)

func (*QueryAllRevokedModelRequest) GetPagination

func (m *QueryAllRevokedModelRequest) GetPagination() *query.PageRequest

func (*QueryAllRevokedModelRequest) Marshal

func (m *QueryAllRevokedModelRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllRevokedModelRequest) MarshalTo

func (m *QueryAllRevokedModelRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllRevokedModelRequest) MarshalToSizedBuffer

func (m *QueryAllRevokedModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllRevokedModelRequest) ProtoMessage

func (*QueryAllRevokedModelRequest) ProtoMessage()

func (*QueryAllRevokedModelRequest) Reset

func (m *QueryAllRevokedModelRequest) Reset()

func (*QueryAllRevokedModelRequest) Size

func (m *QueryAllRevokedModelRequest) Size() (n int)

func (*QueryAllRevokedModelRequest) String

func (m *QueryAllRevokedModelRequest) String() string

func (*QueryAllRevokedModelRequest) Unmarshal

func (m *QueryAllRevokedModelRequest) Unmarshal(dAtA []byte) error

func (*QueryAllRevokedModelRequest) XXX_DiscardUnknown

func (m *QueryAllRevokedModelRequest) XXX_DiscardUnknown()

func (*QueryAllRevokedModelRequest) XXX_Marshal

func (m *QueryAllRevokedModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllRevokedModelRequest) XXX_Merge

func (m *QueryAllRevokedModelRequest) XXX_Merge(src proto.Message)

func (*QueryAllRevokedModelRequest) XXX_Size

func (m *QueryAllRevokedModelRequest) XXX_Size() int

func (*QueryAllRevokedModelRequest) XXX_Unmarshal

func (m *QueryAllRevokedModelRequest) XXX_Unmarshal(b []byte) error

type QueryAllRevokedModelResponse

type QueryAllRevokedModelResponse struct {
	RevokedModel []RevokedModel      `protobuf:"bytes,1,rep,name=revokedModel,proto3" json:"revokedModel"`
	Pagination   *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllRevokedModelResponse) Descriptor

func (*QueryAllRevokedModelResponse) Descriptor() ([]byte, []int)

func (*QueryAllRevokedModelResponse) GetPagination

func (m *QueryAllRevokedModelResponse) GetPagination() *query.PageResponse

func (*QueryAllRevokedModelResponse) GetRevokedModel

func (m *QueryAllRevokedModelResponse) GetRevokedModel() []RevokedModel

func (*QueryAllRevokedModelResponse) Marshal

func (m *QueryAllRevokedModelResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllRevokedModelResponse) MarshalTo

func (m *QueryAllRevokedModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllRevokedModelResponse) MarshalToSizedBuffer

func (m *QueryAllRevokedModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllRevokedModelResponse) ProtoMessage

func (*QueryAllRevokedModelResponse) ProtoMessage()

func (*QueryAllRevokedModelResponse) Reset

func (m *QueryAllRevokedModelResponse) Reset()

func (*QueryAllRevokedModelResponse) Size

func (m *QueryAllRevokedModelResponse) Size() (n int)

func (*QueryAllRevokedModelResponse) String

func (*QueryAllRevokedModelResponse) Unmarshal

func (m *QueryAllRevokedModelResponse) Unmarshal(dAtA []byte) error

func (*QueryAllRevokedModelResponse) XXX_DiscardUnknown

func (m *QueryAllRevokedModelResponse) XXX_DiscardUnknown()

func (*QueryAllRevokedModelResponse) XXX_Marshal

func (m *QueryAllRevokedModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllRevokedModelResponse) XXX_Merge

func (m *QueryAllRevokedModelResponse) XXX_Merge(src proto.Message)

func (*QueryAllRevokedModelResponse) XXX_Size

func (m *QueryAllRevokedModelResponse) XXX_Size() int

func (*QueryAllRevokedModelResponse) XXX_Unmarshal

func (m *QueryAllRevokedModelResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Queries a ComplianceInfo by index.
	ComplianceInfo(ctx context.Context, in *QueryGetComplianceInfoRequest, opts ...grpc.CallOption) (*QueryGetComplianceInfoResponse, error)
	// Queries a list of ComplianceInfo items.
	ComplianceInfoAll(ctx context.Context, in *QueryAllComplianceInfoRequest, opts ...grpc.CallOption) (*QueryAllComplianceInfoResponse, error)
	// Queries a CertifiedModel by index.
	CertifiedModel(ctx context.Context, in *QueryGetCertifiedModelRequest, opts ...grpc.CallOption) (*QueryGetCertifiedModelResponse, error)
	// Queries a list of CertifiedModel items.
	CertifiedModelAll(ctx context.Context, in *QueryAllCertifiedModelRequest, opts ...grpc.CallOption) (*QueryAllCertifiedModelResponse, error)
	// Queries a RevokedModel by index.
	RevokedModel(ctx context.Context, in *QueryGetRevokedModelRequest, opts ...grpc.CallOption) (*QueryGetRevokedModelResponse, error)
	// Queries a list of RevokedModel items.
	RevokedModelAll(ctx context.Context, in *QueryAllRevokedModelRequest, opts ...grpc.CallOption) (*QueryAllRevokedModelResponse, error)
	// Queries a ProvisionalModel by index.
	ProvisionalModel(ctx context.Context, in *QueryGetProvisionalModelRequest, opts ...grpc.CallOption) (*QueryGetProvisionalModelResponse, error)
	// Queries a list of ProvisionalModel items.
	ProvisionalModelAll(ctx context.Context, in *QueryAllProvisionalModelRequest, opts ...grpc.CallOption) (*QueryAllProvisionalModelResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGetCertifiedModelRequest

type QueryGetCertifiedModelRequest struct {
	Vid               int32  `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid               int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion   uint32 `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	CertificationType string `protobuf:"bytes,4,opt,name=certification_type,json=certificationType,proto3" json:"certification_type,omitempty"`
}

func (*QueryGetCertifiedModelRequest) Descriptor

func (*QueryGetCertifiedModelRequest) Descriptor() ([]byte, []int)

func (*QueryGetCertifiedModelRequest) GetCertificationType

func (m *QueryGetCertifiedModelRequest) GetCertificationType() string

func (*QueryGetCertifiedModelRequest) GetPid

func (*QueryGetCertifiedModelRequest) GetSoftwareVersion

func (m *QueryGetCertifiedModelRequest) GetSoftwareVersion() uint32

func (*QueryGetCertifiedModelRequest) GetVid

func (*QueryGetCertifiedModelRequest) Marshal

func (m *QueryGetCertifiedModelRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetCertifiedModelRequest) MarshalTo

func (m *QueryGetCertifiedModelRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetCertifiedModelRequest) MarshalToSizedBuffer

func (m *QueryGetCertifiedModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetCertifiedModelRequest) ProtoMessage

func (*QueryGetCertifiedModelRequest) ProtoMessage()

func (*QueryGetCertifiedModelRequest) Reset

func (m *QueryGetCertifiedModelRequest) Reset()

func (*QueryGetCertifiedModelRequest) Size

func (m *QueryGetCertifiedModelRequest) Size() (n int)

func (*QueryGetCertifiedModelRequest) String

func (*QueryGetCertifiedModelRequest) Unmarshal

func (m *QueryGetCertifiedModelRequest) Unmarshal(dAtA []byte) error

func (*QueryGetCertifiedModelRequest) XXX_DiscardUnknown

func (m *QueryGetCertifiedModelRequest) XXX_DiscardUnknown()

func (*QueryGetCertifiedModelRequest) XXX_Marshal

func (m *QueryGetCertifiedModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetCertifiedModelRequest) XXX_Merge

func (m *QueryGetCertifiedModelRequest) XXX_Merge(src proto.Message)

func (*QueryGetCertifiedModelRequest) XXX_Size

func (m *QueryGetCertifiedModelRequest) XXX_Size() int

func (*QueryGetCertifiedModelRequest) XXX_Unmarshal

func (m *QueryGetCertifiedModelRequest) XXX_Unmarshal(b []byte) error

type QueryGetCertifiedModelResponse

type QueryGetCertifiedModelResponse struct {
	CertifiedModel CertifiedModel `protobuf:"bytes,1,opt,name=certifiedModel,proto3" json:"certifiedModel"`
}

func (*QueryGetCertifiedModelResponse) Descriptor

func (*QueryGetCertifiedModelResponse) Descriptor() ([]byte, []int)

func (*QueryGetCertifiedModelResponse) GetCertifiedModel

func (m *QueryGetCertifiedModelResponse) GetCertifiedModel() CertifiedModel

func (*QueryGetCertifiedModelResponse) Marshal

func (m *QueryGetCertifiedModelResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetCertifiedModelResponse) MarshalTo

func (m *QueryGetCertifiedModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetCertifiedModelResponse) MarshalToSizedBuffer

func (m *QueryGetCertifiedModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetCertifiedModelResponse) ProtoMessage

func (*QueryGetCertifiedModelResponse) ProtoMessage()

func (*QueryGetCertifiedModelResponse) Reset

func (m *QueryGetCertifiedModelResponse) Reset()

func (*QueryGetCertifiedModelResponse) Size

func (m *QueryGetCertifiedModelResponse) Size() (n int)

func (*QueryGetCertifiedModelResponse) String

func (*QueryGetCertifiedModelResponse) Unmarshal

func (m *QueryGetCertifiedModelResponse) Unmarshal(dAtA []byte) error

func (*QueryGetCertifiedModelResponse) XXX_DiscardUnknown

func (m *QueryGetCertifiedModelResponse) XXX_DiscardUnknown()

func (*QueryGetCertifiedModelResponse) XXX_Marshal

func (m *QueryGetCertifiedModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetCertifiedModelResponse) XXX_Merge

func (m *QueryGetCertifiedModelResponse) XXX_Merge(src proto.Message)

func (*QueryGetCertifiedModelResponse) XXX_Size

func (m *QueryGetCertifiedModelResponse) XXX_Size() int

func (*QueryGetCertifiedModelResponse) XXX_Unmarshal

func (m *QueryGetCertifiedModelResponse) XXX_Unmarshal(b []byte) error

type QueryGetComplianceInfoRequest

type QueryGetComplianceInfoRequest struct {
	Vid               int32  `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid               int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion   uint32 `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	CertificationType string `protobuf:"bytes,4,opt,name=certification_type,json=certificationType,proto3" json:"certification_type,omitempty"`
}

func (*QueryGetComplianceInfoRequest) Descriptor

func (*QueryGetComplianceInfoRequest) Descriptor() ([]byte, []int)

func (*QueryGetComplianceInfoRequest) GetCertificationType

func (m *QueryGetComplianceInfoRequest) GetCertificationType() string

func (*QueryGetComplianceInfoRequest) GetPid

func (*QueryGetComplianceInfoRequest) GetSoftwareVersion

func (m *QueryGetComplianceInfoRequest) GetSoftwareVersion() uint32

func (*QueryGetComplianceInfoRequest) GetVid

func (*QueryGetComplianceInfoRequest) Marshal

func (m *QueryGetComplianceInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetComplianceInfoRequest) MarshalTo

func (m *QueryGetComplianceInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetComplianceInfoRequest) MarshalToSizedBuffer

func (m *QueryGetComplianceInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetComplianceInfoRequest) ProtoMessage

func (*QueryGetComplianceInfoRequest) ProtoMessage()

func (*QueryGetComplianceInfoRequest) Reset

func (m *QueryGetComplianceInfoRequest) Reset()

func (*QueryGetComplianceInfoRequest) Size

func (m *QueryGetComplianceInfoRequest) Size() (n int)

func (*QueryGetComplianceInfoRequest) String

func (*QueryGetComplianceInfoRequest) Unmarshal

func (m *QueryGetComplianceInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryGetComplianceInfoRequest) XXX_DiscardUnknown

func (m *QueryGetComplianceInfoRequest) XXX_DiscardUnknown()

func (*QueryGetComplianceInfoRequest) XXX_Marshal

func (m *QueryGetComplianceInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetComplianceInfoRequest) XXX_Merge

func (m *QueryGetComplianceInfoRequest) XXX_Merge(src proto.Message)

func (*QueryGetComplianceInfoRequest) XXX_Size

func (m *QueryGetComplianceInfoRequest) XXX_Size() int

func (*QueryGetComplianceInfoRequest) XXX_Unmarshal

func (m *QueryGetComplianceInfoRequest) XXX_Unmarshal(b []byte) error

type QueryGetComplianceInfoResponse

type QueryGetComplianceInfoResponse struct {
	ComplianceInfo ComplianceInfo `protobuf:"bytes,1,opt,name=complianceInfo,proto3" json:"complianceInfo"`
}

func (*QueryGetComplianceInfoResponse) Descriptor

func (*QueryGetComplianceInfoResponse) Descriptor() ([]byte, []int)

func (*QueryGetComplianceInfoResponse) GetComplianceInfo

func (m *QueryGetComplianceInfoResponse) GetComplianceInfo() ComplianceInfo

func (*QueryGetComplianceInfoResponse) Marshal

func (m *QueryGetComplianceInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetComplianceInfoResponse) MarshalTo

func (m *QueryGetComplianceInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetComplianceInfoResponse) MarshalToSizedBuffer

func (m *QueryGetComplianceInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetComplianceInfoResponse) ProtoMessage

func (*QueryGetComplianceInfoResponse) ProtoMessage()

func (*QueryGetComplianceInfoResponse) Reset

func (m *QueryGetComplianceInfoResponse) Reset()

func (*QueryGetComplianceInfoResponse) Size

func (m *QueryGetComplianceInfoResponse) Size() (n int)

func (*QueryGetComplianceInfoResponse) String

func (*QueryGetComplianceInfoResponse) Unmarshal

func (m *QueryGetComplianceInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryGetComplianceInfoResponse) XXX_DiscardUnknown

func (m *QueryGetComplianceInfoResponse) XXX_DiscardUnknown()

func (*QueryGetComplianceInfoResponse) XXX_Marshal

func (m *QueryGetComplianceInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetComplianceInfoResponse) XXX_Merge

func (m *QueryGetComplianceInfoResponse) XXX_Merge(src proto.Message)

func (*QueryGetComplianceInfoResponse) XXX_Size

func (m *QueryGetComplianceInfoResponse) XXX_Size() int

func (*QueryGetComplianceInfoResponse) XXX_Unmarshal

func (m *QueryGetComplianceInfoResponse) XXX_Unmarshal(b []byte) error

type QueryGetProvisionalModelRequest

type QueryGetProvisionalModelRequest struct {
	Vid               int32  `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid               int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion   uint32 `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	CertificationType string `protobuf:"bytes,4,opt,name=certification_type,json=certificationType,proto3" json:"certification_type,omitempty"`
}

func (*QueryGetProvisionalModelRequest) Descriptor

func (*QueryGetProvisionalModelRequest) Descriptor() ([]byte, []int)

func (*QueryGetProvisionalModelRequest) GetCertificationType

func (m *QueryGetProvisionalModelRequest) GetCertificationType() string

func (*QueryGetProvisionalModelRequest) GetPid

func (*QueryGetProvisionalModelRequest) GetSoftwareVersion

func (m *QueryGetProvisionalModelRequest) GetSoftwareVersion() uint32

func (*QueryGetProvisionalModelRequest) GetVid

func (*QueryGetProvisionalModelRequest) Marshal

func (m *QueryGetProvisionalModelRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetProvisionalModelRequest) MarshalTo

func (m *QueryGetProvisionalModelRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetProvisionalModelRequest) MarshalToSizedBuffer

func (m *QueryGetProvisionalModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetProvisionalModelRequest) ProtoMessage

func (*QueryGetProvisionalModelRequest) ProtoMessage()

func (*QueryGetProvisionalModelRequest) Reset

func (*QueryGetProvisionalModelRequest) Size

func (m *QueryGetProvisionalModelRequest) Size() (n int)

func (*QueryGetProvisionalModelRequest) String

func (*QueryGetProvisionalModelRequest) Unmarshal

func (m *QueryGetProvisionalModelRequest) Unmarshal(dAtA []byte) error

func (*QueryGetProvisionalModelRequest) XXX_DiscardUnknown

func (m *QueryGetProvisionalModelRequest) XXX_DiscardUnknown()

func (*QueryGetProvisionalModelRequest) XXX_Marshal

func (m *QueryGetProvisionalModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetProvisionalModelRequest) XXX_Merge

func (m *QueryGetProvisionalModelRequest) XXX_Merge(src proto.Message)

func (*QueryGetProvisionalModelRequest) XXX_Size

func (m *QueryGetProvisionalModelRequest) XXX_Size() int

func (*QueryGetProvisionalModelRequest) XXX_Unmarshal

func (m *QueryGetProvisionalModelRequest) XXX_Unmarshal(b []byte) error

type QueryGetProvisionalModelResponse

type QueryGetProvisionalModelResponse struct {
	ProvisionalModel ProvisionalModel `protobuf:"bytes,1,opt,name=provisionalModel,proto3" json:"provisionalModel"`
}

func (*QueryGetProvisionalModelResponse) Descriptor

func (*QueryGetProvisionalModelResponse) Descriptor() ([]byte, []int)

func (*QueryGetProvisionalModelResponse) GetProvisionalModel

func (m *QueryGetProvisionalModelResponse) GetProvisionalModel() ProvisionalModel

func (*QueryGetProvisionalModelResponse) Marshal

func (m *QueryGetProvisionalModelResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetProvisionalModelResponse) MarshalTo

func (m *QueryGetProvisionalModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetProvisionalModelResponse) MarshalToSizedBuffer

func (m *QueryGetProvisionalModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetProvisionalModelResponse) ProtoMessage

func (*QueryGetProvisionalModelResponse) ProtoMessage()

func (*QueryGetProvisionalModelResponse) Reset

func (*QueryGetProvisionalModelResponse) Size

func (m *QueryGetProvisionalModelResponse) Size() (n int)

func (*QueryGetProvisionalModelResponse) String

func (*QueryGetProvisionalModelResponse) Unmarshal

func (m *QueryGetProvisionalModelResponse) Unmarshal(dAtA []byte) error

func (*QueryGetProvisionalModelResponse) XXX_DiscardUnknown

func (m *QueryGetProvisionalModelResponse) XXX_DiscardUnknown()

func (*QueryGetProvisionalModelResponse) XXX_Marshal

func (m *QueryGetProvisionalModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetProvisionalModelResponse) XXX_Merge

func (*QueryGetProvisionalModelResponse) XXX_Size

func (m *QueryGetProvisionalModelResponse) XXX_Size() int

func (*QueryGetProvisionalModelResponse) XXX_Unmarshal

func (m *QueryGetProvisionalModelResponse) XXX_Unmarshal(b []byte) error

type QueryGetRevokedModelRequest

type QueryGetRevokedModelRequest struct {
	Vid               int32  `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid               int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion   uint32 `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	CertificationType string `protobuf:"bytes,4,opt,name=certification_type,json=certificationType,proto3" json:"certification_type,omitempty"`
}

func (*QueryGetRevokedModelRequest) Descriptor

func (*QueryGetRevokedModelRequest) Descriptor() ([]byte, []int)

func (*QueryGetRevokedModelRequest) GetCertificationType

func (m *QueryGetRevokedModelRequest) GetCertificationType() string

func (*QueryGetRevokedModelRequest) GetPid

func (m *QueryGetRevokedModelRequest) GetPid() int32

func (*QueryGetRevokedModelRequest) GetSoftwareVersion

func (m *QueryGetRevokedModelRequest) GetSoftwareVersion() uint32

func (*QueryGetRevokedModelRequest) GetVid

func (m *QueryGetRevokedModelRequest) GetVid() int32

func (*QueryGetRevokedModelRequest) Marshal

func (m *QueryGetRevokedModelRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetRevokedModelRequest) MarshalTo

func (m *QueryGetRevokedModelRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetRevokedModelRequest) MarshalToSizedBuffer

func (m *QueryGetRevokedModelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetRevokedModelRequest) ProtoMessage

func (*QueryGetRevokedModelRequest) ProtoMessage()

func (*QueryGetRevokedModelRequest) Reset

func (m *QueryGetRevokedModelRequest) Reset()

func (*QueryGetRevokedModelRequest) Size

func (m *QueryGetRevokedModelRequest) Size() (n int)

func (*QueryGetRevokedModelRequest) String

func (m *QueryGetRevokedModelRequest) String() string

func (*QueryGetRevokedModelRequest) Unmarshal

func (m *QueryGetRevokedModelRequest) Unmarshal(dAtA []byte) error

func (*QueryGetRevokedModelRequest) XXX_DiscardUnknown

func (m *QueryGetRevokedModelRequest) XXX_DiscardUnknown()

func (*QueryGetRevokedModelRequest) XXX_Marshal

func (m *QueryGetRevokedModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetRevokedModelRequest) XXX_Merge

func (m *QueryGetRevokedModelRequest) XXX_Merge(src proto.Message)

func (*QueryGetRevokedModelRequest) XXX_Size

func (m *QueryGetRevokedModelRequest) XXX_Size() int

func (*QueryGetRevokedModelRequest) XXX_Unmarshal

func (m *QueryGetRevokedModelRequest) XXX_Unmarshal(b []byte) error

type QueryGetRevokedModelResponse

type QueryGetRevokedModelResponse struct {
	RevokedModel RevokedModel `protobuf:"bytes,1,opt,name=revokedModel,proto3" json:"revokedModel"`
}

func (*QueryGetRevokedModelResponse) Descriptor

func (*QueryGetRevokedModelResponse) Descriptor() ([]byte, []int)

func (*QueryGetRevokedModelResponse) GetRevokedModel

func (m *QueryGetRevokedModelResponse) GetRevokedModel() RevokedModel

func (*QueryGetRevokedModelResponse) Marshal

func (m *QueryGetRevokedModelResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetRevokedModelResponse) MarshalTo

func (m *QueryGetRevokedModelResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetRevokedModelResponse) MarshalToSizedBuffer

func (m *QueryGetRevokedModelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetRevokedModelResponse) ProtoMessage

func (*QueryGetRevokedModelResponse) ProtoMessage()

func (*QueryGetRevokedModelResponse) Reset

func (m *QueryGetRevokedModelResponse) Reset()

func (*QueryGetRevokedModelResponse) Size

func (m *QueryGetRevokedModelResponse) Size() (n int)

func (*QueryGetRevokedModelResponse) String

func (*QueryGetRevokedModelResponse) Unmarshal

func (m *QueryGetRevokedModelResponse) Unmarshal(dAtA []byte) error

func (*QueryGetRevokedModelResponse) XXX_DiscardUnknown

func (m *QueryGetRevokedModelResponse) XXX_DiscardUnknown()

func (*QueryGetRevokedModelResponse) XXX_Marshal

func (m *QueryGetRevokedModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetRevokedModelResponse) XXX_Merge

func (m *QueryGetRevokedModelResponse) XXX_Merge(src proto.Message)

func (*QueryGetRevokedModelResponse) XXX_Size

func (m *QueryGetRevokedModelResponse) XXX_Size() int

func (*QueryGetRevokedModelResponse) XXX_Unmarshal

func (m *QueryGetRevokedModelResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Queries a ComplianceInfo by index.
	ComplianceInfo(context.Context, *QueryGetComplianceInfoRequest) (*QueryGetComplianceInfoResponse, error)
	// Queries a list of ComplianceInfo items.
	ComplianceInfoAll(context.Context, *QueryAllComplianceInfoRequest) (*QueryAllComplianceInfoResponse, error)
	// Queries a CertifiedModel by index.
	CertifiedModel(context.Context, *QueryGetCertifiedModelRequest) (*QueryGetCertifiedModelResponse, error)
	// Queries a list of CertifiedModel items.
	CertifiedModelAll(context.Context, *QueryAllCertifiedModelRequest) (*QueryAllCertifiedModelResponse, error)
	// Queries a RevokedModel by index.
	RevokedModel(context.Context, *QueryGetRevokedModelRequest) (*QueryGetRevokedModelResponse, error)
	// Queries a list of RevokedModel items.
	RevokedModelAll(context.Context, *QueryAllRevokedModelRequest) (*QueryAllRevokedModelResponse, error)
	// Queries a ProvisionalModel by index.
	ProvisionalModel(context.Context, *QueryGetProvisionalModelRequest) (*QueryGetProvisionalModelResponse, error)
	// Queries a list of ProvisionalModel items.
	ProvisionalModelAll(context.Context, *QueryAllProvisionalModelRequest) (*QueryAllProvisionalModelResponse, error)
}

QueryServer is the server API for Query service.

type RevokedModel

type RevokedModel struct {
	Vid               int32  `protobuf:"varint,1,opt,name=vid,proto3" json:"vid,omitempty"`
	Pid               int32  `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	SoftwareVersion   uint32 `protobuf:"varint,3,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	CertificationType string `protobuf:"bytes,4,opt,name=certification_type,json=certificationType,proto3" json:"certification_type,omitempty"`
	Value             bool   `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
}

func (*RevokedModel) Descriptor

func (*RevokedModel) Descriptor() ([]byte, []int)

func (*RevokedModel) GetCertificationType

func (m *RevokedModel) GetCertificationType() string

func (*RevokedModel) GetPid

func (m *RevokedModel) GetPid() int32

func (*RevokedModel) GetSoftwareVersion

func (m *RevokedModel) GetSoftwareVersion() uint32

func (*RevokedModel) GetValue

func (m *RevokedModel) GetValue() bool

func (*RevokedModel) GetVid

func (m *RevokedModel) GetVid() int32

func (*RevokedModel) Marshal

func (m *RevokedModel) Marshal() (dAtA []byte, err error)

func (*RevokedModel) MarshalTo

func (m *RevokedModel) MarshalTo(dAtA []byte) (int, error)

func (*RevokedModel) MarshalToSizedBuffer

func (m *RevokedModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RevokedModel) ProtoMessage

func (*RevokedModel) ProtoMessage()

func (*RevokedModel) Reset

func (m *RevokedModel) Reset()

func (*RevokedModel) Size

func (m *RevokedModel) Size() (n int)

func (*RevokedModel) String

func (m *RevokedModel) String() string

func (*RevokedModel) Unmarshal

func (m *RevokedModel) Unmarshal(dAtA []byte) error

func (*RevokedModel) XXX_DiscardUnknown

func (m *RevokedModel) XXX_DiscardUnknown()

func (*RevokedModel) XXX_Marshal

func (m *RevokedModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RevokedModel) XXX_Merge

func (m *RevokedModel) XXX_Merge(src proto.Message)

func (*RevokedModel) XXX_Size

func (m *RevokedModel) XXX_Size() int

func (*RevokedModel) XXX_Unmarshal

func (m *RevokedModel) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CertifyModel

func (*UnimplementedMsgServer) ProvisionModel

func (*UnimplementedMsgServer) RevokeModel

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CertifiedModel

func (*UnimplementedQueryServer) CertifiedModelAll

func (*UnimplementedQueryServer) ComplianceInfo

func (*UnimplementedQueryServer) ComplianceInfoAll

func (*UnimplementedQueryServer) ProvisionalModelAll

func (*UnimplementedQueryServer) RevokedModel

func (*UnimplementedQueryServer) RevokedModelAll

Jump to

Keyboard shortcuts

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