opnsense

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

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

func New

func New(api *api.APIClient, raw []byte, options ...ConverterOption) (*Converter, error)

func (*Converter) Run

func (c *Converter) Run(ctx context.Context) error

type ConverterOption

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

func WithExistingZone

func WithExistingZone(name string) ConverterOption

type Opnsense

type Opnsense struct {
	XMLName xml.Name `xml:"opnsense"`
	Text    string   `xml:",chardata"`
	Dnsmasq struct {
		Text            string         `xml:",chardata"`
		Enable          string         `xml:"enable"`
		Regdhcpstatic   string         `xml:"regdhcpstatic"`
		StrictOrder     string         `xml:"strict_order"`
		Dnssec          string         `xml:"dnssec"`
		Interface       string         `xml:"interface"`
		Domainoverrides string         `xml:"domainoverrides"`
		Hosts           []OpnsenseHost `xml:"hosts"`
	} `xml:"dnsmasq"`
}

Opnsense was generated 2025-01-13 00:41:41 by https://xml-to-go.github.io/ in Ukraine.

type OpnsenseAlias

type OpnsenseAlias struct {
	Text        string `xml:",chardata"`
	Description string `xml:"description"`
	Domain      string `xml:"domain"`
	Host        string `xml:"host"`
}

type OpnsenseHost

type OpnsenseHost struct {
	Text    string `xml:",chardata"`
	Host    string `xml:"host"`
	Domain  string `xml:"domain"`
	Ip      string `xml:"ip"`
	Descr   string `xml:"descr"`
	Aliases struct {
		Text string          `xml:",chardata"`
		Item []OpnsenseAlias `xml:"item"`
	} `xml:"aliases"`
}

Jump to

Keyboard shortcuts

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