address

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouterAddress

func RegisterRouterAddress(router *mux.Router)

Types

type Address

type Address struct {
	IP          string `json:"IP"`
	Mask        int    `json:"Mask"`
	Label       string `json:"Label"`
	Flags       int    `json:"Flags"`
	Scope       int    `json:"Scope"`
	Peer        string `json:"Peer"`
	Broadcast   string `json:"Broadcast"`
	PreferedLft int    `json:"PreferedLft"`
	ValidLft    int    `json:"ValidLft"`
}

type AddressAction

type AddressAction struct {
	Action  string  `json:"action"`
	Link    string  `json:"link"`
	Address Address `json:"Address"`
}

func (*AddressAction) Add

func (a *AddressAction) Add() error

func (*AddressAction) Remove

func (a *AddressAction) Remove() error

type AddressInfo

type AddressInfo struct {
	Name      string `json:"Name"`
	Ifindex   int    `json:"Ifindex"`
	OperState string `json:"OperState"`
	Mac       string `json:"Mac"`
	MTU       int    `json:"MTU"`

	Addresses []Address `json:"Addresses"`
}

func AcquireAddresses

func AcquireAddresses() ([]AddressInfo, error)

Jump to

Keyboard shortcuts

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