workloads

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: Apache-2.0 Imports: 19 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package workloads provides the Kubernetes implementation of discovery.Discoverer.

Index

Constants

View Source
const (
	WorkloadTypeMCPServer      = discovery.WorkloadTypeMCPServer
	WorkloadTypeMCPRemoteProxy = discovery.WorkloadTypeMCPRemoteProxy
	WorkloadTypeMCPServerEntry = discovery.WorkloadTypeMCPServerEntry
)

Workload types, aliased from discovery.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discoverer

type Discoverer = discovery.Discoverer

Discoverer is an alias of discovery.Discoverer.

func NewK8SDiscoverer

func NewK8SDiscoverer(namespace ...string) (Discoverer, error)

NewK8SDiscoverer creates a new Kubernetes workload discoverer that directly uses the Kubernetes client to discover MCPServer CRDs. If namespace is empty, it will detect the namespace using k8s.GetCurrentNamespace().

func NewK8SDiscovererWithClient

func NewK8SDiscovererWithClient(k8sClient client.Client, namespace string) Discoverer

NewK8SDiscovererWithClient creates a new Kubernetes workload discoverer with a provided client. This is useful for testing with fake clients.

type TypedWorkload added in v0.6.12

type TypedWorkload = discovery.TypedWorkload

TypedWorkload is an alias of discovery.TypedWorkload.

type WorkloadType added in v0.6.12

type WorkloadType = discovery.WorkloadType

WorkloadType is an alias of discovery.WorkloadType.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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