usecases

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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

func (u *Usecases) DeleteConfig(inputManifest *manifest.Manifest) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL