environment

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

The environment package contains probing functionality to detect information on the Kubernetes cluster environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(
	client client.Client,
	discoveryClient serverVersionDiscoverer,
	restMapper restMapper,
) *Manager

func (*Manager) Init

func (m *Manager) Init(ctx context.Context, sinks []Sinker) error

func (*Manager) Start

func (m *Manager) Start(ctx context.Context) error

Continuously updates the environment information.

type Sink

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

func NewSink added in v1.9.4

func NewSink(c client.Client) *Sink

func (*Sink) GetEnvironment

func (s *Sink) GetEnvironment(ctx context.Context, namespace string) (*manifests.PackageEnvironment, error)

func (*Sink) SetEnvironment

func (s *Sink) SetEnvironment(env *manifests.PackageEnvironment)

type Sinker

type Sinker interface {
	SetEnvironment(env *manifests.PackageEnvironment)
}

func ImplementsSinker

func ImplementsSinker(i []any) []Sinker

Jump to

Keyboard shortcuts

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