namespace

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "namespaces"

Name is the registry key for this scanner.

Variables

This section is empty.

Functions

func NewScanner

func NewScanner() scanner.Scanner

NewScanner returns a scanner that lists all namespaces in a cluster.

Types

type Data

type Data struct {
	// Count is the total number of namespaces.
	Count int `json:"count"`
	// Names lists all namespace names in sorted order.
	Names []string `json:"names"`
	// Labels maps namespace name to its label set.
	Labels map[string]map[string]string `json:"labels,omitempty"`
}

Data holds namespace information for one cluster.

Jump to

Keyboard shortcuts

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