From 3c7a4451e62d27bbe9dc8eb2c16e2ff5607d1b04 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 7 Apr 2012 20:17:47 -0400 Subject: backup of partial progress --- core.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 core.go (limited to 'core.go') diff --git a/core.go b/core.go new file mode 100644 index 0000000..4472f07 --- /dev/null +++ b/core.go @@ -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 +} -- cgit v1.2.3