client

package
v0.87.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// DesiredStateConfigurationTimeout doubles the default gw ping probe and API server
	// connectivity check timeout to ensure the Checkpoint is alive before rolling it back
	// https://nmstate.github.io/cli_guide#manual-transaction-control
	DesiredStateConfigurationTimeout = (defaultGwProbeTimeout + apiServerProbeTimeout) * 2
)

Variables

This section is empty.

Functions

func ApplyDesiredState

func ApplyDesiredState(ctx context.Context, cli client.Client, desiredState shared.State) (string, error)

func CreateOrUpdateNodeNetworkState

func CreateOrUpdateNodeNetworkState(
	ctx context.Context,
	cli client.Client,
	node *corev1.Node,
	observedState shared.State,
	nns *nmstatev1beta1.NodeNetworkState,
	versions *DependencyVersions,
) error

func ExecuteCommand

func ExecuteCommand(command string, arguments ...string) (string, error)

func InitializeNodeNetworkState

func InitializeNodeNetworkState(ctx context.Context, cli client.Client, node *corev1.Node) (*nmstatev1beta1.NodeNetworkState, error)

func UpdateCurrentState

func UpdateCurrentState(
	ctx context.Context,
	cli client.Client,
	nodeNetworkState *nmstatev1beta1.NodeNetworkState,
	observedState shared.State,
	versions *DependencyVersions,
) error

Types

type DependencyVersions

type DependencyVersions struct {
	HandlerNmstateVersion     string
	HostNetworkManagerVersion string
}

Jump to

Keyboard shortcuts

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