k8s

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8Ports

type K8Ports struct {
	Spec struct {
		Ports []struct {
			NodePort   int `json:"nodePort,omitempty"`
			TargetPort int `json:"targetPort,omitempty"`
		} `json:"ports,omitempty"`
	} `json:"spec,omitempty"`
}

type K8s

type K8s struct {
	KubeConfigPath string
	Action         string
	Arguments      []string
	Config         networkspec.Config
}

func (K8s) Args

func (k K8s) Args() []string

func (K8s) CheckK8sComponentsHealth

func (k K8s) CheckK8sComponentsHealth(config networkspec.Config) error

func (K8s) ConfigMapsNSecretsArgs

func (k K8s) ConfigMapsNSecretsArgs(componentName, k8sType string) []string

func (K8s) CreateMSPConfigMaps

func (k K8s) CreateMSPConfigMaps(config networkspec.Config) error

CreateMSPConfigMaps - create msp using configmap for peers, orderers and CA

func (K8s) DownK8sNetwork

func (k K8s) DownK8sNetwork(kubeConfigPath string, config networkspec.Config) error

DownK8sNetwork - To tear down the kubernates network

func (K8s) GenerateConfigurationFiles

func (k K8s) GenerateConfigurationFiles() error

GenerateConfigurationFiles - to generate all the configuration files

func (K8s) GenerateConnectionProfiles

func (k K8s) GenerateConnectionProfiles(config networkspec.Config) error

GenerateConnectionProfiles -- To generate conenction profiles

func (K8s) GetK8sExternalIP

func (k K8s) GetK8sExternalIP(config networkspec.Config, serviceName string) (string, error)

GetK8sExternalIP -- To get the externalIP of a fabric component

func (K8s) GetK8sServicePort

func (k K8s) GetK8sServicePort(serviceName, serviceType string, forHealth bool) (string, error)

GetK8sServicePort -- To get the port number of a fabric k8s component

func (K8s) K8sNetwork

func (k K8s) K8sNetwork(action string) error

func (K8s) LaunchK8sNetwork

func (k K8s) LaunchK8sNetwork(config networkspec.Config, kubeConfigPath string) error

LaunchK8sNetwork - to launch the kubernates components

func (K8s) VerifyContainersAreRunning

func (k K8s) VerifyContainersAreRunning() error

type LoadBalancerIP

type LoadBalancerIP struct {
	Status struct {
		LoadBalancer struct {
			Ingress []struct {
				IP string `json:"ip,omitempty"`
			} `json:"ingress,omitempty"`
		} `json:"loadBalancer,omitempty"`
	} `json:"status,omitempty"`
}

type NodePortIP

type NodePortIP struct {
	Items []struct {
		Status struct {
			Addresses []struct {
				Address string `json:"address,omitempty"`
				Type    string `json:"type,omitempty"`
			} `json:"addresses,omitempty"`
		} `json:"status,omitempty"`
	} `json:"items,omitempty"`
}

Jump to

Keyboard shortcuts

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