Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Behavior ¶
type Behavior struct {
Preferences observer.Property[api.Preferences]
}
func NewBehavior ¶
func (*Behavior) WithCluster ¶
func (b *Behavior) WithCluster(ctx context.Context, clusterPrefs observer.Property[api.ClusterPreferences]) (*ClusterBehavior, error)
type ClusterBehavior ¶
type ClusterBehavior struct {
*Behavior
*api.Cluster
Extensions []extension.Extension
Namespaces observer.Property[[]corev1.Namespace]
SelectedResource observer.Property[*metav1.APIResource]
SearchText observer.Property[string]
SearchFilter observer.Property[SearchFilter]
RootDetailBehavior *DetailBehavior
}
func (*ClusterBehavior) NewDetailBehavior ¶
func (b *ClusterBehavior) NewDetailBehavior() *DetailBehavior
func (*ClusterBehavior) NewListBehavior ¶
func (b *ClusterBehavior) NewListBehavior() *ListBehavior
func (*ClusterBehavior) NewRootDetailBehavior ¶
func (b *ClusterBehavior) NewRootDetailBehavior() *DetailBehavior
type DetailBehavior ¶
type DetailBehavior struct {
*ClusterBehavior
SelectedObject observer.Property[client.Object]
Yaml observer.Property[string]
Properties observer.Property[[]api.Property]
}
func (*DetailBehavior) DeleteObject ¶
func (b *DetailBehavior) DeleteObject(obj client.Object) error
func (*DetailBehavior) UpdateObject ¶
func (b *DetailBehavior) UpdateObject(obj *unstructured.Unstructured) error
type ListBehavior ¶
type ListBehavior struct {
*ClusterBehavior
Objects observer.Property[[]client.Object]
// contains filtered or unexported fields
}
type SearchFilter ¶
func NewSearchFilter ¶
func NewSearchFilter(text string) SearchFilter
Click to show internal directories.
Click to hide internal directories.