Skip to content

Commit d29924a

Browse files
committed
Add GitterRepo model for rpc between doc and gitter
Adds the GitterRepo struct, which is passed as the first arg to gitter when communicating over rpc. Signed-off-by: hasheddan <[email protected]>
1 parent 6c6bb49 commit d29924a

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

pkg/models/repo.go

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ limitations under the License.
1616

1717
package models
1818

19-
import (
20-
"time"
21-
)
22-
23-
// Repo is data for a Github repo.
24-
type Repo struct {
25-
GithubURL string
26-
Tag string
27-
LastParsed time.Time
28-
CRDs map[string]RepoCRD
29-
}
30-
3119
// RepoCRD is a CRD and data about its location in a repository.
3220
type RepoCRD struct {
3321
Path string
@@ -37,3 +25,10 @@ type RepoCRD struct {
3725
Kind string
3826
CRD []byte
3927
}
28+
29+
// GitterRepo is the repo for gitter to index.
30+
type GitterRepo struct {
31+
Org string
32+
Repo string
33+
Tag string
34+
}

0 commit comments

Comments
 (0)