Documentation ¶
Index ¶
- Constants
- func EnrollmentConfigValidation(enrollConfig *current.Enrollment) error
- func GetClient(client *lib.Client, bccsp *commonapi.BCCSP) *lib.Client
- type HSMDaemonReenroller
- type HSMReenroller
- type Identity
- type Instance
- type Reenroller
- func (r *Reenroller) DeleteKeystoreFile() error
- func (r *Reenroller) InitClient() error
- func (r *Reenroller) IsCAReachable() bool
- func (r *Reenroller) LoadIdentity(certPemBytes []byte, keyPemBytes []byte, hsmEnabled bool) error
- func (r *Reenroller) ReadKey() ([]byte, error)
- func (r *Reenroller) Reenroll() (*config.Response, error)
Constants ¶
View Source
const ( // HSMClient is the name of container that contain the HSM client library HSMClient = "hsm-client" // CertGen is the name of container that runs the command to generate the certificate for the CA CertGen = "certgen" )
Variables ¶
This section is empty.
Functions ¶
func EnrollmentConfigValidation ¶
func EnrollmentConfigValidation(enrollConfig *current.Enrollment) error
Types ¶
type HSMDaemonReenroller ¶
type HSMDaemonReenroller struct { CAClient *lib.Client Identity Identity HomeDir string Config *current.Enrollment BCCSP bool Timeout time.Duration HSMConfig *config.HSMConfig Instance Instance Client k8sclient.Client Scheme *runtime.Scheme NewKey bool }
func NewHSMDaemonReenroller ¶
func (*HSMDaemonReenroller) IsCAReachable ¶
func (r *HSMDaemonReenroller) IsCAReachable() bool
type HSMReenroller ¶
type HSMReenroller struct { CAClient *lib.Client Identity Identity HomeDir string Config *current.Enrollment BCCSP bool Timeout time.Duration HSMConfig *config.HSMConfig Instance Instance Client k8sclient.Client Scheme *runtime.Scheme NewKey bool }
func NewHSMReenroller ¶
func (*HSMReenroller) IsCAReachable ¶
func (r *HSMReenroller) IsCAReachable() bool
type Identity ¶
type Identity interface { Reenroll(req *api.ReenrollmentRequest) (*lib.EnrollmentResponse, error) GetECert() *fabricx509.Signer GetClient() *lib.Client }
type Instance ¶
type Instance interface { metav1.Object EnrollerImage() string GetPullSecrets() []corev1.LocalObjectReference GetResource(current.Component) corev1.ResourceRequirements PVCName() string }
type Reenroller ¶
type Reenroller struct { Client *lib.Client Identity Identity HomeDir string Config *current.Enrollment BCCSP bool Timeout time.Duration NewKey bool }
func New ¶
func New(cfg *current.Enrollment, homeDir string, bccsp *commonapi.BCCSP, timeoutstring string, newKey bool) (*Reenroller, error)
func (*Reenroller) DeleteKeystoreFile ¶
func (r *Reenroller) DeleteKeystoreFile() error
func (*Reenroller) InitClient ¶
func (r *Reenroller) InitClient() error
func (*Reenroller) IsCAReachable ¶
func (r *Reenroller) IsCAReachable() bool
func (*Reenroller) LoadIdentity ¶
func (r *Reenroller) LoadIdentity(certPemBytes []byte, keyPemBytes []byte, hsmEnabled bool) error
func (*Reenroller) ReadKey ¶
func (r *Reenroller) ReadKey() ([]byte, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.