applications

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StaticApplicationRecorderKeyFormat  = "/repository/superbahnManager/application/static/%v"
	DynamicApplicationRecorderKeyFormat = "/repository/superbahnManager/application/dynamic/%v"
)

Variables

This section is empty.

Functions

func WithRecorder

func WithRecorder(recorder supbapis.Recorder) option

Types

type Recorder

type Recorder interface {
	Write(key string, value []byte) error
	Read(key string) ([]byte, error)
}

type SupbApplications

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

func NewSupbAppManager

func NewSupbAppManager() *SupbApplications

func (*SupbApplications) DeriveKey

func (*SupbApplications) GetApplication

func (r *SupbApplications) GetApplication(appTypes string, applicationKey types.SupbApplicationKey) (*model.SupbApplicationBaseInfo, error)

func (*SupbApplications) Initialize

func (r *SupbApplications) Initialize(opts ...option)

func (*SupbApplications) LinkControllerAssume

func (r *SupbApplications) LinkControllerAssume(appTypes string, appKey types.SupbApplicationKey, strategyKey types.SupbStrategyKey, controller *model.ApplicationController) (*linkAssume, error)

func (*SupbApplications) ListApplications

func (r *SupbApplications) ListApplications(appTypes string) ([]*model.SupbApplicationBaseInfo, error)

func (*SupbApplications) OptionConfig

func (r *SupbApplications) OptionConfig(opts ...option)

func (*SupbApplications) PutApplicationsAssume

func (r *SupbApplications) PutApplicationsAssume(appTypes string, baseInfo *model.SupbApplicationBaseInfo) (*putAssume, error)

func (*SupbApplications) RemoveApplicationAssume

func (r *SupbApplications) RemoveApplicationAssume(AppTypes string, applicationKey types.SupbApplicationKey) (*removeAssume, error)

func (*SupbApplications) UnLinkControllerAssume

func (r *SupbApplications) UnLinkControllerAssume(appTypes string, appKey types.SupbApplicationKey, strategyTypes string, strategyKey types.SupbStrategyKey) (*unLinkAssume, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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