'Retrieve list of privileges to be granted to a plugin.
Args:
name (string): Name of the remote plugin to examine. The
``:latest`` tag is optional, and is the default if omitted.
Returns:
A list of dictionaries representing the plugin\'s
permissions'

@utils.minimum_version('1.25')
def plugin_privileges(self, name):

    params = {'remote': name}
    url = self._url('/plugins/privileges')
    return self._result(self._get(url, params=params), True)
