def get_valid_salt_views():
 ret = {}
 ret['minions'] = {}
 ret['minions']['map'] = 'function( doc ){ emit( doc.id, null ); }'
 ret['minions']['reduce'] = 'function( keys,values,rereduce ){ return key[0]; }'
 ret['by-minion-fun-timestamp'] = {}
 ret['by-minion-fun-timestamp']['map'] = 'function( doc ){ emit( [doc.id,doc.fun,doc.timestamp], doc ); }'
 return ret

def get_valid_salt_views ( ) : ret = { } ret [ 'minions' ] = { } ret [ 'minions' ] [ 'map' ] = 'function( doc ){ emit( doc.id, null ); }' ret [ 'minions' ] [ 'reduce' ] = 'function( keys,values,rereduce ){ return key[0]; }' ret [ 'by-minion-fun-timestamp' ] = { } ret [ 'by-minion-fun-timestamp' ] [ 'map' ] = 'function( doc ){ emit( [doc.id,doc.fun,doc.timestamp], doc ); }' return ret
returns a dict object of views that should be part of the salt design document .