github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/pkg/steampipeconfig/connection_updates_opts.go (about)

     1  package steampipeconfig
     2  
     3  type connectionUpdatesConfig struct {
     4  	ForceUpdateConnectionNames []string
     5  }
     6  
     7  type ConnectionUpdatesOption func(opt *connectionUpdatesConfig)
     8  
     9  func WithForceUpdate(connections []string) ConnectionUpdatesOption {
    10  	return func(opt *connectionUpdatesConfig) {
    11  		opt.ForceUpdateConnectionNames = connections
    12  	}
    13  }