Help us shape the future of Go! Take the 2026 Go Developer Survey

cni

package
v0.30.12 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCancelled = errors.New("cancelled")
View Source
var ErrMigrationFailed = errors.New("migration failed")

Functions

func AskForConfirmation

func AskForConfirmation(commandName string) (bool, error)

AskForConfirmation displays a warning and prompts the user for confirmation.

func FindActiveMigration

func FindActiveMigration(ctx context.Context, rtClient client.Client) (*v1alpha1.CNIMigration, error)

FindActiveMigration searches for an existing CNIMigration resource.

func RunCleanup

func RunCleanup() error

RunCleanup executes the logic for the 'cni-migration cleanup' command.

func RunSwitch

func RunSwitch(targetCNI string) error

RunSwitch executes the logic for the 'cni-migration switch' command.

func RunWatch

func RunWatch() error

RunWatch executes the logic for the 'cni-migration watch' command.

Types

This section is empty.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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