common

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterState

type ClusterState struct {
	*State
	*api.Cluster
	Extensions       []extension.Extension
	Namespaces       pubsub.Property[[]*corev1.Namespace]
	SelectedResource pubsub.Property[*metav1.APIResource]
	SearchText       pubsub.Property[string]
	SearchFilter     pubsub.Property[SearchFilter]
	SelectedObject   pubsub.Property[client.Object]
	Objects          pubsub.Property[[]client.Object]
}

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

type State

type State struct {
	Preferences pubsub.Property[api.Preferences]
}

func NewState

func NewState() (*State, error)

func (*State) NewClusterState

func (s *State) NewClusterState(ctx context.Context, clusterPrefs pubsub.Property[api.ClusterPreferences]) (*ClusterState, error)

Jump to

Keyboard shortcuts

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