Documentation ¶
Index ¶
- func WithRecorder(recorder supbapis.Recorder) option
- func WithRunner(runner *supbrunner.SupbRunner) option
- func WithSponge(spg *supbspg.SupbSponge) option
- type SupbResources
- func (r *SupbResources) AddApplication(app *m2.SupbApplicationBaseInfo) (*m2.SupbApplicationBaseInfo, error)
- func (r *SupbResources) AddStrategy(strategy *m1.SupbStrategyBaseInfo) (*m1.SupbStrategyBaseInfo, error)
- func (r *SupbResources) ApplicationsManager() *applications.SupbApplications
- func (r *SupbResources) Close() error
- func (r *SupbResources) GetApplication(appTypes, appKey string) (*m2.SupbApplicationBaseInfo, error)
- func (r *SupbResources) GetStrategy(strategyTypes, strategyKey string) (*m1.SupbStrategyBaseInfo, error)
- func (r *SupbResources) InitFlags(flags *pflag.FlagSet)
- func (r *SupbResources) InitViper(viper *viper.Viper)
- func (r *SupbResources) Initialize(opts ...option)
- func (r *SupbResources) Link(appType, appKey string, strategyType, strategyKey string) error
- func (r *SupbResources) ListApplications(appTypes string) ([]*m2.SupbApplicationBaseInfo, error)
- func (r *SupbResources) ListStrategies(strategyTypes string) ([]*m1.SupbStrategyBaseInfo, error)
- func (r *SupbResources) OptionConfig(opts ...option)
- func (r *SupbResources) PutApplication(appTypes string, application *m2.SupbApplicationBaseInfo) (*m2.SupbApplicationBaseInfo, error)
- func (r *SupbResources) PutStrategy(strategyTypes string, strategy *m1.SupbStrategyBaseInfo) (*m1.SupbStrategyBaseInfo, error)
- func (r *SupbResources) ReStartDynamicApplication(applicationKey string) (*m2.SupbApplicationBaseInfo, error)
- func (r *SupbResources) ReStartDynamicStrategy(strategyKey string) (*m1.SupbStrategyBaseInfo, error)
- func (r *SupbResources) RemoveDynamicApplication(applicationKey string) (*m2.SupbApplicationBaseInfo, error)
- func (r *SupbResources) RemoveDynamicStrategy(strategyKey string) (*m1.SupbStrategyBaseInfo, error)
- func (r *SupbResources) RemoveStaticApplication(applicationKey string) (*m2.SupbApplicationBaseInfo, error)
- func (r *SupbResources) RemoveStaticStrategy(strategyKey string) (*m1.SupbStrategyBaseInfo, error)
- func (r *SupbResources) RunStaticApplication(applicationKey, appName string, links map[string]string) (*m2.SupbApplicationBaseInfo, error)
- func (r *SupbResources) RunStaticStrategies(strategyKey, strategyName string, links map[string]string) (*m1.SupbStrategyBaseInfo, error)
- func (r *SupbResources) StopDynamicApplication(applicationKey string) (*m2.SupbApplicationBaseInfo, error)
- func (r *SupbResources) StopDynamicStrategy(strategyKey string) (*m1.SupbStrategyBaseInfo, error)
- func (r *SupbResources) StrategiesManager() *strategies.SupbStrategies
- func (r *SupbResources) UnLink(appType, appKey string, strategyType, strategyKey string) error
- func (r *SupbResources) ViperConfig(viper *viper.Viper)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithRecorder ¶
func WithRunner ¶
func WithRunner(runner *supbrunner.SupbRunner) option
func WithSponge ¶
func WithSponge(spg *supbspg.SupbSponge) option
Types ¶
type SupbResources ¶
type SupbResources struct {
// contains filtered or unexported fields
}
func NewSupbResManager ¶
func NewSupbResManager(ctx context.Context, prefix string) *SupbResources
func (*SupbResources) AddApplication ¶
func (r *SupbResources) AddApplication(app *m2.SupbApplicationBaseInfo) (*m2.SupbApplicationBaseInfo, error)
func (*SupbResources) AddStrategy ¶
func (r *SupbResources) AddStrategy(strategy *m1.SupbStrategyBaseInfo) (*m1.SupbStrategyBaseInfo, error)
func (*SupbResources) ApplicationsManager ¶
func (r *SupbResources) ApplicationsManager() *applications.SupbApplications
func (*SupbResources) Close ¶
func (r *SupbResources) Close() error
func (*SupbResources) GetApplication ¶
func (r *SupbResources) GetApplication(appTypes, appKey string) (*m2.SupbApplicationBaseInfo, error)
func (*SupbResources) GetStrategy ¶
func (r *SupbResources) GetStrategy(strategyTypes, strategyKey string) (*m1.SupbStrategyBaseInfo, error)
func (*SupbResources) InitFlags ¶
func (r *SupbResources) InitFlags(flags *pflag.FlagSet)
func (*SupbResources) InitViper ¶
func (r *SupbResources) InitViper(viper *viper.Viper)
func (*SupbResources) Initialize ¶
func (r *SupbResources) Initialize(opts ...option)
func (*SupbResources) Link ¶
func (r *SupbResources) Link(appType, appKey string, strategyType, strategyKey string) error
func (*SupbResources) ListApplications ¶
func (r *SupbResources) ListApplications(appTypes string) ([]*m2.SupbApplicationBaseInfo, error)
func (*SupbResources) ListStrategies ¶
func (r *SupbResources) ListStrategies(strategyTypes string) ([]*m1.SupbStrategyBaseInfo, error)
func (*SupbResources) OptionConfig ¶
func (r *SupbResources) OptionConfig(opts ...option)
func (*SupbResources) PutApplication ¶
func (r *SupbResources) PutApplication(appTypes string, application *m2.SupbApplicationBaseInfo) (*m2.SupbApplicationBaseInfo, error)
func (*SupbResources) PutStrategy ¶
func (r *SupbResources) PutStrategy(strategyTypes string, strategy *m1.SupbStrategyBaseInfo) (*m1.SupbStrategyBaseInfo, error)
func (*SupbResources) ReStartDynamicApplication ¶
func (r *SupbResources) ReStartDynamicApplication(applicationKey string) (*m2.SupbApplicationBaseInfo, error)
func (*SupbResources) ReStartDynamicStrategy ¶
func (r *SupbResources) ReStartDynamicStrategy(strategyKey string) (*m1.SupbStrategyBaseInfo, error)
func (*SupbResources) RemoveDynamicApplication ¶
func (r *SupbResources) RemoveDynamicApplication(applicationKey string) (*m2.SupbApplicationBaseInfo, error)
func (*SupbResources) RemoveDynamicStrategy ¶
func (r *SupbResources) RemoveDynamicStrategy(strategyKey string) (*m1.SupbStrategyBaseInfo, error)
func (*SupbResources) RemoveStaticApplication ¶
func (r *SupbResources) RemoveStaticApplication(applicationKey string) (*m2.SupbApplicationBaseInfo, error)
func (*SupbResources) RemoveStaticStrategy ¶
func (r *SupbResources) RemoveStaticStrategy(strategyKey string) (*m1.SupbStrategyBaseInfo, error)
func (*SupbResources) RunStaticApplication ¶
func (r *SupbResources) RunStaticApplication(applicationKey, appName string, links map[string]string) (*m2.SupbApplicationBaseInfo, error)
func (*SupbResources) RunStaticStrategies ¶
func (r *SupbResources) RunStaticStrategies(strategyKey, strategyName string, links map[string]string) (*m1.SupbStrategyBaseInfo, error)
func (*SupbResources) StopDynamicApplication ¶
func (r *SupbResources) StopDynamicApplication(applicationKey string) (*m2.SupbApplicationBaseInfo, error)
func (*SupbResources) StopDynamicStrategy ¶
func (r *SupbResources) StopDynamicStrategy(strategyKey string) (*m1.SupbStrategyBaseInfo, error)
func (*SupbResources) StrategiesManager ¶
func (r *SupbResources) StrategiesManager() *strategies.SupbStrategies
func (*SupbResources) UnLink ¶
func (r *SupbResources) UnLink(appType, appKey string, strategyType, strategyKey string) error
func (*SupbResources) ViperConfig ¶
func (r *SupbResources) ViperConfig(viper *viper.Viper)
Click to show internal directories.
Click to hide internal directories.