environment

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 17 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