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