builder

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildVirtualWorkspace

func BuildVirtualWorkspace(cfg *clientrest.Config, rootPathPrefix string, wildcardsClusterWorkspaces tenancyv1alpha1informers.ClusterWorkspaceClusterInformer, wildcardsRbacInformers kcprbacv1informers.ClusterInterface, kubeClusterClient kcpkubernetesclientset.ClusterInterface, kcpClusterClient kcpclientset.ClusterInterface, authorizationCacheResyncPeriod time.Duration, authorizationCacheResyncJitterFactor float64, authorizationCacheResyncSliding bool) framework.VirtualWorkspace

func CreateAndStartOrg added in v0.6.0

func CreateAndStartOrg(
	org logicalcluster.Name,
	rbacInformers kcprbacv1informers.ClusterInterface,
	clusterWorkspaceInformer tenancyv1alpha1informers.ClusterWorkspaceClusterInformer,
	initialWatchers []workspaceauth.CacheWatcher,
	period time.Duration, jitterFactor float64, sliding bool,
) *authCacheClusterWorkspaces

CreateAndStartOrg creates an Org that contains all the required clients and caches to retrieve user workspaces inside an org As part of an Org, a WorkspaceAuthCache is created and ensured to be started.

func NewOrgListener added in v0.6.0

func NewOrgListener(informer tenancyv1alpha1informers.ClusterWorkspaceClusterInformer, newClusterWorkspaces func(orgClusterName logicalcluster.Name, initialWatchers []authorization.CacheWatcher) registry.FilteredClusterWorkspaces) *orgListener

Types

type Stoppable added in v0.6.0

type Stoppable interface {
	Stop()
}

Jump to

Keyboard shortcuts

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