Help us shape the future of Go! Take the 2026 Go Developer Survey

crd

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package crd enumerates the CustomResourceDefinitions installed on a cluster and surfaces per-cluster CRD divergence as a scanner result.

Index

Constants

View Source
const Name = "crds"

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 CRDs in a cluster.

Types

type Data

type Data struct {
	// Count is the total number of CRDs.
	Count int `json:"count"`
	// CRDs lists all CustomResourceDefinitions.
	CRDs []Info `json:"crds"`
}

Data holds CRD information for one cluster.

type DynamicLister

type DynamicLister interface {
	Resource(resource schema.GroupVersionResource) dynamic.NamespaceableResourceInterface
}

DynamicLister is satisfied by dynamic.Interface for testing.

type Info added in v0.12.0

type Info struct {
	// Name is the CRD name (e.g. certificates.cert-manager.io).
	Name string `json:"name"`
	// Group is the API group.
	Group string `json:"group"`
	// Versions lists the served version names.
	Versions []string `json:"versions"`
	// Scope is Namespaced or Cluster.
	Scope string `json:"scope"`
}

Info describes a single CustomResourceDefinition.

Jump to

Keyboard shortcuts

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