Documentation ¶
Index ¶
- func FilterValidConsumerGroupIDs(f *factory.Factory, toComplete string) (validIDs []string, directive cobra.ShellCompDirective)
- func FilterValidTopicNameArgs(f *factory.Factory, toComplete string) (validNames []string, directive cobra.ShellCompDirective)
- func FindCloudProviderByName(cloudProviders []kafkamgmtclient.CloudProvider, name string) *kafkamgmtclient.CloudProvider
- func GetCloudProviderCompletionValues(f *factory.Factory) (validProviders []string, directive cobra.ShellCompDirective)
- func GetEnabledCloudProviderNames(cloudProviders []kafkamgmtclient.CloudProvider) []string
- func GetEnabledCloudRegionIDs(regions []kafkamgmtclient.CloudRegion) []string
- func RegisterNameFlagCompletionFunc(cmd *cobra.Command, f *factory.Factory) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterValidConsumerGroupIDs ¶ added in v0.36.3
func FilterValidConsumerGroupIDs(f *factory.Factory, toComplete string) (validIDs []string, directive cobra.ShellCompDirective)
FilterValidConsumerGroups returns the list of consumer group IDs from the API
func FilterValidTopicNameArgs ¶ added in v0.36.3
func FilterValidTopicNameArgs(f *factory.Factory, toComplete string) (validNames []string, directive cobra.ShellCompDirective)
FilterValidTopicNameArgs filters topics from the API and returns the names This is used in for dynamic completion of topic names
func FindCloudProviderByName ¶
func FindCloudProviderByName(cloudProviders []kafkamgmtclient.CloudProvider, name string) *kafkamgmtclient.CloudProvider
FindCloudProviderByName finds and returns a cloud provider item from the list by its name
func GetCloudProviderCompletionValues ¶
func GetCloudProviderCompletionValues(f *factory.Factory) (validProviders []string, directive cobra.ShellCompDirective)
GetCloudProviderCompletionValues returns the list of supported cloud providers for creating a Kafka instance This is used in the cmd.RegisterFlagCompletionFunc for dynamic completion of --provider
func GetEnabledCloudProviderNames ¶
func GetEnabledCloudProviderNames(cloudProviders []kafkamgmtclient.CloudProvider) []string
GetEnabledCloudProviderNames returns a list of cloud provider names from the enabled cloud providers
func GetEnabledCloudRegionIDs ¶
func GetEnabledCloudRegionIDs(regions []kafkamgmtclient.CloudRegion) []string
GetEnabledCloudRegionIDs extracts and returns a slice of the unique IDs of all enabled regions
Types ¶
This section is empty.