host

package
v0.0.0-...-9a77538 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedHostClientInit

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

CachedHostClientInit takes care of initializing a cached host cluster client

func NewCachedHostClientInitializer

func NewCachedHostClientInitializer(scheme *runtime.Scheme, getHostCluster cluster.GetHostClusterFunc) *CachedHostClientInit

func (*CachedHostClientInit) GetHostClient

func (c *CachedHostClientInit) GetHostClient(ctx context.Context) (*NamespacedClient, error)

GetHostClient returns NamespacedClient backed by cached client for host operator namespace.

type ClientGetter

type ClientGetter func(ctx context.Context) (*NamespacedClient, error)

type NamespacedClient

type NamespacedClient struct {
	client.Client
	Namespace string
}

NamespacedClient holds the client and the operator namespace

func NewNamespacedClient

func NewNamespacedClient(client client.Client, namespace string) *NamespacedClient

Jump to

Keyboard shortcuts

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