string func for DNSUpdateAction

This commit is contained in:
Matthew R Kasun 2023-02-07 16:03:22 -05:00
parent 562df0ad0f
commit 71f41fefb8

View file

@ -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