Documentation ¶
Index ¶
- func ConnectorTypeToString(connectorType apiv1.Connector_Type) string
- func DisplayConfigParams(cfg map[string]*configv1.Parameter)
- func DisplayConnectorConfig(cfg *apiv1.Connector_Config, indentation int)
- func DisplayProcessors(processors []*apiv1.Processor, indent int)
- func FormatLongString(paragraph string, maxLineLength int) string
- func Indentation(level int) string
- func IsEmpty(s string) bool
- func PrettyProtoEnum(prefix, protoEnum string) string
- func PrintStatusFromProtoString(protoStatus string) string
- func PrintTime(ts *timestamppb.Timestamp) string
- func ProcessorParentToString(processorParentType apiv1.Processor_Parent_Type) string
- type YAMLTree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectorTypeToString ¶
func ConnectorTypeToString(connectorType apiv1.Connector_Type) string
ConnectorTypeToString returns a human-readable string from a connector type
func DisplayConfigParams ¶
func DisplayConnectorConfig ¶
func DisplayConnectorConfig(cfg *apiv1.Connector_Config, indentation int)
DisplayConnectorConfig prints the connector config in a human-readable format
func DisplayProcessors ¶
DisplayProcessors prints the processors in a human-readable format
func FormatLongString ¶
FormatLongString splits a string into multiple lines depending on the maxLineLength.
func Indentation ¶
Indentation returns a string with the number of spaces equal to the level
func PrettyProtoEnum ¶
PrettyProtoEnum returns a human-readable string from a proto enum
func PrintStatusFromProtoString ¶
PrintStatusFromProtoString returns a human-readable status from a proto status
func PrintTime ¶
func PrintTime(ts *timestamppb.Timestamp) string
PrintTime returns a human-readable time from a timestamp
func ProcessorParentToString ¶
func ProcessorParentToString(processorParentType apiv1.Processor_Parent_Type) string
ProcessorParentToString returns a human-readable string from a processor parent type
Types ¶
type YAMLTree ¶
type YAMLTree struct {
Root *yaml.Node
}
YAMLTree represents a YAML document. It makes it possible to insert value nodes with comments.
func NewYAMLTree ¶
func NewYAMLTree() *YAMLTree