ipconfig

package
v1.25.6-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ipconfig provides an interface and implementations for running Windows ipconfig commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// GetDNSSuffixSearchList returns the list of DNS suffix to search
	GetDNSSuffixSearchList() ([]string, error)
}

Interface is an injectable interface for running ipconfig commands. Implementations must be goroutine-safe.

func New

func New(exec utilexec.Interface) Interface

New returns a new Interface which will exec ipconfig.

Jump to

Keyboard shortcuts

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