···6967 }
69686969 cw := cbg.NewCborWriter(w)
6970- fieldCount := 7
69716972 if t.Description == nil {
6973 fieldCount--
6974 }
69756976 if t.Source == nil {
00006977 fieldCount--
6978 }
6979···7101 }
7102 }
7103000000000000000000000000000000007104 // t.CreatedAt (string) (string)
7105 if len("createdAt") > 1000000 {
7106 return xerrors.Errorf("Value in field \"createdAt\" was too long")
···7264 t.Source = (*string)(&sval)
7265 }
7266 }
0000000000000000000007267 // t.CreatedAt (string) (string)
7268 case "createdAt":
7269···7314 }
73157316 cw := cbg.NewCborWriter(w)
7317- fieldCount := 4
73187319- if t.Instance == nil {
7320- fieldCount--
7321- }
7322-7323- if _, err := cw.Write(cbg.CborEncodeMajorType(cbg.MajMap, uint64(fieldCount))); err != nil {
7324 return err
7325 }
7326···7367 }
73687369 // t.Instance (string) (string)
7370- if t.Instance != nil {
0073717372- if len("instance") > 1000000 {
7373- return xerrors.Errorf("Value in field \"instance\" was too long")
7374- }
00073757376- if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("instance"))); err != nil {
7377- return err
7378- }
7379- if _, err := cw.WriteString(string("instance")); err != nil {
7380- return err
7381- }
73827383- if t.Instance == nil {
7384- if _, err := cw.Write(cbg.CborNull); err != nil {
7385- return err
7386- }
7387- } else {
7388- if len(*t.Instance) > 1000000 {
7389- return xerrors.Errorf("Value in field t.Instance was too long")
7390- }
7391-7392- if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.Instance))); err != nil {
7393- return err
7394- }
7395- if _, err := cw.WriteString(string(*t.Instance)); err != nil {
7396- return err
7397- }
7398- }
7399 }
74007401 // t.CreatedAt (string) (string)
···7490 case "instance":
74917492 {
7493- b, err := cr.ReadByte()
7494 if err != nil {
7495 return err
7496 }
7497- if b != cbg.CborNull[0] {
7498- if err := cr.UnreadByte(); err != nil {
7499- return err
7500- }
75017502- sval, err := cbg.ReadStringWithMax(cr, 1000000)
7503- if err != nil {
7504- return err
7505- }
7506-7507- t.Instance = (*string)(&sval)
7508- }
7509 }
7510 // t.CreatedAt (string) (string)
7511 case "createdAt":
···6967 }
69686969 cw := cbg.NewCborWriter(w)
6970+ fieldCount := 8
69716972 if t.Description == nil {
6973 fieldCount--
6974 }
69756976 if t.Source == nil {
6977+ fieldCount--
6978+ }
6979+6980+ if t.Spindle == nil {
6981 fieldCount--
6982 }
6983···7105 }
7106 }
71077108+ // t.Spindle (string) (string)
7109+ if t.Spindle != nil {
7110+7111+ if len("spindle") > 1000000 {
7112+ return xerrors.Errorf("Value in field \"spindle\" was too long")
7113+ }
7114+7115+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("spindle"))); err != nil {
7116+ return err
7117+ }
7118+ if _, err := cw.WriteString(string("spindle")); err != nil {
7119+ return err
7120+ }
7121+7122+ if t.Spindle == nil {
7123+ if _, err := cw.Write(cbg.CborNull); err != nil {
7124+ return err
7125+ }
7126+ } else {
7127+ if len(*t.Spindle) > 1000000 {
7128+ return xerrors.Errorf("Value in field t.Spindle was too long")
7129+ }
7130+7131+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(*t.Spindle))); err != nil {
7132+ return err
7133+ }
7134+ if _, err := cw.WriteString(string(*t.Spindle)); err != nil {
7135+ return err
7136+ }
7137+ }
7138+ }
7139+7140 // t.CreatedAt (string) (string)
7141 if len("createdAt") > 1000000 {
7142 return xerrors.Errorf("Value in field \"createdAt\" was too long")
···7300 t.Source = (*string)(&sval)
7301 }
7302 }
7303+ // t.Spindle (string) (string)
7304+ case "spindle":
7305+7306+ {
7307+ b, err := cr.ReadByte()
7308+ if err != nil {
7309+ return err
7310+ }
7311+ if b != cbg.CborNull[0] {
7312+ if err := cr.UnreadByte(); err != nil {
7313+ return err
7314+ }
7315+7316+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
7317+ if err != nil {
7318+ return err
7319+ }
7320+7321+ t.Spindle = (*string)(&sval)
7322+ }
7323+ }
7324 // t.CreatedAt (string) (string)
7325 case "createdAt":
7326···7371 }
73727373 cw := cbg.NewCborWriter(w)
073747375+ if _, err := cw.Write([]byte{164}); err != nil {
00007376 return err
7377 }
7378···7419 }
74207421 // t.Instance (string) (string)
7422+ if len("instance") > 1000000 {
7423+ return xerrors.Errorf("Value in field \"instance\" was too long")
7424+ }
74257426+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len("instance"))); err != nil {
7427+ return err
7428+ }
7429+ if _, err := cw.WriteString(string("instance")); err != nil {
7430+ return err
7431+ }
74327433+ if len(t.Instance) > 1000000 {
7434+ return xerrors.Errorf("Value in field t.Instance was too long")
7435+ }
00074367437+ if err := cw.WriteMajorTypeHeader(cbg.MajTextString, uint64(len(t.Instance))); err != nil {
7438+ return err
7439+ }
7440+ if _, err := cw.WriteString(string(t.Instance)); err != nil {
7441+ return err
000000000007442 }
74437444 // t.CreatedAt (string) (string)
···7533 case "instance":
75347535 {
7536+ sval, err := cbg.ReadStringWithMax(cr, 1000000)
7537 if err != nil {
7538 return err
7539 }
000075407541+ t.Instance = string(sval)
0000007542 }
7543 // t.CreatedAt (string) (string)
7544 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",