Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Usecases ¶
type Usecases struct { // ContextBox is a connector used to query request from context-box. ContextBox ports.ContextBoxPort // Context which when cancelled will close all channel/goroutines. Context context.Context // SaveAutoscalerEvent is channel which is used to pass autoscaler event to controller SaveAutoscalerEvent chan event.GenericEvent }
func (*Usecases) CreateConfig ¶
func (u *Usecases) CreateConfig(inputManifest *manifest.Manifest, resourceName string, resourceNamespace string) error
createConfig generates and saves config into the DB. Used for new configs and updated configs.
func (*Usecases) DeleteConfig ¶
deleteConfig generates and triggers deletion of config into the DB.
func (*Usecases) SendAutoscalerEvent ¶
func (u *Usecases) SendAutoscalerEvent(request *pb.SendAutoscalerEventRequest) (*pb.SendAutoscalerEventResponse, error)
SendAutoscalerEvent will receive an autoscaler event, and send it to the autoscaler channel
Click to show internal directories.
Click to hide internal directories.