contextutil

package
v0.45.3-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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