strategy_driver

package
v1.3.0-beta Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfig

func CheckConfig(name string, config interface{}) error

func Register

func Register(driver IStrategyDriver)

Types

type IStrategyDriver

type IStrategyDriver interface {
	Driver() string
	ToRelease(s *strategy_dto.Strategy, labels map[string][]string, initStep int) *eosc.Base[gateway.StrategyRelease]
	Check(config interface{}) error
}

func GetDriver

func GetDriver(name string) (IStrategyDriver, bool)

type Manager

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

func (*Manager) AddDriver

func (m *Manager) AddDriver(driver IStrategyDriver)

func (*Manager) Delete

func (m *Manager) Delete(name string)

func (*Manager) GetDriver

func (m *Manager) GetDriver(driver string) (IStrategyDriver, bool)

func (*Manager) GetDrivers

func (m *Manager) GetDrivers() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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