func NewConfig(name string, provider ProviderType, attrs Attrs) (*Config, error) {
	_, err := configChecker.Coerce(attrs, nil)
	if err != nil {
		return nil, errors.Annotate(err, "validating common storage config")
	}
	return &Config{
		name:     name,
		provider: provider,
		attrs:    attrs,
	}, nil
}
// NewConfig creates a new Config for instantiating a storage source.
NewConfig creates a new Config for instantiating a storage source.
// NewConfig creates a new Config for instantiating a storage source .
func NewConfig(name string, provider ProviderType, attrs Attrs) (*Config, error) {
	_, err := configChecker.Coerce(attrs, nil)
	if err != nil {
		return nil, errors.Annotate(err, "validating common storage config")
	}
	return &Config{
		name:     name,
		provider: provider,
		attrs:    attrs,
	}, nil
}
func NewConfig ( name string , provider ProviderType , attrs Attrs ) ( * Config , error ) { _ , err := configChecker . Coerce ( attrs , nil ) if err != nil { return nil , errors . Annotate ( err , " " ) } return & Config { name : name , provider : provider , attrs : attrs , } , nil }
NewConfig creates a new Config for instantiating a storage source.
NewConfig creates a new Config for instantiating a storage source .