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 ¶ added in v0.5.0
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 ¶ added in v0.6.0
type EntriesHelper struct {
// contains filtered or unexported fields
}
EntriesHelper generates navigation entries.
func (*EntriesHelper) Add ¶ added in v0.6.0
func (neh *EntriesHelper) Add(title, suffix, iconName string, isLoading bool)
Add adds an entry.
func (*EntriesHelper) Generate ¶ added in v0.6.0
func (neh *EntriesHelper) Generate(prefix 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 ¶ added in v0.6.0
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.