config

package
v0.2.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddToScheme = localSchemeBuilder.AddToScheme
	Scheme      = runtime.NewScheme()
)

Functions

This section is empty.

Types

type Management

type Management struct {
	Ctx       context.Context
	ClientSet *kubernetes.Clientset
	Apply     apply.Apply
	EntClient *ent.Client

	CoreFactory    *corev1.Factory
	AppsFactory    *appsv1.Factory
	RbacFactory    *rbacv1.Factory
	BatchFactory   *batchv1.Factory
	StorageFactory *storagev1.Factory
	MgmtFactory    *ctlmgmtv1.Factory
	UpgradeFactory *upgrade.Factory
	LLMFactory     *ctlmlv1.Factory
	KubeRayFactory *kuberayv1.Factory
	NvidiaFactory  *nvidiav1.Factory
	RookFactory    *rookv1.Factory
	HelmFactory    *helmv1.Factory
	// contains filtered or unexported fields
}

func (*Management) GetEntClient

func (m *Management) GetEntClient() *ent.Client

func (*Management) SetEntClient

func (m *Management) SetEntClient(client *ent.Client)

func (*Management) Start

func (m *Management) Start(threads int) error

type Options

type Options struct {
	Context         context.Context
	HTTPListenPort  int
	HTTPSListenPort int
	Threadiness     int
	config.CommonOptions
}

Options define the api server options

type Scaled

type Scaled struct {
	Ctx        context.Context
	ClientSet  *kubernetes.Clientset
	Management *Management

	CoreFactory *corev1.Factory
	MgmtFactory *ctlmgmtv1.Factory
	// contains filtered or unexported fields
}

func ScaledWithContext

func ScaledWithContext(ctx context.Context) *Scaled

func SetupScaled

func SetupScaled(ctx context.Context, restConfig *rest.Config, opts *generic.FactoryOptions) (
	context.Context, *Scaled, error)

func (*Scaled) Start

func (s *Scaled) Start(threads int) error

Jump to

Keyboard shortcuts

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