contextutil

package
v0.52.2-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnectorForServiceConfig added in v0.46.0

func GetConnectorForServiceConfig(currCtx *servicecontext.ServiceConfig, conn *connection.Connection, f *factory.Factory) (*connectormgmtclient.Connector, error)

func GetContext

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

GetContext returns the services associated with the context

func GetCurrentConnectorInstance added in v0.46.0

func GetCurrentConnectorInstance(conn *connection.Connection, f *factory.Factory) (*connectormgmtclient.Connector, error)

GetCurrentConnectorInstance returns the connector instance set in the currently selected 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 GetCurrentNamespaceInstance added in v0.49.0

func GetCurrentNamespaceInstance(conn *connection.Connection, f *factory.Factory) (*connectormgmtclient.ConnectorNamespace, error)

GetCurrentNamespaceInstance returns the namespace 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 GetNamespaceForServiceConfig added in v0.49.0

func GetNamespaceForServiceConfig(currCtx *servicecontext.ServiceConfig, conn *connection.Connection, f *factory.Factory) (*connectormgmtclient.ConnectorNamespace, error)

func SetCurrentConnectorInstance added in v0.49.0

func SetCurrentConnectorInstance(connector *connectormgmtclient.Connector, conn *connection.Connection, f *factory.Factory) error

func SetCurrentNamespaceInstance added in v0.49.0

func SetCurrentNamespaceInstance(namespace *connectormgmtclient.ConnectorNamespace, conn *connection.Connection, f *factory.Factory) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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