Documentation ¶
Index ¶
- type CmdResolver
- type CmdToolsManager
- type DnsSetters
- type DnsUseCase
- func (dns *DnsUseCase) CaseAddDnsAddress(text string)
- func (dns *DnsUseCase) CaseSetupDnsNotUseSystemd() error
- func (dns *DnsUseCase) CaseSetupDnsWithUseSystemd() error
- func (dns *DnsUseCase) GetCmdReturnResolver() (*string, error)
- func (dns *DnsUseCase) RunProcessCmd(cmdArg []string) error
- func (dns *DnsUseCase) SplitCommand(cmd string) ([]string, error)
- type ProcessManager
- type СmdSetters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdResolver ¶
type CmdToolsManager ¶
type DnsSetters ¶
type DnsSetters interface {
SetAddress(matches []string)
}
type DnsUseCase ¶
type DnsUseCase struct {
// contains filtered or unexported fields
}
func NewDnsUseCase ¶
func NewDnsUseCase( cmdSetters СmdSetters, cmdToolsManager CmdToolsManager, cmdResolver CmdResolver, processManager ProcessManager, dnsSetters DnsSetters, ) (obj *DnsUseCase, err error)
func (*DnsUseCase) CaseAddDnsAddress ¶
func (dns *DnsUseCase) CaseAddDnsAddress(text string)
func (*DnsUseCase) CaseSetupDnsNotUseSystemd ¶
func (dns *DnsUseCase) CaseSetupDnsNotUseSystemd() error
func (*DnsUseCase) CaseSetupDnsWithUseSystemd ¶
func (dns *DnsUseCase) CaseSetupDnsWithUseSystemd() error
func (*DnsUseCase) GetCmdReturnResolver ¶
func (dns *DnsUseCase) GetCmdReturnResolver() (*string, error)
func (*DnsUseCase) RunProcessCmd ¶
func (dns *DnsUseCase) RunProcessCmd(cmdArg []string) error
func (*DnsUseCase) SplitCommand ¶
func (dns *DnsUseCase) SplitCommand(cmd string) ([]string, error)
type ProcessManager ¶
type СmdSetters ¶
type СmdSetters interface {
SetCommand(cmd string)
}
Click to show internal directories.
Click to hide internal directories.