We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac15be commit c4b33feCopy full SHA for c4b33fe
specs/spec_reader.go
@@ -62,6 +62,14 @@ func (s *SpecReader) GetSourceByName(name string) *Source {
62
return nil
63
}
64
65
+func (s *SpecReader) GetDestinations() []Destination {
66
+ destinations := make([]Destination, 0, len(s.destinations))
67
+ for _, spec := range s.destinations {
68
+ destinations = append(destinations, spec)
69
+ }
70
+ return destinations
71
+}
72
+
73
func (s *SpecReader) GetDestinationByName(name string) *Destination {
74
for _, spec := range s.destinations {
75
if spec.Name == name {
0 commit comments