dynamic-resource-allocationk8s.io/dynamic-resource-allocation/client Index | Files

package client

import "k8s.io/dynamic-resource-allocation/client"

Package clients provides a wrapper around client-go such that consumers of this package can use the latest resource.k8s.io API. Under the hood those types get converted to and from the most recent API version supported by the apiserver.

Patching and server-side-apply are not supported and return the ErrNotImplemented error. It would be necessary to convert the patch or apply configuration, which is close to impossible (patch) and more code (apply configuration).

Index

Variables

var (
	ErrNotImplemented = errors.New("not implemented in k8s.io/dynamic-resource-allocation/client")
)

Types

type Client

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

func New

func New(clientSet kubernetes.Interface) *Client

func (*Client) CurrentAPI

func (c *Client) CurrentAPI() string

func (*Client) DeviceClasses

func (c *Client) DeviceClasses() cgoresource.DeviceClassInterface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

func (*Client) ResourceClaimTemplates

func (c *Client) ResourceClaimTemplates(namespace string) cgoresource.ResourceClaimTemplateInterface

func (*Client) ResourceClaims

func (c *Client) ResourceClaims(namespace string) cgoresource.ResourceClaimInterface

func (*Client) ResourceSlices

func (c *Client) ResourceSlices() cgoresource.ResourceSliceInterface

Source Files

client.go doc.go generic.go

Version
v0.35.0-alpha.0
Published
Aug 7, 2025
Platform
windows/amd64
Imports
16 packages
Last checked
31 seconds ago

Tools for package owners.