def keytype_capabilities(keytype):
    """
    Get the capabilities of a keyring from keyring type.
    """
    cap_dict = {'admin': ['osd', 'allow *', 'mds', 'allow *', 'mon',
        'allow *', 'mgr', 'allow *'], 'mds': ['mon',
        'allow profile bootstrap-mds'], 'mgr': ['mon',
        'allow profile bootstrap-mgr'], 'osd': ['mon',
        'allow profile bootstrap-osd'], 'rgw': ['mon',
        'allow profile bootstrap-rgw']}
    return cap_dict.get(keytype, None)
