Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "namespaces"
Name is the registry key for this scanner.
Variables ¶
This section is empty.
Functions ¶
func NewScanner ¶
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.
Click to show internal directories.
Click to hide internal directories.