tenantnamespace

package
v0.3.2-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package tenantnamespace provides an interface, and its implementation, to handle the creation and the management of tenant namespaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	CreateNamespace(cluster discoveryv1alpha1.ClusterIdentity) (*v1.Namespace, error)
	GetNamespace(cluster discoveryv1alpha1.ClusterIdentity) (*v1.Namespace, error)
	BindClusterRoles(cluster discoveryv1alpha1.ClusterIdentity, clusterRoles ...*rbacv1.ClusterRole) ([]*rbacv1.RoleBinding, error)
	UnbindClusterRoles(cluster discoveryv1alpha1.ClusterIdentity, clusterRoles ...string) error
	BindIncomingClusterWideRole(ctx context.Context, cluster discoveryv1alpha1.ClusterIdentity) (*rbacv1.ClusterRoleBinding, error)
	UnbindIncomingClusterWideRole(ctx context.Context, cluster discoveryv1alpha1.ClusterIdentity) error
}

Manager provides the methods to handle the creation and the management of tenant namespaces.

func NewTenantNamespaceManager

func NewTenantNamespaceManager(client kubernetes.Interface) Manager

NewTenantNamespaceManager creates a new TenantNamespaceManager object.

Jump to

Keyboard shortcuts

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