aboutsummaryrefslogtreecommitdiffstats
path: root/core.go
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-04-18 23:18:04 -0400
committerbnewbold <bnewbold@robocracy.org>2012-04-18 23:18:04 -0400
commit3b03a7a42ca8d71f8a6c68133cadb6faf358f712 (patch)
tree42de27b042058d55132fc76ef01e89e05656cd61 /core.go
parentc40296d848abd8a7478dece2169cab97d5196dfd (diff)
downloadbommom-3b03a7a42ca8d71f8a6c68133cadb6faf358f712.tar.gz
bommom-3b03a7a42ca8d71f8a6c68133cadb6faf358f712.zip
refactor BomStub to BomMeta
Diffstat (limited to 'core.go')
-rw-r--r--core.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core.go b/core.go
index 0ae6da1..74a72b9 100644
--- a/core.go
+++ b/core.go
@@ -34,9 +34,9 @@ func (li *LineItem) Id() string {
}
// 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
+// Multiple BOMs are associated with a single BomMeta; the currently active one
// is the 'head'.
-type BomStub struct {
+type BomMeta struct {
Name string `json:"name"`
Owner string `json:"owner_name"`
Description string `json:"description"`
@@ -87,7 +87,7 @@ func (b *Bom) Validate() error {
return nil
}
-func (bs *BomStub) Validate() error {
+func (bs *BomMeta) Validate() error {
if !isShortName(bs.Name) {
return Error("name not a ShortName: \"" + bs.Name + "\"")
}