...

Package sagoodkey

import "github.com/letsencrypt/boulder/goodkey/sagoodkey"
Overview
Index

Overview ▾

func NewKeyPolicy

func NewKeyPolicy(config *goodkey.Config, bkc BlockedKeyCheckFunc) (goodkey.KeyPolicy, error)

NewKeyPolicy returns a KeyPolicy that uses a sa.BlockedKey method. See goodkey.NewKeyPolicy for more details about the policy itself.

type BlockedKeyCheckFunc

BlockedKeyCheckFunc is used to pass in the sa.BlockedKey method to KeyPolicy, rather than storing a full sa.SQLStorageAuthority. This makes testing significantly simpler.

type BlockedKeyCheckFunc func(context.Context, *sapb.KeyBlockedRequest, ...grpc.CallOption) (*sapb.Exists, error)