Documentation ¶
Index ¶
- func CheckCrypto(cryptoValidator CryptoValidator, instance v1.Object, checkClientAuth bool) error
- func CheckIfCertsDifferent(current map[string][]byte, updated []string) (bool, error)
- func ConvertCertsToBytes(certs []string) ([][]byte, error)
- func GetAdminCertsFromSecret(client k8sclient.Client, instance v1.Object) map[string][]byte
- func GetAdminCertsFromSpec(spec *current.SecretSpec) []string
- func GetCommonEnrollers(cryptos *config.Cryptos, enrollmentSpec *current.EnrollmentSpec, ...) error
- func GetConfigFromConfigMap(client k8sclient.Client, instance v1.Object) (*corev1.ConfigMap, error)
- func GetMSPCrypto(cryptos *config.Cryptos, mspSpec *current.MSPSpec) error
- type CryptoValidator
- type Instance
- type SecretType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCrypto ¶
func CheckCrypto(cryptoValidator CryptoValidator, instance v1.Object, checkClientAuth bool) error
func CheckIfCertsDifferent ¶
Check for equality between two list of certificates. Order of certificates in the lists is ignored, if the two lists contain the same exact certificates this returns true
func ConvertCertsToBytes ¶
func GetAdminCertsFromSecret ¶
func GetAdminCertsFromSpec ¶
func GetAdminCertsFromSpec(spec *current.SecretSpec) []string
func GetCommonEnrollers ¶
func GetCommonEnrollers(cryptos *config.Cryptos, enrollmentSpec *current.EnrollmentSpec, storagePath string) error
NOTE: Modifies cryptos object passed as param
func GetConfigFromConfigMap ¶
Types ¶
type CryptoValidator ¶
Click to show internal directories.
Click to hide internal directories.