infracluster

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactoryFunc added in v0.1.1

type ClientFactoryFunc func(config *rest.Config, options k8sclient.Options) (k8sclient.Client, error)

ClientFactoryFunc defines the function to create a new client

type InfraCluster

type InfraCluster interface {
	GenerateInfraClusterClient(infraClusterSecretRef *corev1.ObjectReference, ownerNamespace string, context gocontext.Context) (k8sclient.Client, string, error)
}

func New

func New(client k8sclient.Client, noCachedClient k8sclient.Client) InfraCluster

New creates new InfraCluster instance

func NewWithFactory added in v0.1.1

func NewWithFactory(client k8sclient.Client, noCachedClient k8sclient.Client, factory ClientFactoryFunc) InfraCluster

NewWithFactory creates new InfraCluster instance that uses the provided client factory function.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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