core

package
v0.2.1-0...-4d7afa4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package core contains structs and functions to aggregate built-in kube clients for use elsewhere

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeClients

func InitializeClients(ctx context.Context, logger logging.Logger, clients ...Initializable) error

InitializeClients initializes a list of clients, collecting all errors.

Types

type Clients

type Clients struct {
	Dynamic   dynamic.Interface
	Discovery discovery.DiscoveryInterface
	Tree      *xrm.Client
}

Clients aggregates the root level of built-in kube clients that we use to initialize our wrapper interfaces.

func NewClients

func NewClients(config *rest.Config) (*Clients, error)

NewClients initializes a bundle of built-in kube clients using the given rest config.

type Initializable

type Initializable interface {
	Initialize(ctx context.Context) error
}

Initializable is an interface for any client that can be initialized.

Jump to

Keyboard shortcuts

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