kubernetes

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client manages Kubernetes API interactions

func New

New creates a new Kubernetes client

func NewForTesting

func NewForTesting(
	clientset kubernetes.Interface,
	dynamicClient dynamic.Interface,
	restConfig *rest.Config,
	informerFactory informers.SharedInformerFactory,
	log interfaces.LoggerInterface,
) *Client

NewForTesting creates a new Kubernetes client for testing

func (*Client) Clientset

func (c *Client) Clientset() kubernetes.Interface

Clientset returns the Kubernetes clientset

func (*Client) DynamicClient

func (c *Client) DynamicClient() dynamic.Interface

DynamicClient returns the dynamic client

func (*Client) InformerFactory

func (c *Client) InformerFactory() informers.SharedInformerFactory

InformerFactory returns the informer factory

func (*Client) LlmsafespacesV1

func (c *Client) LlmsafespacesV1() (interfaces.LLMSafespacesV1Interface, error)

LlmsafespacesV1 returns a client for the llmsafespaces.dev/v1 API group.

Constructs a typed REST client by deriving a copy of the base rest.Config with the LLMSafeSpaces GroupVersion, /apis path, and a serializer from the scheme that has our types registered (via the init() in client_crds.go).

Without these ContentConfig fields rest.RESTClientFor returns an error (or returns a partially-initialized client that nil-panics on Watch), which silently breaks the WorkspaceWatcher and the proxy ownership middleware.

func (*Client) RESTConfig

func (c *Client) RESTConfig() *rest.Config

RESTConfig returns the REST config

func (*Client) Start

func (c *Client) Start() error

Start starts the informer factories and leader election

func (*Client) Stop

func (c *Client) Stop()

Stop stops the client and informer factories

type InformerFactory

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

func NewInformerFactory

func NewInformerFactory(client interfaces.LLMSafespacesV1Interface, defaultResync time.Duration, namespace string) *InformerFactory

func (*InformerFactory) RuntimeEnvironmentInformer

func (f *InformerFactory) RuntimeEnvironmentInformer() cache.SharedIndexInformer

func (*InformerFactory) StartInformers

func (f *InformerFactory) StartInformers(stopCh <-chan struct{})

func (*InformerFactory) WorkspaceInformer

func (f *InformerFactory) WorkspaceInformer() cache.SharedIndexInformer

type LLMSafespacesV1Client

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

func NewLLMSafespacesV1Client

func NewLLMSafespacesV1Client(restClient rest.Interface) *LLMSafespacesV1Client

func (*LLMSafespacesV1Client) InferenceRelays

func (*LLMSafespacesV1Client) RuntimeEnvironments

func (*LLMSafespacesV1Client) WithMockClient

func (*LLMSafespacesV1Client) Workspaces

func (c *LLMSafespacesV1Client) Workspaces(namespace string) interfaces.WorkspaceInterface

Jump to

Keyboard shortcuts

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