Documentation ¶
Index ¶
- func NewCmdConfigure() *cobra.Command
- func NewCmdStart() *cobra.Command
- func NewCmdStatus() *cobra.Command
- func NewCmdStop() *cobra.Command
- func NewCmdSuspend() *cobra.Command
- func NewCmdUnsuspend() *cobra.Command
- func NewSubCmd() *cobra.Command
- type CPU
- type Config
- type ErrorPercent
- type Guardrails
- type JsonStoreItem
- type K8SDeployment
- type MedianResponseTime
- type Mem
- type OptimizerConfiguration
- type Slo
- type Suspension
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdConfigure ¶ added in v0.36.0
func NewCmdStart ¶ added in v0.37.0
func NewCmdStatus ¶ added in v0.34.0
func NewCmdStop ¶ added in v0.37.0
func NewCmdSuspend ¶ added in v0.37.0
func NewCmdUnsuspend ¶ added in v0.37.0
Types ¶
type Config ¶ added in v0.36.0
type Config struct { Guardrails Guardrails `json:"guardrails"` Slo Slo `json:"slo"` }
type ErrorPercent ¶ added in v0.36.0
type ErrorPercent struct {
Target float64 `json:"target"`
}
type Guardrails ¶ added in v0.36.0
type JsonStoreItem ¶ added in v0.36.0
type JsonStoreItem struct { CreatedAt time.Time `json:"createdAt"` // Data Data `json:"data"` NOTE: leave out data so that its type can be specified by embedding this type into another ID string `json:"id"` LayerID string `json:"layerId"` LayerType string `json:"layerType"` ObjectMimeType string `json:"objectMimeType"` ObjectType string `json:"objectType"` ObjectVersion int `json:"objectVersion"` Patch any `json:"patch"` TargetObjectID any `json:"targetObjectId"` UpdatedAt time.Time `json:"updatedAt"` }
TODO move to Orion package?
type K8SDeployment ¶ added in v0.36.0
type MedianResponseTime ¶ added in v0.36.0
type MedianResponseTime struct {
Target float64 `json:"target"`
}
type OptimizerConfiguration ¶ added in v0.36.0
type Slo ¶ added in v0.36.0
type Slo struct { ErrorPercent ErrorPercent `json:"errorPercent"` MedianResponseTime MedianResponseTime `json:"medianResponseTime"` }
type Suspension ¶ added in v0.36.0
type Target ¶ added in v0.36.0
type Target struct {
K8SDeployment K8SDeployment `json:"k8sDeployment"`
}
Click to show internal directories.
Click to hide internal directories.