Documentation ¶
Index ¶
- func HandleUIResourceCreateAction(_ context.Context, state *store.EngineState, a UIResourceCreateAction)
- func HandleUIResourceDeleteAction(_ context.Context, state *store.EngineState, a UIResourceDeleteAction)
- func HandleUIResourceUpdateStatusAction(ctx context.Context, state *store.EngineState, a UIResourceUpdateStatusAction)
- type Subscriber
- type UIResourceCreateAction
- type UIResourceDeleteAction
- type UIResourceUpdateStatusAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleUIResourceCreateAction ¶
func HandleUIResourceCreateAction(_ context.Context, state *store.EngineState, a UIResourceCreateAction)
func HandleUIResourceDeleteAction ¶
func HandleUIResourceDeleteAction(_ context.Context, state *store.EngineState, a UIResourceDeleteAction)
func HandleUIResourceUpdateStatusAction ¶
func HandleUIResourceUpdateStatusAction(ctx context.Context, state *store.EngineState, a UIResourceUpdateStatusAction)
Types ¶
type Subscriber ¶
type Subscriber struct { }
func NewSubscriber ¶
func NewSubscriber() *Subscriber
func (*Subscriber) OnChange ¶
func (s *Subscriber) OnChange(ctx context.Context, store store.RStore, summary store.ChangeSummary)
type UIResourceCreateAction ¶
type UIResourceCreateAction struct {
UIResource *v1alpha1.UIResource
}
func NewUIResourceCreateAction ¶
func NewUIResourceCreateAction(kd *v1alpha1.UIResource) UIResourceCreateAction
func (UIResourceCreateAction) Action ¶
func (p UIResourceCreateAction) Action()
func (UIResourceCreateAction) Summarize ¶
func (p UIResourceCreateAction) Summarize(s *store.ChangeSummary)
type UIResourceDeleteAction ¶
type UIResourceDeleteAction struct {
Name types.NamespacedName
}
func NewUIResourceDeleteAction ¶
func NewUIResourceDeleteAction(name types.NamespacedName) UIResourceDeleteAction
func (UIResourceDeleteAction) Action ¶
func (p UIResourceDeleteAction) Action()
func (UIResourceDeleteAction) Summarize ¶
func (p UIResourceDeleteAction) Summarize(s *store.ChangeSummary)
type UIResourceUpdateStatusAction ¶
type UIResourceUpdateStatusAction struct { ObjectMeta *metav1.ObjectMeta Status *v1alpha1.UIResourceStatus }
func NewUIResourceUpdateStatusAction ¶
func NewUIResourceUpdateStatusAction(kd *v1alpha1.UIResource) UIResourceUpdateStatusAction
func (UIResourceUpdateStatusAction) Action ¶
func (p UIResourceUpdateStatusAction) Action()
func (UIResourceUpdateStatusAction) Summarize ¶
func (p UIResourceUpdateStatusAction) Summarize(s *store.ChangeSummary)
Click to show internal directories.
Click to hide internal directories.