Documentation ¶
Index ¶
- Constants
- type ResolvConf
- func (r *ResolvConf) CreateNameserverAt(checksum uint32, index int, nameserver string) (updChecksum uint32, err error)
- func (r *ResolvConf) CreateNameserverLast(nameserver string) (index int, checksum uint32, err error)
- func (r *ResolvConf) DeleteNameserverAt(checksum uint32, index int) (nameserver string, updChecksum uint32, err error)
- func (r *ResolvConf) GetNameserverAt(n int) (nameserver string, checksum uint32, err error)
- func (r *ResolvConf) GetNameservers() (nameservers []string, checksum uint32, err error)
Constants ¶
View Source
const OptionTypeNameserver = "nameserver"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResolvConf ¶
type ResolvConf struct {
// contains filtered or unexported fields
}
func GetResolvConfInstance ¶
func GetResolvConfInstance() *ResolvConf
func (*ResolvConf) CreateNameserverAt ¶
func (*ResolvConf) CreateNameserverLast ¶
func (r *ResolvConf) CreateNameserverLast(nameserver string) (index int, checksum uint32, err error)
func (*ResolvConf) DeleteNameserverAt ¶
func (*ResolvConf) GetNameserverAt ¶
func (r *ResolvConf) GetNameserverAt(n int) (nameserver string, checksum uint32, err error)
func (*ResolvConf) GetNameservers ¶
func (r *ResolvConf) GetNameservers() (nameservers []string, checksum uint32, err error)
Click to show internal directories.
Click to hide internal directories.