etcdserver/api/v2store/node.go
func (n *node) Write(value string, index uint64) *v2error.Error {
	if n.IsDir() {
		return v2error.NewError(v2error.EcodeNotFile, "", n.store.CurrentIndex)
	}

	n.Value = value
	n.ModifiedIndex = index

	return nil
}
func (n *node) Write(value string, index uint64) *v2error.Error {
	if n.IsDir() {
		return v2error.NewError(v2error.EcodeNotFile, "", n.store.CurrentIndex)
	}

	n.Value = value
	n.ModifiedIndex = index

	return nil
}
func ( n * node ) Write ( value string , index uint64 ) * v2error . Error { if n . IsDir ( ) { return v2error . NewError ( v2error . EcodeNotFile , " " , n . store . CurrentIndex ) } n . Value = value n . ModifiedIndex = index return nil }
// Write function set the value of the node to the given value.
// If the receiver node is a directory, a "Not A File" error will be returned.
Write function set the value of the node to the given value . If the receiver node is a directory a Not A File error will be returned .