func IsMember(pod *object.StoragePod, ds *object.Datastore) (bool, error) {
	dprops, err := datastore.Properties(ds)
	if err != nil {
		return false, fmt.Errorf("error getting properties for datastore %q: %s", ds.Name(), err)
	}
	if dprops.Parent == nil {
		return false, nil
	}
	if *dprops.Parent != pod.Reference() {
		return false, nil
	}
	return true, nil
}
func IsMember(pod *object.StoragePod, ds *object.Datastore) (bool, error) {
	dprops, err := datastore.Properties(ds)
	if err != nil {
		return false, fmt.Errorf("error getting properties for datastore %q: %s", ds.Name(), err)
	}
	if dprops.Parent == nil {
		return false, nil
	}
	if *dprops.Parent != pod.Reference() {
		return false, nil
	}
	return true, nil
}
func IsMember ( pod * object . StoragePod , ds * object . Datastore ) ( bool , error ) { dprops , err := datastore . Properties ( ds ) if err != nil { return false , fmt . Errorf ( " " , ds . Name ( ) , err ) } if dprops . Parent == nil { return false , nil } if * dprops . Parent != pod . Reference ( ) { return false , nil } return true , nil }
// IsMember checks to see if a datastore is a member of the datastore cluster
// in question.
//
// This is a pretty basic operation that checks that the parent of the
// datastore is the StoragePod.
IsMember checks to see if a datastore is a member of the datastore cluster in question . This is a pretty basic operation that checks that the parent of the datastore is the StoragePod .