strategies

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 0 Imported by: 0

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

func (*Strategy) DeepCopy

func (r *Strategy) DeepCopy() *Strategy

func (*Strategy) Envs

func (r *Strategy) Envs() map[string]string

Jump to

Keyboard shortcuts

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