Documentation
¶
Overview ¶
Package kubernetes provides Kubernetes API interactions for the AWS Multi-ENI Controller.
Index ¶
- type Client
- func (c *Client) GetNode(ctx context.Context, nodeName string) (*corev1.Node, error)
- func (c *Client) GetNodeENIByName(ctx context.Context, name string) (*networkingv1alpha1.NodeENI, error)
- func (c *Client) GetNodeENIResources(ctx context.Context, nodeName string) ([]networkingv1alpha1.NodeENI, error)
- func (c *Client) ListAllNodeENIResources(ctx context.Context) ([]networkingv1alpha1.NodeENI, error)
- func (c *Client) PatchNodeENIStatus(ctx context.Context, name string, patch client.Patch) error
- func (c *Client) UpdateAttachmentDPDKStatus(ctx context.Context, eniID, nodeENIName, dpdkDriver string, dpdkBound bool, ...) error
- func (c *Client) UpdateAttachmentStatus(ctx context.Context, eniID, nodeENIName, status string) error
- func (c *Client) UpdateNodeENISpec(ctx context.Context, nodeENI *networkingv1alpha1.NodeENI) error
- func (c *Client) UpdateNodeENIStatus(ctx context.Context, nodeENI *networkingv1alpha1.NodeENI) error
- func (c *Client) ValidateNodeENIResource(nodeENI *networkingv1alpha1.NodeENI) error
- func (c *Client) WatchNodeENIResources(ctx context.Context, nodeName string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles Kubernetes API operations
func (*Client) GetNodeENIByName ¶
func (c *Client) GetNodeENIByName(ctx context.Context, name string) (*networkingv1alpha1.NodeENI, error)
GetNodeENIByName retrieves a specific NodeENI resource by name
func (*Client) GetNodeENIResources ¶
func (c *Client) GetNodeENIResources(ctx context.Context, nodeName string) ([]networkingv1alpha1.NodeENI, error)
GetNodeENIResources retrieves all NodeENI resources for a specific node
func (*Client) ListAllNodeENIResources ¶
ListAllNodeENIResources retrieves all NodeENI resources in the cluster
func (*Client) PatchNodeENIStatus ¶
PatchNodeENIStatus patches the status of a NodeENI resource
func (*Client) UpdateAttachmentDPDKStatus ¶
func (c *Client) UpdateAttachmentDPDKStatus(ctx context.Context, eniID, nodeENIName, dpdkDriver string, dpdkBound bool, pciAddress, resourceName string) error
UpdateAttachmentDPDKStatus updates the DPDK status for a specific ENI attachment
func (*Client) UpdateAttachmentStatus ¶
func (c *Client) UpdateAttachmentStatus(ctx context.Context, eniID, nodeENIName, status string) error
UpdateAttachmentStatus updates the general status of an ENI attachment
func (*Client) UpdateNodeENISpec ¶
UpdateNodeENISpec updates the spec of a NodeENI resource
func (*Client) UpdateNodeENIStatus ¶
func (c *Client) UpdateNodeENIStatus(ctx context.Context, nodeENI *networkingv1alpha1.NodeENI) error
UpdateNodeENIStatus updates the status of a NodeENI resource
func (*Client) ValidateNodeENIResource ¶
func (c *Client) ValidateNodeENIResource(nodeENI *networkingv1alpha1.NodeENI) error
ValidateNodeENIResource validates a NodeENI resource
func (*Client) WatchNodeENIResources ¶
func (c *Client) WatchNodeENIResources(ctx context.Context, nodeName string, callback func([]networkingv1alpha1.NodeENI)) error
WatchNodeENIResources watches for changes to NodeENI resources