etcdserver/api/v2auth/auth.go
func (p Permissions) Grant(n *Permissions) (Permissions, error) {
	var out Permissions
	var err error
	if n == nil {
		return p, nil
	}
	out.KV, err = p.KV.Grant(n.KV)
	return out, err
}
func (p Permissions) Grant(n *Permissions) (Permissions, error) {
	var out Permissions
	var err error
	if n == nil {
		return p, nil
	}
	out.KV, err = p.KV.Grant(n.KV)
	return out, err
}
func ( p Permissions ) Grant ( n * Permissions ) ( Permissions , error ) { var out Permissions var err error if n == nil { return p , nil } out . KV , err = p . KV . Grant ( n . KV ) return out , err }
// Grant adds a set of permissions to the permission object on which it is called,
// returning a new permission object.
Grant adds a set of permissions to the permission object on which it is called returning a new permission object .