mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-13 03:34:32 +08:00
12 lines
403 B
Go
12 lines
403 B
Go
package dnsgraph
|
|
|
|
// CreateDependencies creates a dependency list from a list of FQDNs and a DepenendyType.
|
|
func CreateDependencies(dependencyFQDNs []string, dependencyType DependencyType) []Dependency {
|
|
var dependencies []Dependency
|
|
|
|
for _, dependency := range dependencyFQDNs {
|
|
dependencies = append(dependencies, Dependency{NameFQDN: dependency, Type: dependencyType})
|
|
}
|
|
|
|
return dependencies
|
|
}
|