Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddApprovedCertificate(ctx sdk.Context, approvedCertificate types.Certificate, schemaVersion uint32)
- func (k Keeper) AddApprovedCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)
- func (k Keeper) AddApprovedCertificateBySubjectKeyID(ctx sdk.Context, certificate types.Certificate)
- func (k Keeper) AddApprovedCertificatesBySubjectKeyID(ctx sdk.Context, approvedCertificate types.ApprovedCertificates)
- func (k Keeper) AddApprovedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)
- func (k Keeper) AddChildCertificate(ctx sdk.Context, issuer string, authorityKeyID string, ...)
- func (k Keeper) AddNocIcaCertificate(ctx sdk.Context, nocIcaCertificates types.Certificate)
- func (k Keeper) AddNocRootCertificate(ctx sdk.Context, nocCertificate types.Certificate)
- func (k Keeper) AddPkiRevocationDistributionPointBySubjectKeyID(ctx sdk.Context, ...)
- func (k Keeper) AddRevokedCertificates(ctx sdk.Context, approvedCertificates types.ApprovedCertificates, ...)
- func (k Keeper) AddRevokedNocRootCertificates(ctx sdk.Context, revokedNocRootCertificates types.RevokedNocRootCertificates)
- func (k Keeper) AddRevokedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)
- func (k Keeper) ApprovedCertificates(c context.Context, req *types.QueryGetApprovedCertificatesRequest) (*types.QueryGetApprovedCertificatesResponse, error)
- func (k Keeper) ApprovedCertificatesAll(c context.Context, req *types.QueryAllApprovedCertificatesRequest) (*types.QueryAllApprovedCertificatesResponse, error)
- func (k Keeper) ApprovedCertificatesBySubject(c context.Context, req *types.QueryGetApprovedCertificatesBySubjectRequest) (*types.QueryGetApprovedCertificatesBySubjectResponse, error)
- func (k Keeper) ApprovedRootCertificates(c context.Context, req *types.QueryGetApprovedRootCertificatesRequest) (*types.QueryGetApprovedRootCertificatesResponse, error)
- func (k Keeper) CertificateApprovalsCount(ctx sdk.Context, authKeeper types.DclauthKeeper) int
- func (k Keeper) CertificateRejectApprovalsCount(ctx sdk.Context, authKeeper types.DclauthKeeper) int
- func (k Keeper) ChildCertificates(c context.Context, req *types.QueryGetChildCertificatesRequest) (*types.QueryGetChildCertificatesResponse, error)
- func (k Keeper) EnsureVidMatches(ctx sdk.Context, owner string, signer string) error
- func (k Keeper) GetAllApprovedCertificates(ctx sdk.Context) (list []types.ApprovedCertificates)
- func (k Keeper) GetAllApprovedCertificatesBySubject(ctx sdk.Context) (list []types.ApprovedCertificatesBySubject)
- func (k Keeper) GetAllApprovedCertificatesBySubjectKeyID(ctx sdk.Context) (list []types.ApprovedCertificatesBySubjectKeyId)
- func (k Keeper) GetAllChildCertificates(ctx sdk.Context) (list []types.ChildCertificates)
- func (k Keeper) GetAllNocIcaCertificates(ctx sdk.Context) (list []types.NocIcaCertificates)
- func (k Keeper) GetAllNocRootCertificates(ctx sdk.Context) (list []types.NocRootCertificates)
- func (k Keeper) GetAllPkiRevocationDistributionPoint(ctx sdk.Context) (list []types.PkiRevocationDistributionPoint)
- func (k Keeper) GetAllPkiRevocationDistributionPointsByIssuerSubjectKeyID(ctx sdk.Context) (list []types.PkiRevocationDistributionPointsByIssuerSubjectKeyID)
- func (k Keeper) GetAllProposedCertificate(ctx sdk.Context) (list []types.ProposedCertificate)
- func (k Keeper) GetAllProposedCertificateRevocation(ctx sdk.Context) (list []types.ProposedCertificateRevocation)
- func (k Keeper) GetAllRejectedCertificate(ctx sdk.Context) (list []types.RejectedCertificate)
- func (k Keeper) GetAllRevokedCertificates(ctx sdk.Context) (list []types.RevokedCertificates)
- func (k Keeper) GetAllRevokedNocRootCertificates(ctx sdk.Context) (list []types.RevokedNocRootCertificates)
- func (k Keeper) GetAllUniqueCertificate(ctx sdk.Context) (list []types.UniqueCertificate)
- func (k Keeper) GetApprovedCertificates(ctx sdk.Context, subject string, subjectKeyID string) (val types.ApprovedCertificates, found bool)
- func (k Keeper) GetApprovedCertificatesBySubject(ctx sdk.Context, subject string) (val types.ApprovedCertificatesBySubject, found bool)
- func (k Keeper) GetApprovedCertificatesBySubjectKeyID(ctx sdk.Context, subjectKeyID string) (val types.ApprovedCertificatesBySubjectKeyId, found bool)
- func (k Keeper) GetApprovedRootCertificates(ctx sdk.Context) (val types.ApprovedRootCertificates, found bool)
- func (k Keeper) GetChildCertificates(ctx sdk.Context, issuer string, authorityKeyID string) (val types.ChildCertificates, found bool)
- func (k Keeper) GetNocIcaCertificates(ctx sdk.Context, vid int32) (val types.NocIcaCertificates, found bool)
- func (k Keeper) GetNocRootCertificates(ctx sdk.Context, vid int32) (val types.NocRootCertificates, found bool)
- func (k Keeper) GetPkiRevocationDistributionPoint(ctx sdk.Context, vid int32, label string, issuerSubjectKeyID string) (val types.PkiRevocationDistributionPoint, found bool)
- func (k Keeper) GetPkiRevocationDistributionPointsByIssuerSubjectKeyID(ctx sdk.Context, issuerSubjectKeyID string) (val types.PkiRevocationDistributionPointsByIssuerSubjectKeyID, found bool)
- func (k Keeper) GetProposedCertificate(ctx sdk.Context, subject string, subjectKeyID string) (val types.ProposedCertificate, found bool)
- func (k Keeper) GetProposedCertificateRevocation(ctx sdk.Context, subject string, subjectKeyID string, serialNumber string) (val types.ProposedCertificateRevocation, found bool)
- func (k Keeper) GetRejectedCertificate(ctx sdk.Context, subject string, subjectKeyID string) (val types.RejectedCertificate, found bool)
- func (k Keeper) GetRevokedCertificates(ctx sdk.Context, subject string, subjectKeyID string) (val types.RevokedCertificates, found bool)
- func (k Keeper) GetRevokedNocRootCertificates(ctx sdk.Context, subject string, subjectKeyID string) (val types.RevokedNocRootCertificates, found bool)
- func (k Keeper) GetRevokedRootCertificates(ctx sdk.Context) (val types.RevokedRootCertificates, found bool)
- func (k Keeper) GetUniqueCertificate(ctx sdk.Context, issuer string, serialNumber string) (val types.UniqueCertificate, found bool)
- func (k Keeper) IsApprovedCertificatePresent(ctx sdk.Context, subject string, subjectKeyID string) bool
- func (k Keeper) IsProposedCertificatePresent(ctx sdk.Context, subject string, subjectKeyID string) bool
- func (k Keeper) IsProposedCertificateRevocationPresent(ctx sdk.Context, subject string, subjectKeyID string, serialNumber string) bool
- func (k Keeper) IsUniqueCertificatePresent(ctx sdk.Context, issuer string, serialNumber string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NocIcaCertificates(c context.Context, req *types.QueryGetNocIcaCertificatesRequest) (*types.QueryGetNocIcaCertificatesResponse, error)
- func (k Keeper) NocIcaCertificatesAll(c context.Context, req *types.QueryAllNocIcaCertificatesRequest) (*types.QueryAllNocIcaCertificatesResponse, error)
- func (k Keeper) NocRootCertificates(c context.Context, req *types.QueryGetNocRootCertificatesRequest) (*types.QueryGetNocRootCertificatesResponse, error)
- func (k Keeper) NocRootCertificatesAll(c context.Context, req *types.QueryAllNocRootCertificatesRequest) (*types.QueryAllNocRootCertificatesResponse, error)
- func (k Keeper) PkiRevocationDistributionPoint(c context.Context, req *types.QueryGetPkiRevocationDistributionPointRequest) (*types.QueryGetPkiRevocationDistributionPointResponse, error)
- func (k Keeper) PkiRevocationDistributionPointAll(c context.Context, req *types.QueryAllPkiRevocationDistributionPointRequest) (*types.QueryAllPkiRevocationDistributionPointResponse, error)
- func (k Keeper) PkiRevocationDistributionPointsByIssuerSubjectKeyID(c context.Context, ...) (*types.QueryGetPkiRevocationDistributionPointsByIssuerSubjectKeyIDResponse, ...)
- func (k Keeper) ProposedCertificate(c context.Context, req *types.QueryGetProposedCertificateRequest) (*types.QueryGetProposedCertificateResponse, error)
- func (k Keeper) ProposedCertificateAll(c context.Context, req *types.QueryAllProposedCertificateRequest) (*types.QueryAllProposedCertificateResponse, error)
- func (k Keeper) ProposedCertificateRevocation(c context.Context, req *types.QueryGetProposedCertificateRevocationRequest) (*types.QueryGetProposedCertificateRevocationResponse, error)
- func (k Keeper) ProposedCertificateRevocationAll(c context.Context, req *types.QueryAllProposedCertificateRevocationRequest) (*types.QueryAllProposedCertificateRevocationResponse, error)
- func (k Keeper) RejectedCertificate(c context.Context, req *types.QueryGetRejectedCertificatesRequest) (*types.QueryGetRejectedCertificatesResponse, error)
- func (k Keeper) RejectedCertificateAll(c context.Context, req *types.QueryAllRejectedCertificatesRequest) (*types.QueryAllRejectedCertificatesResponse, error)
- func (k Keeper) RemoveApprovedCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)
- func (k Keeper) RemoveApprovedCertificates(ctx sdk.Context, subject string, subjectKeyID string)
- func (k Keeper) RemoveApprovedCertificatesBySubject(ctx sdk.Context, subject string)
- func (k Keeper) RemoveApprovedCertificatesBySubjectKeyID(ctx sdk.Context, subject string, subjectKeyID string)
- func (k Keeper) RemoveApprovedCertificatesBySubjectKeyIDAndSerialNumber(ctx sdk.Context, subject, subjectKeyID, serialNumber string)
- func (k Keeper) RemoveApprovedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)
- func (k Keeper) RemoveApprovedRootCertificates(ctx sdk.Context)
- func (k Keeper) RemoveChildCertificates(ctx sdk.Context, issuer string, authorityKeyID string)
- func (k Keeper) RemoveNocIcaCertificate(ctx sdk.Context, subject, subjectKeyID string, vid int32)
- func (k Keeper) RemoveNocIcaCertificateBySerialNumber(ctx sdk.Context, vid int32, subject, subjectKeyID, serialNumber string)
- func (k Keeper) RemoveNocIcaCertificates(ctx sdk.Context, vid int32)
- func (k Keeper) RemoveNocRootCertificate(ctx sdk.Context, vid int32, subject, subjectKeyID string)
- func (k Keeper) RemoveNocRootCertificateBySerialNumber(ctx sdk.Context, vid int32, subject, subjectKeyID, serialNumber string)
- func (k Keeper) RemoveNocRootCertificates(ctx sdk.Context, vid int32)
- func (k Keeper) RemovePkiRevocationDistributionPoint(ctx sdk.Context, vid int32, label string, issuerSubjectKeyID string)
- func (k Keeper) RemovePkiRevocationDistributionPointBySubjectKeyID(ctx sdk.Context, ...)
- func (k Keeper) RemovePkiRevocationDistributionPointsByIssuerSubjectKeyID(ctx sdk.Context, issuerSubjectKeyID string)
- func (k Keeper) RemoveProposedCertificate(ctx sdk.Context, subject string, subjectKeyID string)
- func (k Keeper) RemoveProposedCertificateRevocation(ctx sdk.Context, subject string, subjectKeyID string, serialNumber string)
- func (k Keeper) RemoveRejectedCertificate(ctx sdk.Context, subject string, subjectKeyID string)
- func (k Keeper) RemoveRevokedCertificates(ctx sdk.Context, subject string, subjectKeyID string)
- func (k Keeper) RemoveRevokedNocRootCertificates(ctx sdk.Context, subject string, subjectKeyID string)
- func (k Keeper) RemoveRevokedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)
- func (k Keeper) RemoveRevokedRootCertificates(ctx sdk.Context)
- func (k Keeper) RemoveUniqueCertificate(ctx sdk.Context, issuer string, serialNumber string)
- func (k Keeper) RevokedCertificates(c context.Context, req *types.QueryGetRevokedCertificatesRequest) (*types.QueryGetRevokedCertificatesResponse, error)
- func (k Keeper) RevokedCertificatesAll(c context.Context, req *types.QueryAllRevokedCertificatesRequest) (*types.QueryAllRevokedCertificatesResponse, error)
- func (k Keeper) RevokedNocRootCertificates(c context.Context, req *types.QueryGetRevokedNocRootCertificatesRequest) (*types.QueryGetRevokedNocRootCertificatesResponse, error)
- func (k Keeper) RevokedNocRootCertificatesAll(c context.Context, req *types.QueryAllRevokedNocRootCertificatesRequest) (*types.QueryAllRevokedNocRootCertificatesResponse, error)
- func (k Keeper) RevokedRootCertificates(c context.Context, req *types.QueryGetRevokedRootCertificatesRequest) (*types.QueryGetRevokedRootCertificatesResponse, error)
- func (k Keeper) SetApprovedCertificates(ctx sdk.Context, approvedCertificates types.ApprovedCertificates)
- func (k Keeper) SetApprovedCertificatesBySubject(ctx sdk.Context, ...)
- func (k Keeper) SetApprovedCertificatesBySubjectKeyID(ctx sdk.Context, ...)
- func (k Keeper) SetApprovedRootCertificates(ctx sdk.Context, approvedRootCertificates types.ApprovedRootCertificates)
- func (k Keeper) SetChildCertificates(ctx sdk.Context, childCertificates types.ChildCertificates)
- func (k Keeper) SetNocIcaCertificates(ctx sdk.Context, nocIcaCertificates types.NocIcaCertificates)
- func (k Keeper) SetNocRootCertificates(ctx sdk.Context, nocRootCertificates types.NocRootCertificates)
- func (k Keeper) SetPkiRevocationDistributionPoint(ctx sdk.Context, ...)
- func (k Keeper) SetPkiRevocationDistributionPointsByIssuerSubjectKeyID(ctx sdk.Context, ...)
- func (k Keeper) SetProposedCertificate(ctx sdk.Context, proposedCertificate types.ProposedCertificate)
- func (k Keeper) SetProposedCertificateRevocation(ctx sdk.Context, ...)
- func (k Keeper) SetRejectedCertificate(ctx sdk.Context, rejectedCertificate types.RejectedCertificate)
- func (k Keeper) SetRevokedCertificates(ctx sdk.Context, revokedCertificates types.RevokedCertificates)
- func (k Keeper) SetRevokedNocRootCertificates(ctx sdk.Context, revokedNocRootCertificates types.RevokedNocRootCertificates)
- func (k Keeper) SetRevokedRootCertificates(ctx sdk.Context, revokedRootCertificates types.RevokedRootCertificates)
- func (k Keeper) SetUniqueCertificate(ctx sdk.Context, uniqueCertificate types.UniqueCertificate)
- func (k Keeper) UpdatePkiRevocationDistributionPointBySubjectKeyID(ctx sdk.Context, ...)
- type Migrator
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 Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, dclauthKeeper types.DclauthKeeper, ) *Keeper
func (Keeper) AddApprovedCertificate ¶
func (k Keeper) AddApprovedCertificate(ctx sdk.Context, approvedCertificate types.Certificate, schemaVersion uint32)
Add an approved certificate to the list of approved certificates for the subject/subjectKeyId map.
func (Keeper) AddApprovedCertificateBySubject ¶
func (k Keeper) AddApprovedCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)
Add ApprovedCertificates to a subject->subjectKeyId index.
func (Keeper) AddApprovedCertificateBySubjectKeyID ¶ added in v1.4.0
func (k Keeper) AddApprovedCertificateBySubjectKeyID(ctx sdk.Context, certificate types.Certificate)
Add an approved certificate to the list of approved certificates with the subjectKeyId map.
func (Keeper) AddApprovedCertificatesBySubjectKeyID ¶ added in v1.4.0
func (k Keeper) AddApprovedCertificatesBySubjectKeyID(ctx sdk.Context, approvedCertificate types.ApprovedCertificates)
Add an approved certificates list to approved certificates with the subjectKeyId map.
func (Keeper) AddApprovedRootCertificate ¶
func (k Keeper) AddApprovedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)
Add root certificate to the list.
func (Keeper) AddChildCertificate ¶
func (k Keeper) AddChildCertificate(ctx sdk.Context, issuer string, authorityKeyID string, certID types.CertificateIdentifier)
Add a child certificate to the list of child certificate IDs for the issuer/authorityKeyId map.
func (Keeper) AddNocIcaCertificate ¶ added in v1.4.0
func (k Keeper) AddNocIcaCertificate(ctx sdk.Context, nocIcaCertificates types.Certificate)
AddNocIcaCertificates adds a NOC certificate to the list of NOC certificates for the VID map.
func (Keeper) AddNocRootCertificate ¶ added in v1.4.0
func (k Keeper) AddNocRootCertificate(ctx sdk.Context, nocCertificate types.Certificate)
Add a NOC root certificate to the list of NOC root certificates for the VID map.
func (Keeper) AddPkiRevocationDistributionPointBySubjectKeyID ¶ added in v1.2.0
func (k Keeper) AddPkiRevocationDistributionPointBySubjectKeyID(ctx sdk.Context, pkiRevocationDistributionPoint types.PkiRevocationDistributionPoint)
Add PkiRevocationDistributionPoint to a subjectKeyID->revocationPoint index.
func (Keeper) AddRevokedCertificates ¶
func (k Keeper) AddRevokedCertificates(ctx sdk.Context, approvedCertificates types.ApprovedCertificates, schemaVersion uint32)
Add revoked certificates to the list of revoked certificates for the subject/subjectKeyId map.
func (Keeper) AddRevokedNocRootCertificates ¶ added in v1.4.0
func (k Keeper) AddRevokedNocRootCertificates(ctx sdk.Context, revokedNocRootCertificates types.RevokedNocRootCertificates)
AddRevokedNocRootCertificates adds revoked NOC certificates to the list of revoked NOC certificates for the subject/subjectKeyId map.
func (Keeper) AddRevokedRootCertificate ¶
func (k Keeper) AddRevokedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)
Add revoked root certificate to the list.
func (Keeper) ApprovedCertificates ¶
func (k Keeper) ApprovedCertificates(c context.Context, req *types.QueryGetApprovedCertificatesRequest) (*types.QueryGetApprovedCertificatesResponse, error)
func (Keeper) ApprovedCertificatesAll ¶
func (k Keeper) ApprovedCertificatesAll(c context.Context, req *types.QueryAllApprovedCertificatesRequest) (*types.QueryAllApprovedCertificatesResponse, error)
func (Keeper) ApprovedCertificatesBySubject ¶
func (k Keeper) ApprovedCertificatesBySubject(c context.Context, req *types.QueryGetApprovedCertificatesBySubjectRequest) (*types.QueryGetApprovedCertificatesBySubjectResponse, error)
func (Keeper) ApprovedRootCertificates ¶
func (k Keeper) ApprovedRootCertificates(c context.Context, req *types.QueryGetApprovedRootCertificatesRequest) (*types.QueryGetApprovedRootCertificatesResponse, error)
func (Keeper) CertificateApprovalsCount ¶ added in v0.8.0
func (Keeper) CertificateRejectApprovalsCount ¶ added in v0.11.0
func (Keeper) ChildCertificates ¶
func (k Keeper) ChildCertificates(c context.Context, req *types.QueryGetChildCertificatesRequest) (*types.QueryGetChildCertificatesResponse, error)
func (Keeper) EnsureVidMatches ¶ added in v1.4.0
func (Keeper) GetAllApprovedCertificates ¶
func (k Keeper) GetAllApprovedCertificates(ctx sdk.Context) (list []types.ApprovedCertificates)
GetAllApprovedCertificates returns all approvedCertificates.
func (Keeper) GetAllApprovedCertificatesBySubject ¶
func (k Keeper) GetAllApprovedCertificatesBySubject(ctx sdk.Context) (list []types.ApprovedCertificatesBySubject)
GetAllApprovedCertificatesBySubject returns all approvedCertificatesBySubject.
func (Keeper) GetAllApprovedCertificatesBySubjectKeyID ¶ added in v1.4.0
func (k Keeper) GetAllApprovedCertificatesBySubjectKeyID(ctx sdk.Context) (list []types.ApprovedCertificatesBySubjectKeyId)
GetAllApprovedCertificatesBySubjectKeyID returns all approvedCertificatesBySubjectKeyId.
func (Keeper) GetAllChildCertificates ¶
func (k Keeper) GetAllChildCertificates(ctx sdk.Context) (list []types.ChildCertificates)
GetAllChildCertificates returns all childCertificates.
func (Keeper) GetAllNocIcaCertificates ¶ added in v1.4.0
func (k Keeper) GetAllNocIcaCertificates(ctx sdk.Context) (list []types.NocIcaCertificates)
GetAllNocIcaCertificates returns all NocIcaCertificates.
func (Keeper) GetAllNocRootCertificates ¶ added in v1.4.0
func (k Keeper) GetAllNocRootCertificates(ctx sdk.Context) (list []types.NocRootCertificates)
GetAllNocRootCertificates returns all nocRootCertificates.
func (Keeper) GetAllPkiRevocationDistributionPoint ¶ added in v1.2.0
func (k Keeper) GetAllPkiRevocationDistributionPoint(ctx sdk.Context) (list []types.PkiRevocationDistributionPoint)
GetAllPkiRevocationDistributionPoint returns all pKIRevocationDistributionPoint.
func (Keeper) GetAllPkiRevocationDistributionPointsByIssuerSubjectKeyID ¶ added in v1.2.0
func (k Keeper) GetAllPkiRevocationDistributionPointsByIssuerSubjectKeyID(ctx sdk.Context) (list []types.PkiRevocationDistributionPointsByIssuerSubjectKeyID)
GetAllPkiRevocationDistributionPointsByIssuerSubjectKeyID returns all pkiRevocationDistributionPointsByIssuerSubjectKeyID.
func (Keeper) GetAllProposedCertificate ¶
func (k Keeper) GetAllProposedCertificate(ctx sdk.Context) (list []types.ProposedCertificate)
GetAllProposedCertificate returns all proposedCertificate.
func (Keeper) GetAllProposedCertificateRevocation ¶
func (k Keeper) GetAllProposedCertificateRevocation(ctx sdk.Context) (list []types.ProposedCertificateRevocation)
GetAllProposedCertificateRevocation returns all proposedCertificateRevocation.
func (Keeper) GetAllRejectedCertificate ¶ added in v0.11.0
func (k Keeper) GetAllRejectedCertificate(ctx sdk.Context) (list []types.RejectedCertificate)
GetAllRejectedCertificate returns all rejectedCertificate.
func (Keeper) GetAllRevokedCertificates ¶
func (k Keeper) GetAllRevokedCertificates(ctx sdk.Context) (list []types.RevokedCertificates)
GetAllRevokedCertificates returns all revokedCertificates.
func (Keeper) GetAllRevokedNocRootCertificates ¶ added in v1.4.0
func (k Keeper) GetAllRevokedNocRootCertificates(ctx sdk.Context) (list []types.RevokedNocRootCertificates)
GetAllRevokedNocRootCertificates returns all revokedNocRootCertificates.
func (Keeper) GetAllUniqueCertificate ¶
func (k Keeper) GetAllUniqueCertificate(ctx sdk.Context) (list []types.UniqueCertificate)
GetAllUniqueCertificate returns all uniqueCertificate.
func (Keeper) GetApprovedCertificates ¶
func (k Keeper) GetApprovedCertificates( ctx sdk.Context, subject string, subjectKeyID string, ) (val types.ApprovedCertificates, found bool)
GetApprovedCertificates returns a approvedCertificates from its index.
func (Keeper) GetApprovedCertificatesBySubject ¶
func (k Keeper) GetApprovedCertificatesBySubject( ctx sdk.Context, subject string, ) (val types.ApprovedCertificatesBySubject, found bool)
GetApprovedCertificatesBySubject returns a approvedCertificatesBySubject from its index.
func (Keeper) GetApprovedCertificatesBySubjectKeyID ¶ added in v1.4.0
func (k Keeper) GetApprovedCertificatesBySubjectKeyID( ctx sdk.Context, subjectKeyID string, ) (val types.ApprovedCertificatesBySubjectKeyId, found bool)
GetApprovedCertificatesBySubjectKeyID returns a approvedCertificatesBySubjectKeyId from its index.
func (Keeper) GetApprovedRootCertificates ¶
func (k Keeper) GetApprovedRootCertificates(ctx sdk.Context) (val types.ApprovedRootCertificates, found bool)
GetApprovedRootCertificates returns approvedRootCertificates.
func (Keeper) GetChildCertificates ¶
func (k Keeper) GetChildCertificates( ctx sdk.Context, issuer string, authorityKeyID string, ) (val types.ChildCertificates, found bool)
GetChildCertificates returns a childCertificates from its index.
func (Keeper) GetNocIcaCertificates ¶ added in v1.4.0
func (k Keeper) GetNocIcaCertificates( ctx sdk.Context, vid int32, ) (val types.NocIcaCertificates, found bool)
GetNocIcaCertificates returns a NocIcaCertificates from its index.
func (Keeper) GetNocRootCertificates ¶ added in v1.4.0
func (k Keeper) GetNocRootCertificates( ctx sdk.Context, vid int32, ) (val types.NocRootCertificates, found bool)
GetNocRootCertificates returns a nocRootCertificates from its index.
func (Keeper) GetPkiRevocationDistributionPoint ¶ added in v1.2.0
func (k Keeper) GetPkiRevocationDistributionPoint( ctx sdk.Context, vid int32, label string, issuerSubjectKeyID string, ) (val types.PkiRevocationDistributionPoint, found bool)
GetPkiRevocationDistributionPoint returns a pKIRevocationDistributionPoint from its index.
func (Keeper) GetPkiRevocationDistributionPointsByIssuerSubjectKeyID ¶ added in v1.2.0
func (k Keeper) GetPkiRevocationDistributionPointsByIssuerSubjectKeyID( ctx sdk.Context, issuerSubjectKeyID string, ) (val types.PkiRevocationDistributionPointsByIssuerSubjectKeyID, found bool)
GetPkiRevocationDistributionPointsByIssuerSubjectKeyID returns a pkiRevocationDistributionPointsByIssuerSubjectKeyID from its index.
func (Keeper) GetProposedCertificate ¶
func (k Keeper) GetProposedCertificate( ctx sdk.Context, subject string, subjectKeyID string, ) (val types.ProposedCertificate, found bool)
GetProposedCertificate returns a proposedCertificate from its index.
func (Keeper) GetProposedCertificateRevocation ¶
func (k Keeper) GetProposedCertificateRevocation( ctx sdk.Context, subject string, subjectKeyID string, serialNumber string, ) (val types.ProposedCertificateRevocation, found bool)
GetProposedCertificateRevocation returns a proposedCertificateRevocation from its index.
func (Keeper) GetRejectedCertificate ¶ added in v0.11.0
func (k Keeper) GetRejectedCertificate( ctx sdk.Context, subject string, subjectKeyID string, ) (val types.RejectedCertificate, found bool)
GetRejectedCertificate returns a rejectedCertificate from its index.
func (Keeper) GetRevokedCertificates ¶
func (k Keeper) GetRevokedCertificates( ctx sdk.Context, subject string, subjectKeyID string, ) (val types.RevokedCertificates, found bool)
GetRevokedCertificates returns a revokedCertificates from its index.
func (Keeper) GetRevokedNocRootCertificates ¶ added in v1.4.0
func (k Keeper) GetRevokedNocRootCertificates( ctx sdk.Context, subject string, subjectKeyID string, ) (val types.RevokedNocRootCertificates, found bool)
GetRevokedNocRootCertificates returns a revokedNocRootCertificates from its index.
func (Keeper) GetRevokedRootCertificates ¶
func (k Keeper) GetRevokedRootCertificates(ctx sdk.Context) (val types.RevokedRootCertificates, found bool)
GetRevokedRootCertificates returns revokedRootCertificates.
func (Keeper) GetUniqueCertificate ¶
func (k Keeper) GetUniqueCertificate( ctx sdk.Context, issuer string, serialNumber string, ) (val types.UniqueCertificate, found bool)
GetUniqueCertificate returns a uniqueCertificate from its index.
func (Keeper) IsApprovedCertificatePresent ¶
func (k Keeper) IsApprovedCertificatePresent( ctx sdk.Context, subject string, subjectKeyID string, ) bool
Check if the Approved Certificate record associated with a Subject/SubjectKeyID combination is present in the store.
func (Keeper) IsProposedCertificatePresent ¶
func (k Keeper) IsProposedCertificatePresent( ctx sdk.Context, subject string, subjectKeyID string, ) bool
Check if the Proposed Certificate record associated with a Subject/SubjectKeyID combination is present in the store.
func (Keeper) IsProposedCertificateRevocationPresent ¶
func (k Keeper) IsProposedCertificateRevocationPresent( ctx sdk.Context, subject string, subjectKeyID string, serialNumber string, ) bool
Check if the Proposed Certificate Revocation record associated with a Subject/SubjectKeyID combination is present in the store.
func (Keeper) IsUniqueCertificatePresent ¶
func (k Keeper) IsUniqueCertificatePresent( ctx sdk.Context, issuer string, serialNumber string, ) bool
Check if the unique certificate key (Issuer/SerialNumber combination) is busy.
func (Keeper) NocIcaCertificates ¶ added in v1.4.0
func (k Keeper) NocIcaCertificates(c context.Context, req *types.QueryGetNocIcaCertificatesRequest) (*types.QueryGetNocIcaCertificatesResponse, error)
func (Keeper) NocIcaCertificatesAll ¶ added in v1.4.0
func (k Keeper) NocIcaCertificatesAll(c context.Context, req *types.QueryAllNocIcaCertificatesRequest) (*types.QueryAllNocIcaCertificatesResponse, error)
func (Keeper) NocRootCertificates ¶ added in v1.4.0
func (k Keeper) NocRootCertificates(c context.Context, req *types.QueryGetNocRootCertificatesRequest) (*types.QueryGetNocRootCertificatesResponse, error)
func (Keeper) NocRootCertificatesAll ¶ added in v1.4.0
func (k Keeper) NocRootCertificatesAll(c context.Context, req *types.QueryAllNocRootCertificatesRequest) (*types.QueryAllNocRootCertificatesResponse, error)
func (Keeper) PkiRevocationDistributionPoint ¶ added in v1.2.0
func (k Keeper) PkiRevocationDistributionPoint(c context.Context, req *types.QueryGetPkiRevocationDistributionPointRequest) (*types.QueryGetPkiRevocationDistributionPointResponse, error)
func (Keeper) PkiRevocationDistributionPointAll ¶ added in v1.2.0
func (k Keeper) PkiRevocationDistributionPointAll(c context.Context, req *types.QueryAllPkiRevocationDistributionPointRequest) (*types.QueryAllPkiRevocationDistributionPointResponse, error)
func (Keeper) PkiRevocationDistributionPointsByIssuerSubjectKeyID ¶ added in v1.2.0
func (k Keeper) PkiRevocationDistributionPointsByIssuerSubjectKeyID(c context.Context, req *types.QueryGetPkiRevocationDistributionPointsByIssuerSubjectKeyIDRequest) (*types.QueryGetPkiRevocationDistributionPointsByIssuerSubjectKeyIDResponse, error)
func (Keeper) ProposedCertificate ¶
func (k Keeper) ProposedCertificate(c context.Context, req *types.QueryGetProposedCertificateRequest) (*types.QueryGetProposedCertificateResponse, error)
func (Keeper) ProposedCertificateAll ¶
func (k Keeper) ProposedCertificateAll(c context.Context, req *types.QueryAllProposedCertificateRequest) (*types.QueryAllProposedCertificateResponse, error)
func (Keeper) ProposedCertificateRevocation ¶
func (k Keeper) ProposedCertificateRevocation(c context.Context, req *types.QueryGetProposedCertificateRevocationRequest) (*types.QueryGetProposedCertificateRevocationResponse, error)
func (Keeper) ProposedCertificateRevocationAll ¶
func (k Keeper) ProposedCertificateRevocationAll(c context.Context, req *types.QueryAllProposedCertificateRevocationRequest) (*types.QueryAllProposedCertificateRevocationResponse, error)
func (Keeper) RejectedCertificate ¶ added in v0.11.0
func (k Keeper) RejectedCertificate(c context.Context, req *types.QueryGetRejectedCertificatesRequest) (*types.QueryGetRejectedCertificatesResponse, error)
func (Keeper) RejectedCertificateAll ¶ added in v0.11.0
func (k Keeper) RejectedCertificateAll(c context.Context, req *types.QueryAllRejectedCertificatesRequest) (*types.QueryAllRejectedCertificatesResponse, error)
func (Keeper) RemoveApprovedCertificateBySubject ¶
func (k Keeper) RemoveApprovedCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)
Remove revoked root certificate from the list.
func (Keeper) RemoveApprovedCertificates ¶
RemoveApprovedCertificates removes a approvedCertificates from the store.
func (Keeper) RemoveApprovedCertificatesBySubject ¶
RemoveApprovedCertificatesBySubject removes a approvedCertificatesBySubject from the store.
func (Keeper) RemoveApprovedCertificatesBySubjectKeyID ¶ added in v1.4.0
func (k Keeper) RemoveApprovedCertificatesBySubjectKeyID( ctx sdk.Context, subject string, subjectKeyID string, )
RemoveApprovedCertificatesBySubjectKeyID removes a approvedCertificatesBySubjectKeyId from the store.
func (Keeper) RemoveApprovedCertificatesBySubjectKeyIDAndSerialNumber ¶ added in v1.4.0
func (Keeper) RemoveApprovedRootCertificate ¶
func (k Keeper) RemoveApprovedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)
Remove root certificate from the list.
func (Keeper) RemoveApprovedRootCertificates ¶
RemoveApprovedRootCertificates removes approvedRootCertificates from the store.
func (Keeper) RemoveChildCertificates ¶
RemoveChildCertificates removes a childCertificates from the store.
func (Keeper) RemoveNocIcaCertificate ¶ added in v1.4.0
func (Keeper) RemoveNocIcaCertificateBySerialNumber ¶ added in v1.4.0
func (Keeper) RemoveNocIcaCertificates ¶ added in v1.4.0
RemoveNocIcaCertificates removes a NocIcaCertificates from the store.
func (Keeper) RemoveNocRootCertificate ¶ added in v1.4.0
func (Keeper) RemoveNocRootCertificateBySerialNumber ¶ added in v1.4.0
func (Keeper) RemoveNocRootCertificates ¶ added in v1.4.0
RemoveNocRootCertificates removes a nocRootCertificates from the store.
func (Keeper) RemovePkiRevocationDistributionPoint ¶ added in v1.2.0
func (k Keeper) RemovePkiRevocationDistributionPoint( ctx sdk.Context, vid int32, label string, issuerSubjectKeyID string, )
RemovePkiRevocationDistributionPoint removes a pKIRevocationDistributionPoint from the store.
func (Keeper) RemovePkiRevocationDistributionPointBySubjectKeyID ¶ added in v1.2.0
func (k Keeper) RemovePkiRevocationDistributionPointBySubjectKeyID(ctx sdk.Context, pkiRevocationDistributionPoint types.PkiRevocationDistributionPoint)
Remove PkiRevocationDistributionPoint from a subjectKeyID->revocationPoint index.
func (Keeper) RemovePkiRevocationDistributionPointsByIssuerSubjectKeyID ¶ added in v1.2.0
func (k Keeper) RemovePkiRevocationDistributionPointsByIssuerSubjectKeyID( ctx sdk.Context, issuerSubjectKeyID string, )
RemovePkiRevocationDistributionPointsByIssuerSubjectKeyID removes a pkiRevocationDistributionPointsByIssuerSubjectKeyID from the store.
func (Keeper) RemoveProposedCertificate ¶
RemoveProposedCertificate removes a proposedCertificate from the store.
func (Keeper) RemoveProposedCertificateRevocation ¶
func (k Keeper) RemoveProposedCertificateRevocation( ctx sdk.Context, subject string, subjectKeyID string, serialNumber string, )
RemoveProposedCertificateRevocation removes a proposedCertificateRevocation from the store.
func (Keeper) RemoveRejectedCertificate ¶ added in v0.11.0
RemoveRejectedCertificate removes a rejectedCertificate from the store.
func (Keeper) RemoveRevokedCertificates ¶
RemoveRevokedCertificates removes a revokedCertificates from the store.
func (Keeper) RemoveRevokedNocRootCertificates ¶ added in v1.4.0
func (k Keeper) RemoveRevokedNocRootCertificates( ctx sdk.Context, subject string, subjectKeyID string, )
RemoveRevokedNocRootCertificates removes a revokedNocRootCertificates from the store.
func (Keeper) RemoveRevokedRootCertificate ¶
func (k Keeper) RemoveRevokedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)
Remove revoked root certificate from the list.
func (Keeper) RemoveRevokedRootCertificates ¶
RemoveRevokedRootCertificates removes revokedRootCertificates from the store.
func (Keeper) RemoveUniqueCertificate ¶
RemoveUniqueCertificate removes a uniqueCertificate from the store.
func (Keeper) RevokedCertificates ¶
func (k Keeper) RevokedCertificates(c context.Context, req *types.QueryGetRevokedCertificatesRequest) (*types.QueryGetRevokedCertificatesResponse, error)
func (Keeper) RevokedCertificatesAll ¶
func (k Keeper) RevokedCertificatesAll(c context.Context, req *types.QueryAllRevokedCertificatesRequest) (*types.QueryAllRevokedCertificatesResponse, error)
func (Keeper) RevokedNocRootCertificates ¶ added in v1.4.0
func (k Keeper) RevokedNocRootCertificates(c context.Context, req *types.QueryGetRevokedNocRootCertificatesRequest) (*types.QueryGetRevokedNocRootCertificatesResponse, error)
func (Keeper) RevokedNocRootCertificatesAll ¶ added in v1.4.0
func (k Keeper) RevokedNocRootCertificatesAll(c context.Context, req *types.QueryAllRevokedNocRootCertificatesRequest) (*types.QueryAllRevokedNocRootCertificatesResponse, error)
func (Keeper) RevokedRootCertificates ¶
func (k Keeper) RevokedRootCertificates(c context.Context, req *types.QueryGetRevokedRootCertificatesRequest) (*types.QueryGetRevokedRootCertificatesResponse, error)
func (Keeper) SetApprovedCertificates ¶
func (k Keeper) SetApprovedCertificates(ctx sdk.Context, approvedCertificates types.ApprovedCertificates)
SetApprovedCertificates set a specific approvedCertificates in the store from its index.
func (Keeper) SetApprovedCertificatesBySubject ¶
func (k Keeper) SetApprovedCertificatesBySubject(ctx sdk.Context, approvedCertificatesBySubject types.ApprovedCertificatesBySubject)
SetApprovedCertificatesBySubject set a specific approvedCertificatesBySubject in the store from its index.
func (Keeper) SetApprovedCertificatesBySubjectKeyID ¶ added in v1.4.0
func (k Keeper) SetApprovedCertificatesBySubjectKeyID(ctx sdk.Context, approvedCertificatesBySubjectKeyID types.ApprovedCertificatesBySubjectKeyId)
SetApprovedCertificatesBySubjectKeyID set a specific approvedCertificatesBySubjectKeyId in the store from its index.
func (Keeper) SetApprovedRootCertificates ¶
func (k Keeper) SetApprovedRootCertificates(ctx sdk.Context, approvedRootCertificates types.ApprovedRootCertificates)
SetApprovedRootCertificates set approvedRootCertificates in the store.
func (Keeper) SetChildCertificates ¶
func (k Keeper) SetChildCertificates(ctx sdk.Context, childCertificates types.ChildCertificates)
SetChildCertificates set a specific childCertificates in the store from its index.
func (Keeper) SetNocIcaCertificates ¶ added in v1.4.0
func (k Keeper) SetNocIcaCertificates(ctx sdk.Context, nocIcaCertificates types.NocIcaCertificates)
SetNocIcaCertificates set a specific NocIcaCertificates in the store from its index.
func (Keeper) SetNocRootCertificates ¶ added in v1.4.0
func (k Keeper) SetNocRootCertificates(ctx sdk.Context, nocRootCertificates types.NocRootCertificates)
SetNocRootCertificates set a specific nocRootCertificates in the store from its index.
func (Keeper) SetPkiRevocationDistributionPoint ¶ added in v1.2.0
func (k Keeper) SetPkiRevocationDistributionPoint(ctx sdk.Context, pKIRevocationDistributionPoint types.PkiRevocationDistributionPoint)
SetPkiRevocationDistributionPoint set a specific pKIRevocationDistributionPoint in the store from its index.
func (Keeper) SetPkiRevocationDistributionPointsByIssuerSubjectKeyID ¶ added in v1.2.0
func (k Keeper) SetPkiRevocationDistributionPointsByIssuerSubjectKeyID(ctx sdk.Context, pkiRevocationDistributionPointsByIssuerSubjectKeyID types.PkiRevocationDistributionPointsByIssuerSubjectKeyID)
SetPkiRevocationDistributionPointsByIssuerSubjectKeyID set a specific pkiRevocationDistributionPointsByIssuerSubjectKeyID in the store from its index.
func (Keeper) SetProposedCertificate ¶
func (k Keeper) SetProposedCertificate(ctx sdk.Context, proposedCertificate types.ProposedCertificate)
SetProposedCertificate set a specific proposedCertificate in the store from its index.
func (Keeper) SetProposedCertificateRevocation ¶
func (k Keeper) SetProposedCertificateRevocation(ctx sdk.Context, proposedCertificateRevocation types.ProposedCertificateRevocation)
SetProposedCertificateRevocation set a specific proposedCertificateRevocation in the store from its index.
func (Keeper) SetRejectedCertificate ¶ added in v0.11.0
func (k Keeper) SetRejectedCertificate(ctx sdk.Context, rejectedCertificate types.RejectedCertificate)
SetRejectedCertificate set a specific rejectedCertificate in the store from its index.
func (Keeper) SetRevokedCertificates ¶
func (k Keeper) SetRevokedCertificates(ctx sdk.Context, revokedCertificates types.RevokedCertificates)
SetRevokedCertificates set a specific revokedCertificates in the store from its index.
func (Keeper) SetRevokedNocRootCertificates ¶ added in v1.4.0
func (k Keeper) SetRevokedNocRootCertificates(ctx sdk.Context, revokedNocRootCertificates types.RevokedNocRootCertificates)
SetRevokedNocRootCertificates set a specific revokedNocRootCertificates in the store from its index.
func (Keeper) SetRevokedRootCertificates ¶
func (k Keeper) SetRevokedRootCertificates(ctx sdk.Context, revokedRootCertificates types.RevokedRootCertificates)
SetRevokedRootCertificates set revokedRootCertificates in the store.
func (Keeper) SetUniqueCertificate ¶
func (k Keeper) SetUniqueCertificate(ctx sdk.Context, uniqueCertificate types.UniqueCertificate)
SetUniqueCertificate set a specific uniqueCertificate in the store from its index.
func (Keeper) UpdatePkiRevocationDistributionPointBySubjectKeyID ¶ added in v1.2.0
func (k Keeper) UpdatePkiRevocationDistributionPointBySubjectKeyID(ctx sdk.Context, pkiRevocationDistributionPoint types.PkiRevocationDistributionPoint)
Update PkiRevocationDistributionPoint in a subjectKeyID->revocationPoint index.
type Migrator ¶ added in v1.4.0
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶ added in v1.4.0
NewMigrator returns a new Migrator.
func (Migrator) Migrate1to2 ¶ added in v1.4.0
Migrate1to2 migrates from version 1 to 2.
Source Files ¶
- approved_certificates.go
- approved_certificates_by_subject.go
- approved_certificates_by_subject_key_id.go
- approved_root_certificates.go
- child_certificates.go
- grpc_query.go
- grpc_query_approved_certificates.go
- grpc_query_approved_certificates_by_subject.go
- grpc_query_approved_root_certificates.go
- grpc_query_child_certificates.go
- grpc_query_noc_ica_certificates.go
- grpc_query_noc_root_certificates.go
- grpc_query_pki_revocation_distribution_point.go
- grpc_query_pki_revocation_distribution_points_by_issuer_subject_key_id.go
- grpc_query_proposed_certificate.go
- grpc_query_proposed_certificate_revocation.go
- grpc_query_rejected_certificate.go
- grpc_query_revoked_certificates.go
- grpc_query_revoked_noc_root_certificates.go
- grpc_query_revoked_root_certificates.go
- keeper.go
- migrations.go
- msg_server.go
- msg_server_add_noc_x_509_ica_cert.go
- msg_server_add_noc_x_509_root_cert.go
- msg_server_add_pki_revocation_distribution_point.go
- msg_server_add_x_509_cert.go
- msg_server_approve_add_x_509_root_cert.go
- msg_server_approve_revoke_x_509_root_cert.go
- msg_server_assign_vid.go
- msg_server_delete_pki_revocation_distribution_point.go
- msg_server_propose_add_x_509_root_cert.go
- msg_server_propose_revoke_x_509_root_cert.go
- msg_server_reject_add_x_509_root_cert.go
- msg_server_remove_x_509_cert.go
- msg_server_revoke_noc_x_509_ica_cert.go
- msg_server_revoke_noc_x_509_root_cert.go
- msg_server_revoke_x_509_cert.go
- msg_server_update_pki_revocation_distribution_point.go
- noc_ica_certificates.go
- noc_root_certificates.go
- pki_revocation_distribution_point.go
- pki_revocation_distribution_points_by_issuer_subject_key_id.go
- proposed_certificate.go
- proposed_certificate_revocation.go
- rejected_certificate.go
- revoked_certificates.go
- revoked_noc_root_certificates.go
- revoked_root_certificates.go
- unique_certificate.go