Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRDWatchConfig ¶ added in v0.22.0
type CRDWatchConfig struct { Add ObjectHandler Delete ObjectHandler IsNamespaced bool }
CRDWatchConfig is configuration for CRDWatcher.
func (*CRDWatchConfig) CanPerform ¶ added in v0.22.0
func (c *CRDWatchConfig) CanPerform(u *unstructured.Unstructured) bool
CanPerform returns true if config can perform actions on an object.
type CRDWatcher ¶ added in v0.22.0
type CRDWatcher interface { Watch(ctx context.Context) error AddConfig(config *CRDWatchConfig) error }
CRDWatcher watches for CRDs.
type Dash ¶ added in v0.22.0
type Dash interface { octant.LinkGenerator octant.Storage ClusterClient() cluster.ClientInterface CRDWatcher() CRDWatcher ErrorStore() errors.ErrorStore Logger() log.Logger PluginManager() plugin.ManagerInterface PortForwarder() portforward.PortForwarder SetContextChosenInUI(contextChosen bool) UseFSContext(ctx context.Context) error UseContext(ctx context.Context, contextName string) error CurrentContext() string Contexts() []kubeconfig.Context DefaultNamespace() string Validate() error ModuleManager() module.ManagerInterface BuildInfo() (string, string, string) KubeConfigPath() string }
Config is configuration for dash. It has knowledge of the all the major sections of dash.
type ObjectHandler ¶ added in v0.22.0
type ObjectHandler func(ctx context.Context, object *unstructured.Unstructured)
ObjectHandler is a function that is run when a new object is available.
Click to show internal directories.
Click to hide internal directories.