Documentation
¶
Index ¶
- func CachedResourceViewer(object runtime.Object, dashConfig config.Dash, q queryer.Queryer) componentcache.UpdateFn
- func GenerateComponent(ctx context.Context, details Details, selected types.UID) (*component.ResourceViewer, error)
- type Details
- type Handler
- type HandlerObjectStatus
- type HandlerOption
- type ObjectStatus
- type ResourceViewer
- type ViewerOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CachedResourceViewer ¶
func CachedResourceViewer(object runtime.Object, dashConfig config.Dash, q queryer.Queryer) componentcache.UpdateFn
CachedResourceViewer returns a RV component from the component cache and starts a new visit.
func GenerateComponent ¶
func GenerateComponent(ctx context.Context, details Details, selected types.UID) (*component.ResourceViewer, error)
GenerateComponent generates a resource viewer component given details.
Types ¶
type Details ¶
type Details interface {
AdjacencyList() (*component.AdjList, error)
Nodes(ctx context.Context) (component.Nodes, error)
}
Details generates details for resource viewer.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is a visitor handler.
func NewHandler ¶
func NewHandler(dashConfig config.Dash, options ...HandlerOption) (*Handler, error)
NewHandler creates an instance of Handler.
func (*Handler) AdjacencyList ¶
AdjacencyList creates an adjacency list from the handler.
type HandlerObjectStatus ¶
type HandlerObjectStatus struct {
// contains filtered or unexported fields
}
func NewHandlerObjectStatus ¶
func NewHandlerObjectStatus(objectStore store.Store, pluginManager plugin.ManagerInterface) *HandlerObjectStatus
func (*HandlerObjectStatus) Status ¶
func (h *HandlerObjectStatus) Status(ctx context.Context, object runtime.Object) (*objectstatus.ObjectStatus, error)
type HandlerOption ¶
type HandlerOption func(h *Handler)
HandlerOption is an option for configuring Handler.
func SetHandlerObjectStatus ¶
func SetHandlerObjectStatus(objectStatus ObjectStatus) HandlerOption
SetHandlerObjectStatus configures handler to use a custom object status generator.
type ObjectStatus ¶
type ObjectStatus interface {
Status(ctx context.Context, object runtime.Object) (*objectstatus.ObjectStatus, error)
}
type ResourceViewer ¶
type ResourceViewer struct {
// contains filtered or unexported fields
}
ResourceViewer visits an object and creates a view component.
func New ¶
func New(dashConfig config.Dash, opts ...ViewerOpt) (*ResourceViewer, error)
New creates an instance of ResourceViewer.
func (*ResourceViewer) Visit ¶
func (rv *ResourceViewer) Visit(ctx context.Context, object runtime.Object) (*component.ResourceViewer, error)
Click to show internal directories.
Click to hide internal directories.