kubernetes

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package kubernetes provides Kubernetes API interactions for the AWS Multi-ENI Controller.

Index

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 NewClient

func NewClient() (*Client, error)

NewClient creates a new Kubernetes client

func (*Client) GetNode

func (c *Client) GetNode(ctx context.Context, nodeName string) (*corev1.Node, error)

GetNode retrieves a node by name

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

func (c *Client) ListAllNodeENIResources(ctx context.Context) ([]networkingv1alpha1.NodeENI, error)

ListAllNodeENIResources retrieves all NodeENI resources in the cluster

func (*Client) PatchNodeENIStatus

func (c *Client) PatchNodeENIStatus(ctx context.Context, name string, patch client.Patch) error

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

func (c *Client) UpdateNodeENISpec(ctx context.Context, nodeENI *networkingv1alpha1.NodeENI) error

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

Jump to

Keyboard shortcuts

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