contextutil

package
v0.41.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContext

func GetContext(svcContext *servicecontext.Context, localizer localize.Localizer, ctxName string) (*servicecontext.ServiceConfig, error)

GetContext returns the services associated with the context

func GetCurrentContext

func GetCurrentContext(svcContext *servicecontext.Context, localizer localize.Localizer) (*servicecontext.ServiceConfig, error)

GetCurrentContext returns the name of the currently selected context

func GetCurrentKafkaInstance

func GetCurrentKafkaInstance(f *factory.Factory) (*kafkamgmtclient.KafkaRequest, error)

GetCurrentKafkaInstance returns the Kafka instance set in the currently selected context

func GetCurrentRegistryInstance

func GetCurrentRegistryInstance(f *factory.Factory) (*registrymgmtclient.Registry, error)

GetCurrentRegistryInstance returns the Service Registry instance set in the currently selected context

func GetKafkaForServiceConfig

func GetKafkaForServiceConfig(currCtx *servicecontext.ServiceConfig, f *factory.Factory) (*kafkamgmtclient.KafkaRequest, error)

GetKafkaForServiceConfig fetching kafka service data using ServiceConfig

func GetRegistryForServiceConfig

func GetRegistryForServiceConfig(currCtx *servicecontext.ServiceConfig, f *factory.Factory) (*registrymgmtclient.Registry, error)

GetRegistryForServiceConfig fetching registry data for provided service config

Types

This section is empty.

Jump to

Keyboard shortcuts

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