keeper

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

Types

type Keeper

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

func NewKeeper

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

	dclauthKeeper types.DclauthKeeper,
) *Keeper

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) 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) AddRevokedCertificates

func (k Keeper) AddRevokedCertificates(ctx sdk.Context, approvedCertificates types.ApprovedCertificates)

Add revoked certificates to the list of revoked 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) 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) GetAllChildCertificates

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

GetAllChildCertificates returns all childCertificates.

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) 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) 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) 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,
) (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) 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,
) 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) RejectedCertificateAll added in v0.11.0

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) RemoveApprovedCertificatesBySubject

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

RemoveApprovedCertificatesBySubject removes a approvedCertificatesBySubject from the store.

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) 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,
)

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) 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) 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) 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) 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) 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.

Jump to

Keyboard shortcuts

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