dnscontrol/pkg/dnsgraph/dependencies.go

12 lines
313 B
Go
Raw Normal View History

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
}