Documentation
¶
Index ¶
- type Client
- func (c *Client) Clientset() kubernetes.Interface
- func (c *Client) DynamicClient() dynamic.Interface
- func (c *Client) InformerFactory() informers.SharedInformerFactory
- func (c *Client) LlmsafespacesV1() (interfaces.LLMSafespacesV1Interface, error)
- func (c *Client) RESTConfig() *rest.Config
- func (c *Client) Start() error
- func (c *Client) Stop()
- type InformerFactory
- type LLMSafespacesV1Client
- func (c *LLMSafespacesV1Client) InferenceRelays() interfaces.InferenceRelayInterface
- func (c *LLMSafespacesV1Client) RuntimeEnvironments() interfaces.RuntimeEnvironmentInterface
- func (c *LLMSafespacesV1Client) WithMockClient(mock interfaces.LLMSafespacesV1Interface) *LLMSafespacesV1Client
- func (c *LLMSafespacesV1Client) Workspaces(namespace string) interfaces.WorkspaceInterface
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 ¶
func New(cfg *config.KubernetesConfig, log interfaces.LoggerInterface) (*Client, error)
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 ¶
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 ¶
RESTConfig returns the REST config
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 (c *LLMSafespacesV1Client) InferenceRelays() interfaces.InferenceRelayInterface
func (*LLMSafespacesV1Client) RuntimeEnvironments ¶
func (c *LLMSafespacesV1Client) RuntimeEnvironments() interfaces.RuntimeEnvironmentInterface
func (*LLMSafespacesV1Client) WithMockClient ¶
func (c *LLMSafespacesV1Client) WithMockClient(mock interfaces.LLMSafespacesV1Interface) *LLMSafespacesV1Client
func (*LLMSafespacesV1Client) Workspaces ¶
func (c *LLMSafespacesV1Client) Workspaces(namespace string) interfaces.WorkspaceInterface