public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <brian.dolbec@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/api:master commit in: files/gentoo-keys/seeds/
Date: Fri, 27 Dec 2013 00:12:40 +0000 (UTC)	[thread overview]
Message-ID: <1388103037.09e075daf36042e7ea411ec550b86041b21990fe.dol-sen@gentoo> (raw)

commit:     09e075daf36042e7ea411ec550b86041b21990fe
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 27 00:10:37 2013 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Dec 27 00:10:37 2013 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/api.git;a=commit;h=09e075da

Add a README with seed file field descriptions

---
 files/gentoo-keys/seeds/README | 58 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diff --git a/files/gentoo-keys/seeds/README b/files/gentoo-keys/seeds/README
new file mode 100644
index 0000000..9bf5301
--- /dev/null
+++ b/files/gentoo-keys/seeds/README
@@ -0,0 +1,58 @@
+
+
+This README is to describle the current form of the seed files
+and the fields data they contain.
+
+CAUTION:  These specs are not to be considered stable and
+are likely to change in the future.
+
+============================================================
+Python file excerpt of the GKEY named tuple class used to
+represent the data in the seed file.
+=============================================================
+
+
+# some constants used in gkeyldap/actions.py
+# they map the index values of the GKEY input data fields
+NICK = 0
+NAME = 1
+KEYID = 2
+LONGKEYID = 3
+KEYDIR = 4
+FINGERPRINT = 5
+
+# set some defaults
+KEY_LEN = {
+    'keyid': 8,
+    'longkeyid': 16,
+}
+
+
+class GKEY(namedtuple('GKEY', ['nick', 'name', 'keyid', 'longkeyid',
+    'keydir', 'fingerprint'])):
+    '''Class to hold the relavent info about a key'''
+
+    field_types = {'nick': str, 'name': str, 'keyid': list,
+        'longkeyid': list, 'keydir': str, 'fingerprint': list}
+    field_separator = "|"
+    list_separator = ":"
+    __slots__ = ()
+
+
+=============================================================
+
+Current fileds data in the seed files are:
+
+=============================================================
+
+field-0|field-1|field-2|filed-3|field-4|field-5
+
+['nick', 'name', 'keyid', 'longkeyid', 'keydir', 'fingerprint']
+
+fields2,3,5 may be lists with a ":" separating list members.
+This is going to change to use a "," as the list separator.
+
+Also, the keyid and longkeyid fileds are likely to be dropped, as version 3
+gpg key types will not be used/allowed.
+Therefore since the keyid and longkeyid are just substrings of the fingerprint.
+They do not need to be tracked.


             reply	other threads:[~2013-12-27  0:12 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-27  0:12 Brian Dolbec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-08-12  6:20 [gentoo-commits] proj/api:master commit in: files/gentoo-keys/seeds/ Brian Dolbec
2015-08-11 12:58 Brian Dolbec
2015-08-10 14:54 Brian Dolbec
2015-08-09 21:46 Brian Dolbec
2015-08-08 21:02 Brian Dolbec
2015-07-23  7:13 Brian Dolbec
2015-07-15 17:48 Brian Dolbec
2015-07-04 15:59 Brian Dolbec
2015-06-19 21:27 Brian Dolbec
2015-05-29 22:50 Brian Dolbec
2015-05-25 14:44 Brian Dolbec
2015-05-12 15:38 Brian Dolbec
2015-05-07 13:49 Brian Dolbec
2015-05-03 14:10 Brian Dolbec
2015-04-28  0:08 Brian Dolbec
2015-04-25 15:59 Brian Dolbec
2015-04-20 18:07 Brian Dolbec
2015-04-20 18:01 Brian Dolbec
2015-03-31 20:10 Brian Dolbec
2015-03-24  3:27 Brian Dolbec
2015-03-24  2:54 Brian Dolbec
2015-03-21  4:17 Brian Dolbec
2015-03-18 15:35 Brian Dolbec
2015-03-15 16:03 Brian Dolbec
2015-03-11 15:36 Brian Dolbec
2015-03-09 20:15 Brian Dolbec
2015-03-09 17:25 Brian Dolbec
2015-03-05 20:02 Brian Dolbec
2015-01-19 19:44 Brian Dolbec
2015-01-14  6:25 Brian Dolbec
2015-01-05  9:15 Brian Dolbec
2015-01-05  8:59 Brian Dolbec
2015-01-05  7:54 Brian Dolbec
2015-01-05  3:29 Brian Dolbec
2014-12-25 20:53 Brian Dolbec
2014-12-25 18:22 Brian Dolbec
2014-12-10 18:34 Brian Dolbec
2014-11-24 21:15 Brian Dolbec
2014-10-14 18:45 Brian Dolbec
2014-10-14 17:38 Brian Dolbec
2014-10-12 22:30 Brian Dolbec
2014-10-12 15:51 Brian Dolbec
2014-07-28 18:13 Pavlos Ratis
2014-06-12 21:56 Julian Ospald
2013-11-18  4:24 Robin H. Johnson
2013-11-17 16:01 Brian Dolbec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1388103037.09e075daf36042e7ea411ec550b86041b21990fe.dol-sen@gentoo \
    --to=brian.dolbec@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox