mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 01:47:53 +08:00
20 lines
638 B
Go
20 lines
638 B
Go
package models
|
|
|
|
import (
|
|
"github.com/gobwas/glob"
|
|
)
|
|
|
|
// UnmanagedConfig describes an UNMANAGED() rule.
|
|
type UnmanagedConfig struct {
|
|
// Glob pattern for matching labels.
|
|
LabelPattern string `json:"label_pattern,omitempty"`
|
|
LabelGlob glob.Glob `json:"-"` // Compiled version
|
|
|
|
// Comma-separated list of DNS Resource Types.
|
|
RTypePattern string `json:"rType_pattern,omitempty"`
|
|
RTypeMap map[string]struct{} `json:"-"` // map of RTypes or len()=0 for all
|
|
|
|
// Glob pattern for matching targets.
|
|
TargetPattern string `json:"target_pattern,omitempty"`
|
|
TargetGlob glob.Glob `json:"-"` // Compiled version
|
|
}
|