hciconfig

package
v0.0.0-...-dfdf79b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HCIConfig

type HCIConfig struct {
	// contains filtered or unexported fields
}

HCIConfig an hciconfig command wrapper

func NewHCIConfig

func NewHCIConfig(adapterID string) *HCIConfig

NewHCIConfig initialize a new HCIConfig

func (*HCIConfig) Down

func (h *HCIConfig) Down() (*HCIConfigResult, error)

Down Turn down an HCI device

func (*HCIConfig) Status

func (h *HCIConfig) Status() (*HCIConfigResult, error)

Status return status information for a hci device

func (*HCIConfig) Up

func (h *HCIConfig) Up() (*HCIConfigResult, error)

Up Turn on an HCI device

type HCIConfigResult

type HCIConfigResult struct {
	AdapterID string
	Enabled   bool
	Address   string
	Type      string
	Bus       string
}

HCIConfigResult contains details for an adapter

func GetAdapter

func GetAdapter(adapterID string) (*HCIConfigResult, error)

GetAdapter return an adapter

func GetAdapters

func GetAdapters() ([]HCIConfigResult, error)

GetAdapters return the list of available adapters

Jump to

Keyboard shortcuts

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