extensions

package
v0.0.0-...-1543348 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config []component.ID

Config represents the ordered list of extensions configured for the service.

type Extensions

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

Extensions is a map of extensions created from extension configs.

func New

func New(ctx context.Context, set Settings, cfg Config) (*Extensions, error)

New creates a new Extensions from Config.

func (*Extensions) GetExtensions

func (bes *Extensions) GetExtensions() map[component.ID]component.Component

func (*Extensions) HandleZPages

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) Shutdown

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

Shutdown stops all extensions.

func (*Extensions) Start

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

Start starts all extensions.

type Settings

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

	// Drepecated: [v0.68.0] use Extensions.
	Configs map[component.ID]component.Config

	// Drepecated: [v0.68.0] use Extensions.
	Factories map[component.Type]extension.Factory

	// Extensions builder for extensions.
	Extensions *extension.Builder
}

Settings holds configuration for building Extensions.

Jump to

Keyboard shortcuts

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