Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultVersion = "v1" DefaultName = "hello-world" DefaultKind = "controller" DefaultImage = "simple-test" DefaultShortDescription = "logging information" DefaultDescription = "logging detail information of the strategy" KindController = "controller" KindScheduler = "scheduler" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy struct { StrategyVersion string `json:"version"` StrategyShortDescription string `json:"shortDescription"` StrategyDescription string `json:"description"` StrategyName string `json:"name"` StrategyKind string `json:"kind"` StrategyImage string `json:"image"` StrategyContainerEnv map[string]string `json:"containerEnvs"` /* 仅运行中的策略有的guid和container name and container id */ StrategyGuid string `json:"guid"` StrategyContainerId string `json:"containerId"` StrategyContainerName string `json:"containerName"` }
func NewDefaultStrategy ¶
func NewDefaultStrategy() *Strategy
Click to show internal directories.
Click to hide internal directories.