Documentation ¶
Index ¶
- func CustomResourceDefinitions(ctx context.Context, o store.Store) ([]*apiextv1beta1.CustomResourceDefinition, bool, error)
- func ListCustomResources(ctx context.Context, crd *apiextv1beta1.CustomResourceDefinition, ...) (*unstructured.UnstructuredList, bool, error)
- type EntriesHelper
- type Navigation
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomResourceDefinitions ¶
func CustomResourceDefinitions(ctx context.Context, o store.Store) ([]*apiextv1beta1.CustomResourceDefinition, bool, error)
func ListCustomResources ¶
func ListCustomResources( ctx context.Context, crd *apiextv1beta1.CustomResourceDefinition, namespace string, o store.Store, selector *labels.Set) (*unstructured.UnstructuredList, bool, error)
ListCustomResources lists all custom resources given a CRD.
Types ¶
type EntriesHelper ¶
type EntriesHelper struct {
// contains filtered or unexported fields
}
EntriesHelper generates navigation entries.
func (*EntriesHelper) Add ¶
func (neh *EntriesHelper) Add(title, suffix string, isLoading bool)
Add adds an entry.
func (*EntriesHelper) Generate ¶
func (neh *EntriesHelper) Generate(prefix, namespace, name string) ([]Navigation, error)
Generate generates navigation entries.
type Navigation ¶
type Navigation struct {}
Navigation is a set of navigation entries.
type Option ¶
type Option func(*Navigation) error
Option is an option for configuring navigation.
func SetLoading ¶
SetLoading sets the loading status for the navigation entry.
func SetNavigationIcon ¶
SetNavigationIcon sets the icon for the navigation entry.
Click to show internal directories.
Click to hide internal directories.