updateetchosts

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package updateetchosts implements the update-etc-hosts command for managing /etc/hosts entries.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoHostnames is returned when no hostnames are configured.
	ErrNoHostnames = errors.New("no hostnames configured in network section")
	// ErrNoIPAddress is returned when cluster has no IP address.
	ErrNoIPAddress = errors.New("cluster has no IP address (is it running?)")
	// ErrRequiresRoot is returned when an operation requires root privileges.
	ErrRequiresRoot = errors.New("requires root privileges")
)

Functions

func CreateCommand

func CreateCommand() *cli.Command

CreateCommand creates the update-etc-hosts command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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