diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-04-07 20:17:47 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-04-07 20:19:49 -0400 |
commit | 3c7a4451e62d27bbe9dc8eb2c16e2ff5607d1b04 (patch) | |
tree | cd488373455a7363d5d345672a007eaee8798070 /core.go | |
parent | 6bbc3e9939e9e168e7cb0265f5d643b2d83943ae (diff) | |
download | bommom-3c7a4451e62d27bbe9dc8eb2c16e2ff5607d1b04.tar.gz bommom-3c7a4451e62d27bbe9dc8eb2c16e2ff5607d1b04.zip |
backup of partial progress
Diffstat (limited to 'core.go')
-rw-r--r-- | core.go | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ +package main + +type Offer struct { +} + +type LineItem struct { +} + +type Element struct { +} + +// The main anchor of a BOM as a cohesive whole, with a name and permissions. +// Multiple BOMs are associated with a single BomStub; the currently active one +// is the 'head'. +type BomStub struct { + name *ShortName + owner string + description string + homepage *Url + isPublicView, isPublicEdit bool +} + +// An actual list of parts/elements. Intended to be immutable once persisted. +type Bom struct { + version *ShortName + date uint64 // TODO: unix timestamp? + progeny string // where did this BOM come from? + elements []Element + lineitems []LineItem +} |