chaincode

package
v1.10.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CertificateSecretKey = "tls.crt"
	PrivateKeySecretKey  = "tls.key"
	RootCertSecretKey    = "tlsroot.crt"
)

Variables

View Source
var (
	ErrClientK8s = errors.New("k8sAPIClientError")
)

Functions

func CreateChaincodeCryptoMaterial

func CreateChaincodeCryptoMaterial(conf *hlfv1alpha1.FabricChaincode, caName string, caurl string, enrollID string, enrollSecret string, tlsCertString string, hosts []string) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)

Types

type FabricChaincodeReconciler

type FabricChaincodeReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Config *rest.Config
}

FabricChaincodeReconciler reconciles a FabricChaincode object

func (*FabricChaincodeReconciler) Reconcile

+kubebuilder:rbac:groups=hlf.kungfusoftware.es,resources=fabricchaincodes,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=hlf.kungfusoftware.es,resources=fabricchaincodes/status,verbs=get;update;patch +kubebuilder:rbac:groups=hlf.kungfusoftware.es,resources=fabricchaincodes/finalizers,verbs=get;update;patch

func (*FabricChaincodeReconciler) SetupWithManager

func (r *FabricChaincodeReconciler) SetupWithManager(mgr ctrl.Manager) error

type SecretChaincodeData

type SecretChaincodeData struct {
	Updated     bool
	Enabled     bool
	Certificate []byte
	PrivateKey  []byte
	RootCert    []byte
}

Jump to

Keyboard shortcuts

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