Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Informer ¶
type Informer interface {
Start(ctx context.Context) error
List() []*ParsedWorkspace
}
type K8sInformer ¶
type K8sInformer struct {
// contains filtered or unexported fields
}
func NewK8sInformer ¶
func NewK8sInformer(log *zap.Logger, informer cache.SharedIndexInformer) (*K8sInformer, error)
func (*K8sInformer) List ¶
func (i *K8sInformer) List() []*ParsedWorkspace
type MockInformer ¶
type MockInformer struct {
Resources map[string]*ParsedWorkspace
}
func NewMockInformer ¶
func NewMockInformer() *MockInformer
func (*MockInformer) List ¶
func (i *MockInformer) List() []*ParsedWorkspace
type ParsedWorkspace ¶
type ParsedWorkspace struct {
Name string
Namespace string
ResourceVersion string
K8sDeploymentInfo map[string]interface{}
}
ParsedWorkspace is our internal view on the full unstructured.Unstructured k8s resource. We use ParsedWorkspace for logic like checking if the latest change has been persisted or whether we terminated the workspace
Click to show internal directories.
Click to hide internal directories.