nifi

package
v0.4.3-release Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefixNodeNameTemplate = "%s-"
	SuffixNodeNameTemplate = "-node"
	RootNodeNameTemplate   = "%d"
	NodeNameTemplate       = PrefixNodeNameTemplate + RootNodeNameTemplate + SuffixNodeNameTemplate
	// AllNodeServiceTemplate template for Nifi all nodes service
	AllNodeServiceTemplate = "%s-all-node"
	// HeadlessServiceTemplate template for Nifi headless service
	HeadlessServiceTemplate = "%s-headless"

	// TimeStampLayout defines the date format used.
	TimeStampLayout = "Mon, 2 Jan 2006 15:04:05 GMT"
)

Variables

This section is empty.

Functions

func ComputeNiFiAddress

func ComputeNiFiAddress(
	clusterName, namespace string,
	headlessServiceEnabled bool,
	clusterDomain string,
	useExternalDNS bool,
	internalListeners []v1alpha1.InternalListenerConfig) string

func ComputeNiFiHostname

func ComputeNiFiHostname(
	clusterName, namespace string,
	headlessServiceEnabled bool,
	clusterDomain string,
	useExternalDNS bool) string

func ComputeNodeAddress

func ComputeNodeAddress(
	nodeId int32,
	clusterName, namespace string,
	headlessServiceEnabled bool,
	clusterDomain string,
	useExternalDNS bool,
	internalListeners []v1alpha1.InternalListenerConfig) string

func ComputeNodeHostname

func ComputeNodeHostname(
	nodeId int32,
	clusterName, namespace string,
	headlessServiceEnabled bool,
	clusterDomain string,
	useExternalDNS bool) string

func ComputeNodeHostnameFromCluster

func ComputeNodeHostnameFromCluster(nodeId int32, cluster *v1alpha1.NifiCluster) string

func ComputeNodeName

func ComputeNodeName(nodeId int32, clusterName string) string

ComputeNodeName return the node name with right format.

func ComputeNodeServiceName

func ComputeNodeServiceName(nodeId int32, clusterName string, headlessServiceEnabled bool) string

func ComputeNodeServiceNameFull

func ComputeNodeServiceNameFull(nodeId int32, clusterName, namespace string, headlessServiceEnabled, useExternalDNS bool) string

ComputeNodeServiceNameFull return the node service name in svc format

func ComputeNodeServiceNameNs

func ComputeNodeServiceNameNs(nodeId int32, clusterName, namespace string, headlessServiceEnabled, useExternalDNS bool) string

ComputeNodeServiceNameNs return the node service name in namespace format

func ComputeServiceName

func ComputeServiceName(clusterName string, headlessServiceEnabled bool) string

ComputeServiceName return the service name with the right format

func ComputeServiceNameFull

func ComputeServiceNameFull(clusterName, namespace string, headlessServiceEnabled, useExternalDNS bool) string

func ComputeServiceNameWithNamespace

func ComputeServiceNameWithNamespace(clusterName, namespace string, headlessServiceEnabled, useExternalDNS bool) string

ComputeServiceNameWithNamespace return the service name with namespace with the right format

func GenerateNiFiAddressFromCluster

func GenerateNiFiAddressFromCluster(cluster *v1alpha1.NifiCluster) string

func GenerateNodeAddressFromCluster

func GenerateNodeAddressFromCluster(nodeId int32, cluster *v1alpha1.NifiCluster) string

func InternalListenerForComm

func InternalListenerForComm(internalListeners []v1alpha1.InternalListenerConfig) v1alpha1.InternalListenerConfig

func ParseStringToInt32

func ParseStringToInt32(nodeId string) (int32, error)

func ParseTimeStampToUnixTime

func ParseTimeStampToUnixTime(timestamp string) (time.Time, error)

ParseTimeStampToUnixTime parses the given CC timeStamp to time format

Types

This section is empty.

Jump to

Keyboard shortcuts

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