chaincode

package
v1.7.0-beta15 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

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

func (r *FabricChaincodeReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

+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