additions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firmware

type Firmware struct {
	ID       *string
	Selected *bool
}

type IPAddress

type IPAddress struct {
	//TODO: add more
	net.IPNet
	Broadcast net.IP
}

IPAddress represents a IPv4 or Ipv6 address in the context of a osclient. NOTE: (maba) will probably be extended

type Interface

NOTE: these extra structs are probably not necessary and it would be smarter to just use the ygot generated structs internally aswell. This would prevent passing information through multiple structs.

type Interfaces

type Interfaces interface {
	GetInterfaces() ([]*Interface, error)
	SetInterface(*Interface) error
	SubscribeToInterfaces() (chan *Interface, error)
}

func NewInterfaces

func NewInterfaces() Interfaces

type Modem

type Modem struct {
	Name           *string
	Time           *string
	Timezone       *string
	State          *string
	SignalQuality  *uint32
	Sim            Sim
	Firmwares      []Firmware
	Ports          []Port
	SupportedBands []string
	CurrentBands   []string
}

type NetworkInstances

type NetworkInstances interface {
	SetStaticRoute(*StaticRoute) error
	GetStaticRoutes(linkName string) ([]*StaticRoute, error)
}

func NewNetworkInstances

func NewNetworkInstances() NetworkInstances

type Port

type Port struct {
	Name *string
	Type *string
}

type Sim

type Sim struct {
	Identifier   *string
	OperatorName *string
}

type StaticRoute

type StaticRoute struct {
	//TODO: add more
	Prefix *string
	Hops   []Hop
}

type System

type System interface {
	GetHostname() (string, error)
	SetHostname(hostname *string) error
	GetCurrentTime() time.Time
	GetTimeZoneName() string
	GetTotalMemory() uint64
	GetFreeMemory() uint64
	GetUsedMemory() uint64
	GetDomainName() (string, error)
	GetMotd() (string, error)
	SetMotd(message string) error
	// yang: leaf software-version
	GetSoftwareVersion() (string, error)
}

func NewSystem

func NewSystem() (System, error)

NewSystem() Initalizes OS specific interfaces Linux:

  • Access to procfs

Jump to

Keyboard shortcuts

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