func NewVaultWriteQuery(s string, d map[string]interface{}) (*VaultWriteQuery, error) {
	s = strings.TrimSpace(s)
	s = strings.Trim(s, "/")
	if s == "" {
		return nil, fmt.Errorf("vault.write: invalid format: %q", s)
	}

	return &VaultWriteQuery{
		stopCh:   make(chan struct{}, 1),
		path:     s,
		data:     d,
		dataHash: sha1Map(d),
	}, nil
}
func NewVaultWriteQuery(s string, d map[string]interface{}) (*VaultWriteQuery, error) {
	s = strings.TrimSpace(s)
	s = strings.Trim(s, "/")
	if s == "" {
		return nil, fmt.Errorf("vault.write: invalid format: %q", s)
	}

	return &VaultWriteQuery{
		stopCh:   make(chan struct{}, 1),
		path:     s,
		data:     d,
		dataHash: sha1Map(d),
	}, nil
}
func NewVaultWriteQuery ( s string , d map [ string ] interface { } ) ( * VaultWriteQuery , error ) { s = strings . TrimSpace ( s ) s = strings . Trim ( s , " " ) if s == " " { return nil , fmt . Errorf ( " " , s ) } return & VaultWriteQuery { stopCh : make ( chan struct { } , 1 ) , path : s , data : d , dataHash : sha1Map ( d ) , } , nil }
// NewVaultWriteQuery creates a new datacenter dependency.
NewVaultWriteQuery creates a new datacenter dependency .