dnscontrol/pkg/dnsgraph/dependencies.go
Vincent Hagen e32bdc053f
NEW FEATURE: Order changes based on the record dependencies (#2419)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
2023-08-29 14:00:09 -04:00

11 lines
313 B
Go

package dnsgraph
func CreateDependencies(dependencyFQDNs []string, dependencyType DependencyType) []Dependency {
var dependencies []Dependency
for _, dependency := range dependencyFQDNs {
dependencies = append(dependencies, Dependency{NameFQDN: dependency, Type: dependencyType})
}
return dependencies
}