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) IsWatchListSemanticsUnSupported() bool
- 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 ¶
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) IsWatchListSemanticsUnSupported ¶
IsWatchListSemanticsSupported informs the reflector that this client doesn't support WatchList semantics.
This is a synthetic method whose sole purpose is to satisfy the optional interface check performed by the reflector. Returning true signals that WatchList can NOT be used. No additional logic is implemented here.
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