namespace

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	NonEmptyNamespaces(context.Context, map[string]struct{}) error
	Name() string
}

type HelmChecker

type HelmChecker struct {
	// contains filtered or unexported fields
}

func NewHelmChecker

func NewHelmChecker() *HelmChecker

func (*HelmChecker) Name

func (h *HelmChecker) Name() string

func (*HelmChecker) NonEmptyNamespaces

func (h *HelmChecker) NonEmptyNamespaces(_ context.Context, nonEmptyNamespaces map[string]struct{}) error

type NamespacesService

type NamespacesService struct {
	// contains filtered or unexported fields
}

func NewNamespacesService

func NewNamespacesService(client core.NamespaceInterface, dynamicClient dynamic.Interface, configuration ServiceConfiguration) NamespacesService

NewNamespacesService creates a new Service instance

func (NamespacesService) Delete

func (nss NamespacesService) Delete(ctx context.Context, namespaces []corev1.Namespace) error

func (NamespacesService) GetEmptyFor

func (nss NamespacesService) GetEmptyFor(ctx context.Context, namespaces []corev1.Namespace, duration string) ([]corev1.Namespace, error)

func (NamespacesService) List

func (nss NamespacesService) List(ctx context.Context, listOptions metav1.ListOptions) ([]corev1.Namespace, error)

func (NamespacesService) Print

func (nss NamespacesService) Print(namespaces []corev1.Namespace)

type ResourceChecker

type ResourceChecker struct {
	// contains filtered or unexported fields
}

func NewResourceChecker

func NewResourceChecker(dynamicClient dynamic.Interface) *ResourceChecker

func (ResourceChecker) Name

func (rc ResourceChecker) Name() string

func (ResourceChecker) NonEmptyNamespaces

func (rc ResourceChecker) NonEmptyNamespaces(ctx context.Context, namespaceMap map[string]struct{}) error

type ServiceConfiguration

type ServiceConfiguration struct {
	Batch bool
}

Jump to

Keyboard shortcuts

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