Documentation
¶
Index ¶
- func CheckDNS(clusterIP, fqdn string) error
- func DeleteDNS(fqdn string) error
- func GetInitContainer(vault VaultInit) []corev1.Container
- func GetOrdererServerPorts(target string) *[]crd.Server
- func GetOrdererVirtualServiceSpec(name, target string) *crd.VirtualServiceSpec
- func GetPeerServerPorts(target string) *[]crd.Server
- func GetPeerVirtualServiceSpec(name, target string) *crd.VirtualServiceSpec
- func NewGateway(gtw GatewayTemplate) *crd.Gateway
- func NewNamespace(name string) *corev1.Namespace
- func NewServiceAccount(name string, namespace string) *corev1.ServiceAccount
- func NewVirtualService(vsvc VirtualServiceTemplate) *crd.VirtualService
- type GatewayTemplate
- type VaultInit
- type VirtualServiceTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInitContainer ¶
GetInitContainer returns Vault init container spec
func GetOrdererServerPorts ¶
GetOrdererServerPorts returns server ports for orderer
func GetOrdererVirtualServiceSpec ¶
func GetOrdererVirtualServiceSpec(name, target string) *crd.VirtualServiceSpec
GetOrdererVirtualServiceSpec returns virtual service spec for orderer
func GetPeerServerPorts ¶
GetPeerServerPorts returns server ports for peer
func GetPeerVirtualServiceSpec ¶
func GetPeerVirtualServiceSpec(name, target string) *crd.VirtualServiceSpec
GetPeerVirtualServiceSpec returns virtual service spec for peer
func NewNamespace ¶
NewNamespace returns new K8S namespace
func NewServiceAccount ¶
func NewServiceAccount(name string, namespace string) *corev1.ServiceAccount
NewServiceAccount returns new K8S service account
func NewVirtualService ¶
func NewVirtualService(vsvc VirtualServiceTemplate) *crd.VirtualService
NewVirtualService returns new virtual service
Types ¶
type GatewayTemplate ¶
type GatewayTemplate struct { Name string Namespace string Servers *[]crd.Server Label map[string]string OwnerReferences []metav1.OwnerReference }
GatewayTemplate describes gateway
type VaultInit ¶
type VaultInit struct { Organization string CommonName string VaultAddress string TLSPath string MSPPath string Cluster string NodeType string }
VaultInit vault init container configuration
type VirtualServiceTemplate ¶
type VirtualServiceTemplate struct { Name string Namespace string Spec *crd.VirtualServiceSpec Label map[string]string OwnerReferences []metav1.OwnerReference }
VirtualServiceTemplate describes virtual service
Click to show internal directories.
Click to hide internal directories.