func (ref dirReference) PolicyConfigurationNamespaces() []string {
	res := []string{}
	path := ref.resolvedPath
	for {
		lastSlash := strings.LastIndex(path, "/")
		if lastSlash == -1 || lastSlash == 0 {
			break
		}
		path = path[:lastSlash]
		res = append(res, path)
	}
	// Note that we do not include "/"; it is redundant with the default "" global default,
	// and rejected by dirTransport.ValidatePolicyConfigurationScope above.
	return res
}
func (ref dirReference) PolicyConfigurationNamespaces() []string {
	res := []string{}
	path := ref.resolvedPath
	for {
		lastSlash := strings.LastIndex(path, "/")
		if lastSlash == -1 || lastSlash == 0 {
			break
		}
		path = path[:lastSlash]
		res = append(res, path)
	}
	
	
	return res
}
func ( ref dirReference ) PolicyConfigurationNamespaces ( ) [ ] string { res := [ ] string { } path := ref . resolvedPath for { lastSlash := strings . LastIndex ( path , " " ) if lastSlash == - 1 || lastSlash == 0 { break } path = path [ : lastSlash ] res = append ( res , path ) } // Note that we do not include "/"; it is redundant with the default "" global default, // and rejected by dirTransport.ValidatePolicyConfigurationScope above. return res }
// PolicyConfigurationNamespaces returns a list of other policy configuration namespaces to search
// for if explicit configuration for PolicyConfigurationIdentity() is not set.  The list will be processed
// in order, terminating on first match, and an implicit "" is always checked at the end.
// It is STRONGLY recommended for the first element, if any, to be a prefix of PolicyConfigurationIdentity(),
// and each following element to be a prefix of the element preceding it.
PolicyConfigurationNamespaces returns a list of other policy configuration namespaces to search for if explicit configuration for PolicyConfigurationIdentity () is not set . The list will be processed in order terminating on first match and an implicit is always checked at the end . It is STRONGLY recommended for the first element if any to be a prefix of PolicyConfigurationIdentity () and each following element to be a prefix of the element preceding it .