environment

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 12 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,
) *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 (*Sink) GetEnvironment

func (s *Sink) GetEnvironment() *manifestsv1alpha1.PackageEnvironment

func (*Sink) SetEnvironment

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

type Sinker

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

func ImplementsSinker

func ImplementsSinker(i []interface{}) []Sinker

Jump to

Keyboard shortcuts

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