uci

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SectionNetwork  = "network"
	SectionFirewall = "firewall"
	SectionDHCP     = "dhcp"
)

Variables

This section is empty.

Functions

func Delete

func Delete(config string, section string) error

func Get

func Get(config string, section string, option string) string

func GetSlice

func GetSlice(config string, section string, option string) []string

func UpdateTree

func UpdateTree(t Tree) error

Types

type Section

type Section struct {
	Type   string
	Remove bool
	Values map[string]Value
}

type Tree

type Tree map[string]map[string]Section

type Value

type Value struct {
	Value string
	List  []string `json:",omitempty"`
}

func (Value) String

func (u Value) String() string

Jump to

Keyboard shortcuts

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