k8s

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sDiscovery

type K8sDiscovery struct {
	// contains filtered or unexported fields
}

func NewK8sDiscovery

func NewK8sDiscovery(options Options) (*K8sDiscovery, error)

func (*K8sDiscovery) GetInstances

func (k *K8sDiscovery) GetInstances(ctx context.Context, options provider.GetInstanceOptions) ([]provider.Instancer, error)

func (*K8sDiscovery) Watch

func (k *K8sDiscovery) Watch(ctx context.Context, options provider.GetInstanceOptions) (<-chan []provider.Instancer, error)

type Options

type Options struct {
	// APIServer is the Kubernetes API server URL (e.g., "https://kubernetes.default.svc")
	APIServer string
	// KubeConfig is the path to kubeconfig file
	KubeConfig string
	// BearerToken is the authentication token
	BearerToken string
	// Insecure allows insecure server connections when using HTTPS
	Insecure bool
}

Jump to

Keyboard shortcuts

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