keeper

package
v1.4.4-5-dev Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

Types

type CertificatePredicate added in v1.4.0

type CertificatePredicate func(*types.Certificate) bool

type Keeper

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

func NewKeeper

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

	dclauthKeeper types.DclauthKeeper,
) *Keeper

func (Keeper) AddAllCertificate added in v1.4.4

func (k Keeper) AddAllCertificate(ctx sdk.Context, certificate types.Certificate)

AddAllCertificate add a certificate to the list of all certificates for the subject/subjectKeyId map.

func (Keeper) AddAllCertificateBySubject added in v1.4.4

func (k Keeper) AddAllCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)

Add AllCertificates to a subject->subjectKeyId index.

func (Keeper) AddAllCertificateBySubjectKeyID added in v1.4.4

func (k Keeper) AddAllCertificateBySubjectKeyID(ctx sdk.Context, certificate types.Certificate)

Add an All certificate to the list of All certificates with the subjectKeyId map.

func (Keeper) AddAllCertificates added in v1.4.4

func (k Keeper) AddAllCertificates(ctx sdk.Context, subject string, subjectKeyID string, schemaVersion uint32, certs []*types.Certificate)

AddAllCertificates add list of certificates in the store from its index

func (Keeper) AddAllCertificatesBySubject added in v1.4.4

func (k Keeper) AddAllCertificatesBySubject(ctx sdk.Context, subject string, schemaVersion uint32, subjectKeyIds []string)

AddAllCertificates add list of certificates in the store from its index

func (Keeper) AddAllCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) AddAllCertificatesBySubjectKeyID(ctx sdk.Context, allCertificate types.AllCertificates)

Add an All certificates list to All certificates with the subjectKeyId map.

func (Keeper) AddApprovedCertificate

func (k Keeper) AddApprovedCertificate(ctx sdk.Context, approvedCertificate types.Certificate)

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) AddNocCertificate added in v1.4.4

func (k Keeper) AddNocCertificate(ctx sdk.Context, nocCertificate types.Certificate)

Add a NOC certificate to the list of NOC certificates.

func (Keeper) AddNocCertificateBySubject added in v1.4.4

func (k Keeper) AddNocCertificateBySubject(ctx sdk.Context, nocCertificate types.Certificate)

Add a NOC certificate to the list of NOC certificates: subject->subjectKeyId index.

func (Keeper) AddNocCertificateBySubjectKeyID added in v1.4.4

func (k Keeper) AddNocCertificateBySubjectKeyID(ctx sdk.Context, certificate types.Certificate)

Add a noc certificate to the list of noc certificates with the subjectKeyId map.

func (Keeper) AddNocCertificateByVidAndSkid added in v1.4.1

func (k Keeper) AddNocCertificateByVidAndSkid(ctx sdk.Context, nocCertificate types.Certificate)

Add a NOC certificate to the list of NOC certificates for the VID map.

func (Keeper) AddNocCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) AddNocCertificatesBySubjectKeyID(ctx sdk.Context, nocCertificate types.NocCertificates)

Add a noc certificates list to noc certificates with the subjectKeyId 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.RevokedCertificates)

AddRevokedCertificates Add revoked certificates to the list of revoked certificates for the subject/subjectKeyId map.

func (Keeper) AddRevokedNocIcaCertificates added in v1.4.4

func (k Keeper) AddRevokedNocIcaCertificates(ctx sdk.Context, revokedNocIcaCertificates types.RevokedNocIcaCertificates)

AddRevokedNocIcaCertificates adds revoked NOC certificates to the list of revoked NOC 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) CertificateApprovalsCount added in v0.8.0

func (k Keeper) CertificateApprovalsCount(ctx sdk.Context, authKeeper types.DclauthKeeper) int

func (Keeper) CertificateRejectApprovalsCount added in v0.11.0

func (k Keeper) CertificateRejectApprovalsCount(ctx sdk.Context, authKeeper types.DclauthKeeper) int

func (Keeper) Certificates added in v1.4.4

func (Keeper) CertificatesAll added in v1.4.4

func (Keeper) EnsureVidMatches added in v1.4.0

func (k Keeper) EnsureVidMatches(ctx sdk.Context, owner string, signer string) error

func (Keeper) GetAllAllCertificates added in v1.4.4

func (k Keeper) GetAllAllCertificates(ctx sdk.Context) (list []types.AllCertificates)

GetAllAllCertificates returns all certificates

func (Keeper) GetAllAllCertificatesBySubject added in v1.4.4

func (k Keeper) GetAllAllCertificatesBySubject(ctx sdk.Context) (list []types.AllCertificatesBySubject)

GetAllAllCertificatesBySubject returns all allCertificatesBySubject

func (Keeper) GetAllAllCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) GetAllAllCertificatesBySubjectKeyID(ctx sdk.Context) (list []types.AllCertificatesBySubjectKeyId)

GetAllAllCertificatesBySubjectKeyID returns all AllCertificatesBySubjectKeyId.

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) GetAllCertificates added in v1.4.4

func (k Keeper) GetAllCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,

) (val types.AllCertificates, found bool)

GetAllCertificates returns a certificates from its index

func (Keeper) GetAllCertificatesBySubject added in v1.4.4

func (k Keeper) GetAllCertificatesBySubject(
	ctx sdk.Context,
	subject string,

) (val types.AllCertificatesBySubject, found bool)

GetAllCertificatesBySubject returns a allCertificatesBySubject from its index

func (Keeper) GetAllCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) GetAllCertificatesBySubjectKeyID(
	ctx sdk.Context,
	subjectKeyID string,

) (val types.AllCertificatesBySubjectKeyId, found bool)

GetAllCertificatesBySubjectKeyID returns a AllCertificatesBySubjectKeyId from its index.

func (Keeper) GetAllChildCertificates

func (k Keeper) GetAllChildCertificates(ctx sdk.Context) (list []types.ChildCertificates)

GetAllChildCertificates returns all childCertificates.

func (Keeper) GetAllNocCertificates added in v1.4.4

func (k Keeper) GetAllNocCertificates(ctx sdk.Context) (list []types.NocCertificates)

GetAllNocCertificates returns all nocCertificates

func (Keeper) GetAllNocCertificatesBySubject added in v1.4.4

func (k Keeper) GetAllNocCertificatesBySubject(ctx sdk.Context) (list []types.NocCertificatesBySubject)

GetAllNocCertificatesBySubject returns all nocCertificatesBySubject

func (Keeper) GetAllNocCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) GetAllNocCertificatesBySubjectKeyID(ctx sdk.Context) (list []types.NocCertificatesBySubjectKeyID)

GetAllNocCertificatesBySubjectKeyID returns all nocCertificatesBySubjectKeyId

func (Keeper) GetAllNocCertificatesByVidAndSkid added in v1.4.1

func (k Keeper) GetAllNocCertificatesByVidAndSkid(ctx sdk.Context) (list []types.NocCertificatesByVidAndSkid)

GetAllNocCertificatesByVidAndSkid returns all nocCertificatesByVidAndSkid.

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) GetAllRevokedNocIcaCertificates added in v1.4.4

func (k Keeper) GetAllRevokedNocIcaCertificates(ctx sdk.Context) (list []types.RevokedNocIcaCertificates)

GetAllRevokedNocIcaCertificates returns all revokedNocIcaCertificates

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) GetNocCertificates added in v1.4.4

func (k Keeper) GetNocCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,

) (val types.NocCertificates, found bool)

GetNocCertificates returns a nocCertificates from its index

func (Keeper) GetNocCertificatesBySubject added in v1.4.4

func (k Keeper) GetNocCertificatesBySubject(
	ctx sdk.Context,
	subject string,

) (val types.NocCertificatesBySubject, found bool)

GetNocCertificatesBySubject returns a nocCertificatesBySubject from its index

func (Keeper) GetNocCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) GetNocCertificatesBySubjectKeyID(
	ctx sdk.Context,
	subjectKeyID string,

) (val types.NocCertificatesBySubjectKeyID, found bool)

GetNocCertificatesBySubjectKeyID returns a nocCertificatesBySubjectKeyId from its index

func (Keeper) GetNocCertificatesByVidAndSkid added in v1.4.1

func (k Keeper) GetNocCertificatesByVidAndSkid(
	ctx sdk.Context,
	vid int32,
	subjectKeyID string,

) (val types.NocCertificatesByVidAndSkid, found bool)

GetNocCertificatesByVidAndSkid returns a nocCertificatesByVidAndSkid 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) GetNocIcaCertificatesBySubjectAndSKID added in v1.4.0

func (k Keeper) GetNocIcaCertificatesBySubjectAndSKID(
	ctx sdk.Context,
	vid int32,
	subject string,
	subjectKeyID string,
) (types.NocIcaCertificates, bool)

GetNocIcaCertificatesBySubjectAndSKID returns a NocIcaCertificates by subject and SKID 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) GetRevokedNocIcaCertificates added in v1.4.4

func (k Keeper) GetRevokedNocIcaCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,

) (val types.RevokedNocIcaCertificates, found bool)

GetRevokedNocIcaCertificates returns a revokedNocIcaCertificates 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) 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) Logger

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

func (Keeper) NocCertificates added in v1.4.4

func (Keeper) NocCertificatesAll added in v1.4.4

func (Keeper) NocIcaCertificates added in v1.4.0

func (Keeper) NocIcaCertificatesAll added in v1.4.0

func (Keeper) NocRootCertificatesAll added in v1.4.0

func (Keeper) RejectedCertificateAll added in v0.11.0

func (Keeper) RemoveAllCertificateBySubject added in v1.4.4

func (k Keeper) RemoveAllCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)

RemoveAllCertificateBySubject removes a allCertificatesBySubject from the store

func (Keeper) RemoveAllCertificates added in v1.4.4

func (k Keeper) RemoveAllCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,

)

RemoveAllCertificates removes a certificates from the store

func (Keeper) RemoveAllCertificatesBySerialNumber added in v1.4.4

func (k Keeper) RemoveAllCertificatesBySerialNumber(ctx sdk.Context, subject, subjectKeyID, serialNumber string)

func (Keeper) RemoveAllCertificatesBySubject added in v1.4.4

func (k Keeper) RemoveAllCertificatesBySubject(
	ctx sdk.Context,
	subject string,
)

RemoveAllCertificatesBySubject removes a AllCertificatesBySubject from the store.

func (Keeper) RemoveAllCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) RemoveAllCertificatesBySubjectKeyID(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveAllCertificatesBySubjectKeyID removes a AllCertificatesBySubjectKeyId from the store.

func (Keeper) RemoveAllCertificatesBySubjectKeyIDBySerialNumber added in v1.4.4

func (k Keeper) RemoveAllCertificatesBySubjectKeyIDBySerialNumber(ctx sdk.Context, subject, subjectKeyID, serialNumber string)

func (Keeper) RemoveApprovedCertificateBySubject

func (k Keeper) RemoveApprovedCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)

Remove revoked root certificate from the list.

func (Keeper) RemoveApprovedCertificates

func (k Keeper) RemoveApprovedCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveApprovedCertificates removes a approvedCertificates from the store.

func (Keeper) RemoveApprovedCertificatesBySerialNumber added in v1.4.4

func (k Keeper) RemoveApprovedCertificatesBySerialNumber(ctx sdk.Context, subject, subjectKeyID, serialNumber string)

func (Keeper) RemoveApprovedCertificatesBySubject

func (k Keeper) RemoveApprovedCertificatesBySubject(
	ctx sdk.Context,
	subject string,
)

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) RemoveApprovedCertificatesBySubjectKeyIDBySerialNumber added in v1.4.4

func (k Keeper) RemoveApprovedCertificatesBySubjectKeyIDBySerialNumber(ctx sdk.Context, subject, subjectKeyID, serialNumber string)

func (Keeper) RemoveApprovedRootCertificate

func (k Keeper) RemoveApprovedRootCertificate(ctx sdk.Context, certID types.CertificateIdentifier)

Remove root certificate from the list.

func (Keeper) RemoveApprovedRootCertificates

func (k Keeper) RemoveApprovedRootCertificates(ctx sdk.Context)

RemoveApprovedRootCertificates removes approvedRootCertificates from the store.

func (Keeper) RemoveChildCertificates

func (k Keeper) RemoveChildCertificates(
	ctx sdk.Context,
	issuer string,
	authorityKeyID string,
)

RemoveChildCertificates removes a childCertificates from the store.

func (Keeper) RemoveNocCertificateBySubject added in v1.4.4

func (k Keeper) RemoveNocCertificateBySubject(ctx sdk.Context, subject string, subjectKeyID string)

Remove revoked root certificate from the list.

func (Keeper) RemoveNocCertificateByVidSubjectAndSkid added in v1.4.1

func (k Keeper) RemoveNocCertificateByVidSubjectAndSkid(
	ctx sdk.Context,
	vid int32,
	subject string,
	subjectKeyID string,
)

RemoveNocCertificateByVidSkidSubjectAndSerialNumber removes certificate with specified subject from the list.

func (Keeper) RemoveNocCertificates added in v1.4.4

func (k Keeper) RemoveNocCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,

)

RemoveNocCertificates removes a nocCertificates from the store

func (Keeper) RemoveNocCertificatesBySerialNumber added in v1.4.4

func (k Keeper) RemoveNocCertificatesBySerialNumber(ctx sdk.Context, subject, subjectKeyID, serialNumber string)

func (Keeper) RemoveNocCertificatesBySubject added in v1.4.4

func (k Keeper) RemoveNocCertificatesBySubject(
	ctx sdk.Context,
	subject string,

)

RemoveNocCertificatesBySubject removes a nocCertificatesBySubject from the store

func (Keeper) RemoveNocCertificatesBySubjectAndSubjectKeyID added in v1.4.4

func (k Keeper) RemoveNocCertificatesBySubjectAndSubjectKeyID(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveNocCertificatesBySubjectAndSubjectKeyID removes a nocCertificatesBySubjectKeyId from the store.

func (Keeper) RemoveNocCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) RemoveNocCertificatesBySubjectKeyID(
	ctx sdk.Context,
	subjectKeyID string,
)

RemoveNocCertificatesBySubjectKeyID removes a nocCertificatesBySubjectKeyId from the store

func (Keeper) RemoveNocCertificatesBySubjectKeyIDBySerialNumber added in v1.4.4

func (k Keeper) RemoveNocCertificatesBySubjectKeyIDBySerialNumber(ctx sdk.Context, subject, subjectKeyID, serialNumber string)

func (Keeper) RemoveNocCertificatesByVidAndSkid added in v1.4.1

func (k Keeper) RemoveNocCertificatesByVidAndSkid(
	ctx sdk.Context,
	vid int32,
	subjectKeyID string,
)

RemoveNocCertificatesByVidAndSkid removes a nocCertificatesByVidAndSkid from the store.

func (Keeper) RemoveNocCertificatesByVidAndSkidBySerialNumber added in v1.4.4

func (k Keeper) RemoveNocCertificatesByVidAndSkidBySerialNumber(
	ctx sdk.Context,
	vid int32,
	subject string,
	subjectKeyID string,
	serialNumber string,
)

RemoveNocCertificatesByVidAndSkidBySerialNumber removes certificate with specified subject and serial number from the list.

func (Keeper) RemoveNocIcaCertificate added in v1.4.0

func (k Keeper) RemoveNocIcaCertificate(ctx sdk.Context, subject string, subjectKeyID string, vid int32)

func (Keeper) RemoveNocIcaCertificateBySerialNumber added in v1.4.0

func (k Keeper) RemoveNocIcaCertificateBySerialNumber(ctx sdk.Context, subject string, subjectKeyID string, vid int32, serialNumber string)

func (Keeper) RemoveNocIcaCertificates added in v1.4.0

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

RemoveNocIcaCertificates removes a NocIcaCertificates from the store.

func (Keeper) RemoveNocRootCertificate added in v1.4.0

func (k Keeper) RemoveNocRootCertificate(ctx sdk.Context, subject string, subjectKeyID string, vid int32)

func (Keeper) RemoveNocRootCertificateBySerialNumber added in v1.4.0

func (k Keeper) RemoveNocRootCertificateBySerialNumber(ctx sdk.Context, subject string, subjectKeyID string, vid int32, serialNumber string)

func (Keeper) RemoveNocRootCertificates added in v1.4.0

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

)

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

func (k Keeper) RemoveProposedCertificate(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

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

func (k Keeper) RemoveRejectedCertificate(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveRejectedCertificate removes a rejectedCertificate from the store.

func (Keeper) RemoveRevokedCertificates

func (k Keeper) RemoveRevokedCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,
)

RemoveRevokedCertificates removes a revokedCertificates from the store.

func (Keeper) RemoveRevokedNocIcaCertificates added in v1.4.4

func (k Keeper) RemoveRevokedNocIcaCertificates(
	ctx sdk.Context,
	subject string,
	subjectKeyID string,

)

RemoveRevokedNocIcaCertificates removes a revokedNocIcaCertificates 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

func (k Keeper) RemoveRevokedRootCertificates(ctx sdk.Context)

RemoveRevokedRootCertificates removes revokedRootCertificates from the store.

func (Keeper) RemoveUniqueCertificate

func (k Keeper) RemoveUniqueCertificate(
	ctx sdk.Context,
	issuer string,
	serialNumber string,
)

RemoveUniqueCertificate removes a uniqueCertificate from the store.

func (Keeper) SetAllCertificates added in v1.4.4

func (k Keeper) SetAllCertificates(ctx sdk.Context, certificates types.AllCertificates)

SetAllCertificates set a specific certificates in the store from its index

func (Keeper) SetAllCertificatesBySubject added in v1.4.4

func (k Keeper) SetAllCertificatesBySubject(ctx sdk.Context, allCertificatesBySubject types.AllCertificatesBySubject)

SetAllCertificatesBySubject set a specific allCertificatesBySubject in the store from its index

func (Keeper) SetAllCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) SetAllCertificatesBySubjectKeyID(ctx sdk.Context, allCertificatesBySubjectKeyID types.AllCertificatesBySubjectKeyId)

SetAllCertificatesBySubjectKeyID set a specific AllCertificatesBySubjectKeyId in the store from its index.

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) SetNocCertificates added in v1.4.4

func (k Keeper) SetNocCertificates(ctx sdk.Context, nocCertificates types.NocCertificates)

SetNocCertificates set a specific nocCertificates in the store from its index

func (Keeper) SetNocCertificatesBySubject added in v1.4.4

func (k Keeper) SetNocCertificatesBySubject(ctx sdk.Context, nocCertificatesBySubject types.NocCertificatesBySubject)

SetNocCertificatesBySubject set a specific nocCertificatesBySubject in the store from its index

func (Keeper) SetNocCertificatesBySubjectKeyID added in v1.4.4

func (k Keeper) SetNocCertificatesBySubjectKeyID(ctx sdk.Context, nocCertificatesBySubjectKeyID types.NocCertificatesBySubjectKeyID)

SetNocCertificatesBySubjectKeyID set a specific nocCertificatesBySubjectKeyId in the store from its index

func (Keeper) SetNocCertificatesByVidAndSkid added in v1.4.1

func (k Keeper) SetNocCertificatesByVidAndSkid(ctx sdk.Context, nocCertificatesByVidAndSkid types.NocCertificatesByVidAndSkid)

SetNocCertificatesByVidAndSkid set a specific nocCertificatesByVidAndSkid 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) SetRevokedNocIcaCertificates added in v1.4.4

func (k Keeper) SetRevokedNocIcaCertificates(ctx sdk.Context, revokedNocIcaCertificates types.RevokedNocIcaCertificates)

SetRevokedNocIcaCertificates set a specific revokedNocIcaCertificates 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

func NewMigrator(keeper Keeper) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v1.4.0

func (m Migrator) Migrate1to2(_ sdk.Context) error

Migrate1to2 migrates from version 1 to 2.

func (Migrator) Migrate2to3 added in v1.4.0

func (m Migrator) Migrate2to3(ctx sdk.Context) error

Migrate2to3 migrates from version 2 to 3.

func (Migrator) Migrate3to4 added in v1.4.4

func (m Migrator) Migrate3to4(ctx sdk.Context) error

Migrate3to4 migrates from version 3 to 4.

Source Files

Jump to

Keyboard shortcuts

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