resources

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

Documentation

Index

Constants

View Source
const (
	UserIdListSavePath = "/spongeregister/superbahnManager/userInfo/idList"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerApi

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

func NewManagerApi

func NewManagerApi(ctx context.Context, recorder Recorder) (*ManagerApi, error)

func (*ManagerApi) GetApplicationManager

func (r *ManagerApi) GetApplicationManager(user, token string) (*manager_applications.AppliationManager, error)

func (*ManagerApi) GetBindingsManager

func (r *ManagerApi) GetBindingsManager(user, token string) (*manager_bindings.BindingsManager, error)

func (*ManagerApi) GetClustersManager

func (r *ManagerApi) GetClustersManager(user, token string) (*manager_clusters.ClustersManager, error)

func (*ManagerApi) GetResourceManager

func (r *ManagerApi) GetResourceManager(user, token string) (*sponge_resources.ResourcesManager, error)

func (*ManagerApi) GetStrategiesManager

func (r *ManagerApi) GetStrategiesManager(user, token string) (*manager_strategies.StrategiesManager, error)

func (*ManagerApi) RegisterUser

func (r *ManagerApi) RegisterUser(userId, token string) error

type Recorder

type Recorder interface {
	Put(string, string) error
	Get(string) ([]byte, error)
	GetWithPrefix(string) (map[string][]byte, error)
	Del(string) error
	GetWatcher(string) clientv3.WatchChan
}

Jump to

Keyboard shortcuts

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