uknetdev

package
v0.9.2-60-g19eb3a16 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

Index

Constants

View Source
const (
	LibraryName = "uknetdev"
)

Variables

This section is empty.

Functions

func ExportedParams

func ExportedParams() []ukargparse.Param

ExportedParams returns the parameters available by this exported library.

func NewParamIp added in v0.7.6

func NewParamIp() ukargparse.Param

The netdev.ip parameter can be used to override IPv4 address information for multiple devices. For each device the following colon-separated format is introduced:

cidr[:gw[:dns0[:dns1[:hostname[:domain]]]]]

Types

type NetdevIp added in v0.7.2

type NetdevIp struct {
	CIDR     string
	Gateway  string
	DNS0     string
	DNS1     string
	Hostname string
	Domain   string
}

NetdevIp represents the attributes of the network device which is understood by uknetdev and uklibparam.

func (NetdevIp) String added in v0.7.2

func (entry NetdevIp) String() string

String implements fmt.Stringer and returns a valid netdev.ip-formatted entry.

Jump to

Keyboard shortcuts

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