client

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 16 Imported by: 6

Documentation

Overview

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

Constants

This section is empty.

Variables

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

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

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