hostresources

package
v0.0.0-...-26d813d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetHostClient = func(token, masterURL string) (*kubeconfig.KubeClients, error) {
	return kubeconfig.CreateClientSetsFromToken(token, masterURL)
}

GetHostClient returns kubeClient and kusciaClient of host cluster.

Functions

This section is empty.

Types

type Options

type Options struct {
	MemberKusciaClient          kusciaclientset.Interface
	MemberDomainLister          kuscialistersv1alpha1.DomainLister
	MemberDeploymentLister      kuscialistersv1alpha1.KusciaDeploymentLister
	MemberJobLister             kuscialistersv1alpha1.KusciaJobLister
	MemberTaskLister            kuscialistersv1alpha1.KusciaTaskLister
	MemberTaskResourceLister    kuscialistersv1alpha1.TaskResourceLister
	MemberDomainDataLister      kuscialistersv1alpha1.DomainDataLister
	MemberDomainDataGrantLister kuscialistersv1alpha1.DomainDataGrantLister
}

Options defines some options for host resources manager.

type ResourcesAccessor

type ResourcesAccessor interface {
	HasSynced() bool
	HostKusciaClient() kusciaclientset.Interface
	HostJobLister() kuscialistersv1alpha1.KusciaJobLister
	HostJobSummaryLister() kuscialistersv1alpha1.KusciaJobSummaryLister
	HostTaskSummaryLister() kuscialistersv1alpha1.KusciaTaskSummaryLister
	HostDeploymentLister() kuscialistersv1alpha1.KusciaDeploymentLister
	HostDeploymentSummaryLister() kuscialistersv1alpha1.KusciaDeploymentSummaryLister
	HostDomainDataLister() kuscialistersv1alpha1.DomainDataLister
	HostDomainDataGrantLister() kuscialistersv1alpha1.DomainDataGrantLister
	EnqueueDeployment(string)
}

ResourcesAccessor is an interface to get host resources controller related information.

type ResourcesManager

type ResourcesManager interface {
	Register(host, member string) error
	Deregister(host, member string)
	SetWorkers(worker int)
	GetHostResourceAccessor(host, member string) ResourcesAccessor
	Stop()
	HasSynced() bool
}

ResourcesManager is an interface to manage host resources.

func NewHostResourcesManager

func NewHostResourcesManager(opts *Options) ResourcesManager

Jump to

Keyboard shortcuts

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