extensions

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extensions

type Extensions struct {
	// contains filtered or unexported fields
}

Extensions is a map of extensions created from extension configs.

func Build

func Build(ctx context.Context, set Settings) (*Extensions, error)

Build builds Extensions from config.

func (*Extensions) GetExtensions added in v0.55.0

func (bes *Extensions) GetExtensions() map[config.ComponentID]component.Extension

func (*Extensions) HandleZPages added in v0.55.0

func (bes *Extensions) HandleZPages(w http.ResponseWriter, r *http.Request)

func (*Extensions) NotifyPipelineNotReady

func (bes *Extensions) NotifyPipelineNotReady() error

func (*Extensions) NotifyPipelineReady

func (bes *Extensions) NotifyPipelineReady() error

func (*Extensions) ShutdownAll

func (bes *Extensions) ShutdownAll(ctx context.Context) error

ShutdownAll stops all extensions.

func (*Extensions) StartAll

func (bes *Extensions) StartAll(ctx context.Context, host component.Host) error

StartAll starts all extensions.

type Settings added in v0.55.0

type Settings struct {
	Telemetry component.TelemetrySettings
	BuildInfo component.BuildInfo

	// Configs is a map of config.ComponentID to config.Extension.
	Configs map[config.ComponentID]config.Extension

	// Factories maps extension type names in the config to the respective component.ExtensionFactory.
	Factories map[config.Type]component.ExtensionFactory

	// ServiceExtensions are the ordered list of extensions configured for the service.
	ServiceExtensions []config.ComponentID
}

Settings holds configuration for building Extensions.

Jump to

Keyboard shortcuts

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