 Documentation
      ¶
      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 ¶
- Variables
- type 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
 
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 (*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
 Click to show internal directories. 
   Click to hide internal directories.