Documentation ¶
Index ¶
- type DetailDescriber
- type HomeDescriber
- type HomeDescriberOption
- type Module
- func (m Module) AddCRD(ctx context.Context, crd *unstructured.Unstructured) error
- func (m *Module) ClientRequestHandlers() []octant.ClientRequestHandler
- func (m *Module) Content(ctx context.Context, contentPath string, opts module.ContentOptions) (component.ContentResponse, error)
- func (m *Module) ContentPath() string
- func (m *Module) Description() string
- func (m Module) Generators() []octant.Generator
- func (m Module) GroupVersionKindPath(namespace, apiVersion, kind, name string) (string, error)
- func (m Module) GvkFromPath(contentPath, namespace string) (schema.GroupVersionKind, error)
- func (m *Module) Name() string
- func (m *Module) Navigation(ctx context.Context, namespace, root string) ([]navigation.Navigation, error)
- func (m Module) RemoveCRD(ctx context.Context, crd *unstructured.Unstructured) error
- func (m Module) ResetCRDs(ctx context.Context) error
- func (m Module) SetContext(ctx context.Context, contextName string) error
- func (m Module) SetNamespace(namespace string) error
- func (m Module) Start() error
- func (m Module) Stop()
- func (m Module) SupportedGroupVersionKind() []schema.GroupVersionKind
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailDescriber ¶
type DetailDescriber struct{}
func NewDetailDescriber ¶
func NewDetailDescriber() (*DetailDescriber, error)
func (*DetailDescriber) Describe ¶
func (d *DetailDescriber) Describe(ctx context.Context, namespace string, options describer.Options) (component.ContentResponse, error)
func (*DetailDescriber) PathFilters ¶
func (d *DetailDescriber) PathFilters() []describer.PathFilter
type HomeDescriber ¶
type HomeDescriber struct{}
HomeDescriber describe the home page for workloads module.
func NewHomeDescriber ¶
func NewHomeDescriber(options ...HomeDescriberOption) (*HomeDescriber, error)
NewHomeDescriber creates an instance of HomeDescriber.
func (*HomeDescriber) Describe ¶
func (h *HomeDescriber) Describe(ctx context.Context, namespace string, options describer.Options) (component.ContentResponse, error)
Describe creates a content response for workloads.
func (*HomeDescriber) PathFilters ¶
func (h *HomeDescriber) PathFilters() []describer.PathFilter
PathFilters returns a path filter for the root path.
type HomeDescriberOption ¶
type HomeDescriberOption func(hd *HomeDescriber)
HomeDescriberOption is an option for configuring home describer.
type Module ¶
type Module struct { Options // contains filtered or unexported fields }
Module contains the implementation for the workloads module.
func (Module) AddCRD ¶
func (m Module) AddCRD(ctx context.Context, crd *unstructured.Unstructured) error
AddCRD is a no-op.
func (*Module) ClientRequestHandlers ¶
func (m *Module) ClientRequestHandlers() []octant.ClientRequestHandler
ClientRequestHandlers returns nil.
func (*Module) Content ¶
func (m *Module) Content(ctx context.Context, contentPath string, opts module.ContentOptions) (component.ContentResponse, error)
Content handles content for the module.
func (*Module) ContentPath ¶
ContentPath returns the content path for this module.
func (*Module) Description ¶ added in v0.17.0
Description returns the module description.
func (Module) GroupVersionKindPath ¶
GroupVersionKindPath return return an error as this module does not support.
func (Module) GvkFromPath ¶ added in v0.17.0
func (m Module) GvkFromPath(contentPath, namespace string) (schema.GroupVersionKind, error)
func (*Module) Navigation ¶
func (m *Module) Navigation(ctx context.Context, namespace, root string) ([]navigation.Navigation, error)
Navigation returns navigation entries for the module.
func (Module) RemoveCRD ¶
func (m Module) RemoveCRD(ctx context.Context, crd *unstructured.Unstructured) error
RemoveCRD is a no-op.
func (Module) SetContext ¶
SetContext is a no-op.
func (Module) SetNamespace ¶
SetNamespace is a no-op.
func (Module) SupportedGroupVersionKind ¶
func (m Module) SupportedGroupVersionKind() []schema.GroupVersionKind
SupportedGroupVersionKind returns nil.