client

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(kubeconfigPath, k8sContext string) (*rest.Config, error)

LoadConfig loads a Kubernetes client configuration from the specified kubeconfig path and context.

func NewK8sClientset

func NewK8sClientset(kubeconfigPath, k8sContext string) (*kubernetes.Clientset, error)

NewK8sClientset creates a new Kubernetes Clientset using the provided kubeconfig path and context.

Types

type Client

type Client struct {
	ateapipb.ControlClient
	// contains filtered or unexported fields
}

Client wraps the gRPC ControlClient and ensures the port-forward connection is closed when done.

func NewClient

func NewClient(ctx context.Context, kubeconfigPath, k8sContext, endpoint string, traceEnabled bool) (*Client, error)

NewClient creates a new Ate API client. If endpoint is empty, it automatically port-forwards to the ate-api-server pod in the ate-system namespace.

func (*Client) Close

func (c *Client) Close()

Close closes the underlying gRPC connection and stops the port-forwarder.

Jump to

Keyboard shortcuts

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