Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Create(resource edgev1alpha1.EdgeSyncConfigResource, ...) (*unstructured.Unstructured, error)
- func (c *Client) Delete(resource edgev1alpha1.EdgeSyncConfigResource, name string) error
- func (c *Client) Get(resource edgev1alpha1.EdgeSyncConfigResource) (*unstructured.Unstructured, error)
- func (c *Client) IsNamespaced() bool
- func (c *Client) List(resource edgev1alpha1.EdgeSyncConfigResource) (*unstructured.UnstructuredList, error)
- func (c *Client) Update(resource edgev1alpha1.EdgeSyncConfigResource, ...) (*unstructured.Unstructured, error)
- func (c *Client) UpdateStatus(resource edgev1alpha1.EdgeSyncConfigResource, ...) (*unstructured.Unstructured, error)
- type ClientFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var BURST = 1024
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ResourceClient dynamic.NamespaceableResourceInterface // contains filtered or unexported fields }
func (*Client) Create ¶
func (c *Client) Create(resource edgev1alpha1.EdgeSyncConfigResource, unstObj *unstructured.Unstructured) (*unstructured.Unstructured, error)
func (*Client) Delete ¶
func (c *Client) Delete(resource edgev1alpha1.EdgeSyncConfigResource, name string) error
func (*Client) Get ¶
func (c *Client) Get(resource edgev1alpha1.EdgeSyncConfigResource) (*unstructured.Unstructured, error)
func (*Client) IsNamespaced ¶
func (*Client) List ¶
func (c *Client) List(resource edgev1alpha1.EdgeSyncConfigResource) (*unstructured.UnstructuredList, error)
func (*Client) Update ¶
func (c *Client) Update(resource edgev1alpha1.EdgeSyncConfigResource, unstObj *unstructured.Unstructured) (*unstructured.Unstructured, error)
func (*Client) UpdateStatus ¶
func (c *Client) UpdateStatus(resource edgev1alpha1.EdgeSyncConfigResource, unstObj *unstructured.Unstructured) (*unstructured.Unstructured, error)
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
func NewClientFactory ¶
func NewClientFactory(logger klog.Logger, dyClient dynamic.Interface, discoveryClient discovery.DiscoveryInterface) (ClientFactory, error)
func (*ClientFactory) GetAPIGroupResources ¶
func (cf *ClientFactory) GetAPIGroupResources() ([]*restmapper.APIGroupResources, error)
func (*ClientFactory) GetResourceClient ¶
func (cf *ClientFactory) GetResourceClient(group string, kind string) (Client, error)
Click to show internal directories.
Click to hide internal directories.