kafkacmdutil

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransformKafkaRequest

func TransformKafkaRequest(kafka *kafkamgmtclient.KafkaRequest) *kafkamgmtclient.KafkaRequest

TransformKafkaRequest modifies fields from the KafkaRequest payload object The main transformation is appending ":443" to the Bootstrap Server URL

func TransformKafkaRequestListItems

func TransformKafkaRequestListItems(items []kafkamgmtclient.KafkaRequest) []kafkamgmtclient.KafkaRequest

TransformKafkaRequestListItems modifies fields fields from a list of kafka instances The main transformation is appending ":443" to the Bootstrap Server URL

Types

type Validator

type Validator struct {
	Localizer  localize.Localizer
	Connection factory.ConnectionFunc
}

Validator is a type for validating Kafka configuration values

func (*Validator) ValidateName

func (v *Validator) ValidateName(val interface{}) error

ValidateName validates the proposed name of a Kafka instance

func (*Validator) ValidateNameIsAvailable

func (v *Validator) ValidateNameIsAvailable(val interface{}) error

ValidateNameIsAvailable checks if a kafka instance with the given name already exists

func (*Validator) ValidateSearchInput

func (v *Validator) ValidateSearchInput(val interface{}) error

ValidateSearchInput validates the text provided to filter the Kafka instances

Jump to

Keyboard shortcuts

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