controller

package
v0.0.0-...-81ccbf4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EngineError = errors.New("Error with Engine-")
)
View Source
var JmeterEngineType engineType

Functions

func NewJmeterEngine

func NewJmeterEngine(be *baseEngine) *jmeterEngine

Types

type ApiMetricStream

type ApiMetricStream struct {
	CollectionID string
	StreamClient chan *ApiMetricStreamEvent
	ClientID     string
}

type ApiMetricStreamEvent

type ApiMetricStreamEvent struct {
	CollectionID string `json:"collection_id"`
	Raw          string `json:"metrics"`
	PlanID       string `json:"plan_id"`
}

type Controller

type Controller struct {
	LabelStore         sync.Map
	StatusStore        sync.Map
	ApiNewClients      chan *ApiMetricStream
	ApiStreamClients   map[string]map[string]chan *ApiMetricStreamEvent
	ApiMetricStreamBus chan *ApiMetricStreamEvent
	ApiClosingClients  chan *ApiMetricStream

	Scheduler scheduler.EngineScheduler
	// contains filtered or unexported fields
}

func NewController

func NewController() *Controller

func (*Controller) CollectionStatus

func (c *Controller) CollectionStatus(collection *model.Collection) (*smodel.CollectionStatus, error)

func (*Controller) DeployCollection

func (c *Controller) DeployCollection(collection *model.Collection) error

func (*Controller) PurgeNodes

func (c *Controller) PurgeNodes(collection *model.Collection) error

func (*Controller) TermAndPurgeCollection

func (c *Controller) TermAndPurgeCollection(collection *model.Collection) (err error)

func (*Controller) TermCollection

func (c *Controller) TermCollection(collection *model.Collection, force bool) (e error)

func (*Controller) TriggerCollection

func (c *Controller) TriggerCollection(collection *model.Collection) error

type GCPNodesInfo

type GCPNodesInfo struct {
	smodel.NodesInfo
	Status string
}

type GCPOperator

type GCPOperator struct {
	*config.ClusterConfig
	// contains filtered or unexported fields
}

func NewGCPOperator

func NewGCPOperator(collectionID, nodesRequired int64) *GCPOperator

func (*GCPOperator) GCPNodesInfo

func (o *GCPOperator) GCPNodesInfo() *GCPNodesInfo

func (*GCPOperator) GetNodePool

func (o *GCPOperator) GetNodePool() *google.NodePool

func (*GCPOperator) GetNodesSize

func (o *GCPOperator) GetNodesSize() (int, error)

type PlanController

type PlanController struct {
	// contains filtered or unexported fields
}

func NewPlanController

func NewPlanController(ep *model.ExecutionPlan, collection *model.Collection, scheduler scheduler.EngineScheduler) *PlanController

type RunningPlan

type RunningPlan struct {
	// contains filtered or unexported fields
}

This is used for tracking all the running plans So even when Shibuya controller restarts, the tests can resume

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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