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
- type Client
- func New(clientSet kubernetes.Interface) *Client
- func (c *Client) CurrentAPI() string
- func (c *Client) DeviceClasses() cgoresource.DeviceClassInterface
- func (c *Client) RESTClient() rest.Interface
- func (c *Client) ResourceClaimTemplates(namespace string) cgoresource.ResourceClaimTemplateInterface
- func (c *Client) ResourceClaims(namespace string) cgoresource.ResourceClaimInterface
- func (c *Client) ResourceSlices() cgoresource.ResourceSliceInterface
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 (*Client) DeviceClasses ¶
func (c *Client) DeviceClasses() cgoresource.DeviceClassInterface
func (*Client) RESTClient ¶
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.34.0-rc.0
- Published
- Aug 8, 2025
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 1 minute ago –
Tools for package owners.