(parent ksuid.KSUID, author, message string, meta super.Value, retries int)
| 22 | } |
| 23 | |
| 24 | func NewObject(parent ksuid.KSUID, author, message string, meta super.Value, retries int) *Object { |
| 25 | commit := ksuid.New() |
| 26 | o := &Object{ |
| 27 | Commit: commit, |
| 28 | Parent: parent, |
| 29 | } |
| 30 | o.append(&Commit{ |
| 31 | ID: commit, |
| 32 | Parent: parent, |
| 33 | Retries: uint8(retries), |
| 34 | Date: nano.Now(), |
| 35 | Author: author, |
| 36 | Message: message, |
| 37 | Meta: meta, |
| 38 | }) |
| 39 | return o |
| 40 | } |
| 41 | |
| 42 | func NewAddsObject(parent ksuid.KSUID, retries int, author, message string, meta super.Value, objects []data.Object) *Object { |
| 43 | o := NewObject(parent, author, message, meta, retries) |
no test coverage detected