···7184 }
71857186 cw := cbg.NewCborWriter(w)
7187- fieldCount := 7
71887189 if t.Description == nil {
7190 fieldCount--
7191 }
71927193 if t.Source == nil {
00007194 fieldCount--
7195 }
7196···7318 }
7319 }
7320000000000000000000000000000000007321 // t.CreatedAt (string) (string)
7322 if len("createdAt") > 1000000 {
7323 return xerrors.Errorf("Value in field \"createdAt\" was too long")
···7481 t.Source = (*string)(&sval)
7482 }
7483 }
0000000000000000000007484 // t.CreatedAt (string) (string)
7485 case "createdAt":
7486···7531 }
75327533 cw := cbg.NewCborWriter(w)
7534- fieldCount := 4
75357536- if t.Instance == nil {
7537- fieldCount--
7538- }
7539-7540- if _, err := cw.Write(cbg.CborEncodeMajorType(cbg.MajMap, uint64(fieldCount))); err != nil {
7541 return err
7542 }
7543···7584 }
75857586 // t.Instance (string) (string)
7587- if t.Instance != nil {
0075887589- if len("instance") > 1000000 {
7590- return xerrors.Errorf("Value in field \"instance\" was too long")
7591- }
00075927593- if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("instance"))); err != nil {
7594- return err
7595- }
7596- if _, err := cw.WriteString(string("instance")); err != nil {
7597- return err
7598- }
75997600- if t.Instance == nil {
7601- if _, err := cw.Write(cbg.CborNull); err != nil {
7602- return err
7603- }
7604- } else {
7605- if len(*t.Instance) > 1000000 {
7606- return xerrors.Errorf("Value in field t.Instance was too long")
7607- }
7608-7609- if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.Instance))); err != nil {
7610- return err
7611- }
7612- if _, err := cw.WriteString(string(*t.Instance)); err != nil {
7613- return err
7614- }
7615- }
7616 }
76177618 // t.CreatedAt (string) (string)
···7707 case "instance":
77087709 {
7710- b, err := cr.ReadByte()
7711 if err != nil {
7712 return err
7713 }
7714- if b != cbg.CborNull[0] {
7715- if err := cr.UnreadByte(); err != nil {
7716- return err
7717- }
77187719- sval, err := cbg.ReadStringWithMax(cr, 1000000)
7720- if err != nil {
7721- return err
7722- }
7723-7724- t.Instance = (*string)(&sval)
7725- }
7726 }
7727 // t.CreatedAt (string) (string)
7728 case "createdAt":
···7184 }
71857186 cw := cbg.NewCborWriter(w)
7187+ fieldCount := 8
71887189 if t.Description == nil {
7190 fieldCount--
7191 }
71927193 if t.Source == nil {
7194+ fieldCount--
7195+ }
7196+7197+ if t.Spindle == nil {
7198 fieldCount--
7199 }
7200···7322 }
7323 }
73247325+ // t.Spindle (string) (string)
7326+ if t.Spindle != nil {
7327+7328+ if len("spindle") > 1000000 {
7329+ return xerrors.Errorf("Value in field \"spindle\" was too long")
7330+ }
7331+7332+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("spindle"))); err != nil {
7333+ return err
7334+ }
7335+ if _, err := cw.WriteString(string("spindle")); err != nil {
7336+ return err
7337+ }
7338+7339+ if t.Spindle == nil {
7340+ if _, err := cw.Write(cbg.CborNull); err != nil {
7341+ return err
7342+ }
7343+ } else {
7344+ if len(*t.Spindle) > 1000000 {
7345+ return xerrors.Errorf("Value in field t.Spindle was too long")
7346+ }
7347+7348+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.Spindle))); err != nil {
7349+ return err
7350+ }
7351+ if _, err := cw.WriteString(string(*t.Spindle)); err != nil {
7352+ return err
7353+ }
7354+ }
7355+ }
7356+7357 // t.CreatedAt (string) (string)
7358 if len("createdAt") > 1000000 {
7359 return xerrors.Errorf("Value in field \"createdAt\" was too long")
···7517 t.Source = (*string)(&sval)
7518 }
7519 }
7520+ // t.Spindle (string) (string)
7521+ case "spindle":
7522+7523+ {
7524+ b, err := cr.ReadByte()
7525+ if err != nil {
7526+ return err
7527+ }
7528+ if b != cbg.CborNull[0] {
7529+ if err := cr.UnreadByte(); err != nil {
7530+ return err
7531+ }
7532+7533+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
7534+ if err != nil {
7535+ return err
7536+ }
7537+7538+ t.Spindle = (*string)(&sval)
7539+ }
7540+ }
7541 // t.CreatedAt (string) (string)
7542 case "createdAt":
7543···7588 }
75897590 cw := cbg.NewCborWriter(w)
075917592+ if _, err := cw.Write([]byte{164}); err != nil {
00007593 return err
7594 }
7595···7636 }
76377638 // t.Instance (string) (string)
7639+ if len("instance") > 1000000 {
7640+ return xerrors.Errorf("Value in field \"instance\" was too long")
7641+ }
76427643+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("instance"))); err != nil {
7644+ return err
7645+ }
7646+ if _, err := cw.WriteString(string("instance")); err != nil {
7647+ return err
7648+ }
76497650+ if len(t.Instance) > 1000000 {
7651+ return xerrors.Errorf("Value in field t.Instance was too long")
7652+ }
00076537654+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.Instance))); err != nil {
7655+ return err
7656+ }
7657+ if _, err := cw.WriteString(string(t.Instance)); err != nil {
7658+ return err
000000000007659 }
76607661 // t.CreatedAt (string) (string)
···7750 case "instance":
77517752 {
7753+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
7754 if err != nil {
7755 return err
7756 }
000077577758+ t.Instance = string(sval)
0000007759 }
7760 // t.CreatedAt (string) (string)
7761 case "createdAt":
+2-2
api/tangled/spindlemember.go
···20 LexiconTypeID string `json:"$type,const=sh.tangled.spindle.member" cborgen:"$type,const=sh.tangled.spindle.member"`
21 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
22 // instance: spindle instance that the subject is now a member of
23- Instance *string `json:"instance,omitempty" cborgen:"instance,omitempty"`
24- Subject string `json:"subject" cborgen:"subject"`
25}
···20 LexiconTypeID string `json:"$type,const=sh.tangled.spindle.member" cborgen:"$type,const=sh.tangled.spindle.member"`
21 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
22 // instance: spindle instance that the subject is now a member of
23+ Instance string `json:"instance" cborgen:"instance"`
24+ Subject string `json:"subject" cborgen:"subject"`
25}
+2
api/tangled/tangledrepo.go
···27 Owner string `json:"owner" cborgen:"owner"`
28 // source: source of the repo
29 Source *string `json:"source,omitempty" cborgen:"source,omitempty"`
0030}
···27 Owner string `json:"owner" cborgen:"owner"`
28 // source: source of the repo
29 Source *string `json:"source,omitempty" cborgen:"source,omitempty"`
30+ // spindle: CI runner to send jobs to and receive results from
31+ Spindle *string `json:"spindle,omitempty" cborgen:"spindle,omitempty"`
32}
+4
lexicons/repo.json
···28 "type": "string",
29 "description": "knot where the repo was created"
30 },
000031 "description": {
32 "type": "string",
33 "format": "datetime",
···28 "type": "string",
29 "description": "knot where the repo was created"
30 },
31+ "spindle": {
32+ "type": "string",
33+ "description": "CI runner to send jobs to and receive results from"
34+ },
35 "description": {
36 "type": "string",
37 "format": "datetime",