1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
commonv1 "github.com/johnandersen777/socialweb-computer-kcp/api/common/v1alpha1"
)
type InfraCollection struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec InfraCollectionSpec `json:"spec,omitempty"`
Status InfraCollectionStatus `json:"status,omitempty"`
}
type InfraCollectionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []InfraCollection `json:"items"`
}
type EphemeralInfraCollection struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec InfraCollectionSpec `json:"spec,omitempty"`
Status InfraCollectionStatus `json:"status,omitempty"`
}
type EphemeralInfraCollectionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []EphemeralInfraCollection `json:"items"`
}
type InfraCollectionSpec struct {
RepoRef commonv1.ObjectRef `json:"repoRef"`
EventSourceRefs []commonv1.ObjectRef `json:"eventSourceRefs,omitempty"`
}
type InfraCollectionChild struct {
Rkey string `json:"rkey"`
URI string `json:"uri"`
CID string `json:"cid,omitempty"`
Name string `json:"name,omitempty"`
BoundBy string `json:"boundBy,omitempty"`
Message string `json:"message,omitempty"`
}
type InfraCollectionStatus struct {
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
Did string `json:"did,omitempty"`
Collection string `json:"collection,omitempty"`
Records int `json:"records,omitempty"`
Children []InfraCollectionChild `json:"children,omitempty"`
Message string `json:"message,omitempty"`
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
const InfraCollectionConditionListed = "Listed"
const InfraCollectionConditionIndexed = "Indexed"