mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 23:36:18 +08:00
string func for DNSUpdateAction
This commit is contained in:
parent
562df0ad0f
commit
71f41fefb8
|
@ -17,6 +17,10 @@ const (
|
||||||
DNSInsert
|
DNSInsert
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func (action DNSUpdateAction) String() string {
|
||||||
|
return [...]string{"DNSDeleteByIP", "DNSDeletByName", "DNSReplaceName", "DNSReplaceIP", "DNSInsert"}[action]
|
||||||
|
}
|
||||||
|
|
||||||
// DNSUpdate data for updating entries in /etc/hosts
|
// DNSUpdate data for updating entries in /etc/hosts
|
||||||
type DNSUpdate struct {
|
type DNSUpdate struct {
|
||||||
Action DNSUpdateAction
|
Action DNSUpdateAction
|
||||||
|
|
Loading…
Reference in a new issue