kubecatalog

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllWorkloadKinds = []string{
	"service",
	"ingress",
	"pod",
	"deployment",
	"statefulset",
	"daemonset",
}

Functions

func ListNamespaces

func ListNamespaces(ctx context.Context, client kubernetes.Interface) ([]string, error)

func ListWorkloads

func ListWorkloads(
	ctx context.Context,
	client kubernetes.Interface,
	namespace string,
	kindsParam string,
) (map[string][]Workload, error)

Types

type Port

type Port struct {
	Name   string `json:"name,omitempty"`
	Number int32  `json:"number"`
}

type Workload

type Workload struct {
	Name  string   `json:"name"`
	Ports []Port   `json:"ports,omitempty"`
	Hosts []string `json:"hosts,omitempty"`
}

Jump to

Keyboard shortcuts

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