workernode

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerNodeAPI

type WorkerNodeAPI interface {
	// List returns the list of WorkerNodes, paginated.
	// Pass nil to `cursor` to get the first page, or
	// previously returned `nextCursor` to get the next page.
	List(ctx context.Context, maxItems int64, cursor *v1.WorkerNodeID) (list []WorkerNodeDetail, nextCursor *v1.WorkerNodeID, err error)
	Read(ctx context.Context, id v1.WorkerNodeID) (node *WorkerNodeDetail, err error)
	Update(ctx context.Context, id v1.WorkerNodeID, draining bool) error
}

type WorkerNodeDetail

type WorkerNodeDetail struct {
	WorkerNodeID       v1.WorkerNodeID              `json:"workerNodeID"`
	ResourceID         *string                      `json:"resourceID"`
	Draining           bool                         `json:"draining"`
	Status             v1.WorkerNodeStatus          `json:"status"`
	Healthy            bool                         `json:"healthy"`
	Creating           bool                         `json:"creating"`
	Created            int                          `json:"created"`
	RunningContainers  []v1.RunningContainer        `json:"runningContainers"`
	NetworkInterfaces  []WorkerNodeNetworkInterface `json:"networkInterfaces"`
	ArchiveVersion     *string                      `json:"archiveVersion"`
	CreateErrorMessage *string                      `json:"createErrorMessage"`
}

type WorkerNodeNetworkInterface

type WorkerNodeNetworkInterface struct {
	InterfaceIndex int16    `json:"interfaceIndex"`
	Addresses      []string `json:"addresses"`
}

func (*WorkerNodeNetworkInterface) From

type WorkerNodeOp

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

func NewWorkerNodeOp

func NewWorkerNodeOp(client *v1.Client, clusterID v1.ClusterID, autoScalingGroupID v1.AutoScalingGroupID) *WorkerNodeOp

func (*WorkerNodeOp) List

func (op *WorkerNodeOp) List(ctx context.Context, maxItems int64, cursor *v1.WorkerNodeID) (nodes []WorkerNodeDetail, nextCursor *v1.WorkerNodeID, err error)

func (*WorkerNodeOp) Read

func (op *WorkerNodeOp) Read(ctx context.Context, id v1.WorkerNodeID) (node *WorkerNodeDetail, err error)

func (*WorkerNodeOp) Update

func (op *WorkerNodeOp) Update(ctx context.Context, id v1.WorkerNodeID, draining bool) error

Jump to

Keyboard shortcuts

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