github.com/yandex/pandora@v0.5.32/components/providers/scenario/vs/storage.go (about)

     1  package vs
     2  
     3  func NewVariableStorage() *SourceStorage {
     4  	return &SourceStorage{
     5  		sources: make(map[string]any),
     6  	}
     7  }
     8  
     9  type SourceStorage struct {
    10  	sources map[string]any
    11  }
    12  
    13  func (s *SourceStorage) AddSource(name string, variables any) {
    14  	s.sources[name] = variables
    15  }
    16  
    17  func (s *SourceStorage) Variables() map[string]any {
    18  	return s.sources
    19  }