v1alpha1

package
v0.0.0-...-ffa91d9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the fabric v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=fabric.hyperledger.org

Package v1alpha1 contains API Schema definitions for the fabric v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=fabric.hyperledger.org

Package v1alpha1 contains API Schema definitions for the fabric v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=fabric.hyperledger.org

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "fabric.hyperledger.org", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type CA

type CA struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CASpec     `json:"spec,omitempty"`
	Status NodeStatus `json:"status,omitempty"`
}

CA is the Schema for the cas API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*CA) DeepCopy

func (in *CA) DeepCopy() *CA

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CA.

func (*CA) DeepCopyInto

func (in *CA) DeepCopyInto(out *CA)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CA) DeepCopyObject

func (in *CA) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CACerts

type CACerts struct {
	Cert    string `json:"cert,omitempty"`
	Key     string `json:"key,omitempty"`
	TLSCert string `json:"tlsCert,omitempty"`
	TLSKey  string `json:"tlsKey,omitempty"`
}

CACerts defines the desired state of CA +k8s:openapi-gen=true

func (*CACerts) DeepCopy

func (in *CACerts) DeepCopy() *CACerts

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CACerts.

func (*CACerts) DeepCopyInto

func (in *CACerts) DeepCopyInto(out *CACerts)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CAList

type CAList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CA `json:"items"`
}

CAList contains a list of CA

func (*CAList) DeepCopy

func (in *CAList) DeepCopy() *CAList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CAList.

func (*CAList) DeepCopyInto

func (in *CAList) DeepCopyInto(out *CAList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CAList) DeepCopyObject

func (in *CAList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CASpec

type CASpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	Admin         string   `json:"admin"`
	AdminPassword string   `json:"adminPassword"`
	Certs         *CACerts `json:"certs,omitempty"`
	NodeSpec      `json:"nodeSpec,omitempty"`
}

CASpec defines the desired state of CA +k8s:openapi-gen=true

func (*CASpec) DeepCopy

func (in *CASpec) DeepCopy() *CASpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CASpec.

func (*CASpec) DeepCopyInto

func (in *CASpec) DeepCopyInto(out *CASpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CommonSpec

type CommonSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	MSP      `json:"msp"`
	TLS      `json:"tls"`
	NodeSpec `json:"nodeSpec,omitempty"`
}

+k8s:openapi-gen=true

func (*CommonSpec) DeepCopy

func (in *CommonSpec) DeepCopy() *CommonSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonSpec.

func (*CommonSpec) DeepCopyInto

func (in *CommonSpec) DeepCopyInto(out *CommonSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConfigParam

type ConfigParam struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

+k8s:openapi-gen=true

func (*ConfigParam) DeepCopy

func (in *ConfigParam) DeepCopy() *ConfigParam

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigParam.

func (*ConfigParam) DeepCopyInto

func (in *ConfigParam) DeepCopyInto(out *ConfigParam)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MSP

type MSP struct {
	// Administrator's certificates
	AdminCerts []string `json:"adminCerts,required"`
	// CA certificates
	CaCerts []string `json:"caCerts,required"`
	// node private key
	KeyStore string `json:"keyStore,required"`
	// node certificate
	SignCerts string `json:"signCerts,required"`
	// ca tls certificates
	TLSCacerts []string `json:"tlsCacerts,omitempty"`
}

The corresponding msp structure for node such as orderer or peer +k8s:openapi-gen=true

func (*MSP) DeepCopy

func (in *MSP) DeepCopy() *MSP

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MSP.

func (*MSP) DeepCopyInto

func (in *MSP) DeepCopyInto(out *MSP)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeSpec

type NodeSpec struct {
	Image        string                      `json:"image"`
	ConfigParams []ConfigParam               `json:"configParams"`
	Hosts        []string                    `json:"hosts,omitempty"`
	Resources    corev1.ResourceRequirements `json:"resources,omitempty"`
	StorageClass string                      `json:"storageClass,omitempty"`
	StorageSize  string                      `json:"storageSize,omitempty"`
}

+k8s:openapi-gen=true

func (*NodeSpec) DeepCopy

func (in *NodeSpec) DeepCopy() *NodeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec.

func (*NodeSpec) DeepCopyInto

func (in *NodeSpec) DeepCopyInto(out *NodeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeStatus

type NodeStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	AccessPoint string `json:"accessPoint"`
}

NodeStatus defines the observed state of CA +k8s:openapi-gen=true

func (*NodeStatus) DeepCopy

func (in *NodeStatus) DeepCopy() *NodeStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatus.

func (*NodeStatus) DeepCopyInto

func (in *NodeStatus) DeepCopyInto(out *NodeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Orderer

type Orderer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CommonSpec `json:"spec"`
	Status NodeStatus `json:"status,omitempty"`
}

Orderer is the Schema for the orderers API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*Orderer) DeepCopy

func (in *Orderer) DeepCopy() *Orderer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Orderer.

func (*Orderer) DeepCopyInto

func (in *Orderer) DeepCopyInto(out *Orderer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Orderer) DeepCopyObject

func (in *Orderer) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type OrdererList

type OrdererList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Orderer `json:"items"`
}

OrdererList contains a list of Orderer

func (*OrdererList) DeepCopy

func (in *OrdererList) DeepCopy() *OrdererList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrdererList.

func (*OrdererList) DeepCopyInto

func (in *OrdererList) DeepCopyInto(out *OrdererList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*OrdererList) DeepCopyObject

func (in *OrdererList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type Peer

type Peer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CommonSpec `json:"spec"`
	Status NodeStatus `json:"status,omitempty"`
}

Peer is the Schema for the peers API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*Peer) DeepCopy

func (in *Peer) DeepCopy() *Peer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Peer.

func (*Peer) DeepCopyInto

func (in *Peer) DeepCopyInto(out *Peer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Peer) DeepCopyObject

func (in *Peer) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PeerList

type PeerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Peer `json:"items"`
}

PeerList contains a list of Peer

func (*PeerList) DeepCopy

func (in *PeerList) DeepCopy() *PeerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeerList.

func (*PeerList) DeepCopyInto

func (in *PeerList) DeepCopyInto(out *PeerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PeerList) DeepCopyObject

func (in *PeerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TLS

type TLS struct {
	// node certificate
	TLSCert string `json:"tlsCert,required"`
	// node private key
	TLSKey string `json:"tlsKey,required"`
}

+k8s:openapi-gen=true

func (*TLS) DeepCopy

func (in *TLS) DeepCopy() *TLS

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLS.

func (*TLS) DeepCopyInto

func (in *TLS) DeepCopyInto(out *TLS)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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