node

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNodeNotSynced = errors.New("node is not synced")

Functions

This section is empty.

Types

type Client added in v1.4.1

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Client represent the client for each node several cases need to be concerned 1. synchronous sync k8s nodes 2. async all nodes with enis

func GetPoolManager added in v1.4.1

func GetPoolManager(nodeName string) (*Client, error)

func (*Client) GetClient added in v1.4.1

func (c *Client) GetClient() (*eni_pool.Manager, error)

func (*Client) SetClient added in v1.4.1

func (c *Client) SetClient(client *eni_pool.Manager)

type ReconcileNode

type ReconcileNode struct {
	// contains filtered or unexported fields
}

ReconcileNode reconciles node

func NewReconcileNode

func NewReconcileNode(mgr manager.Manager, aliyunClient register.Interface, swPool *vswitch.SwitchPool) *ReconcileNode

func (*ReconcileNode) Reconcile

func (m *ReconcileNode) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

type Wrapper added in v1.4.1

type Wrapper struct {
	// contains filtered or unexported fields
}

func (*Wrapper) Start added in v1.4.1

func (w *Wrapper) Start(ctx context.Context) error

Start the controller

Jump to

Keyboard shortcuts

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