behavior

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

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 NewBehavior() (*Behavior, error)

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(ctx context.Context) *DetailBehavior

func (*ClusterBehavior) NewListBehavior

func (b *ClusterBehavior) NewListBehavior(ctx context.Context) *ListBehavior

func (*ClusterBehavior) NewRootDetailBehavior

func (b *ClusterBehavior) NewRootDetailBehavior(ctx context.Context) *DetailBehavior

type DetailBehavior

type DetailBehavior struct {
	*ClusterBehavior

	SelectedObject observer.Property[client.Object]
	Yaml           observer.Property[string]
	Properties     observer.Property[[]api.Property]
	// contains filtered or unexported fields
}

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

type SearchFilter struct {
	Name      []string
	Namespace []string
}

func NewSearchFilter

func NewSearchFilter(text string) SearchFilter

func (*SearchFilter) Test

func (f *SearchFilter) Test(object client.Object) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL