wfimpl

package
v0.0.0-...-693d502 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceType = "shared"

Functions

func GetLocalStorageClusterStateMachine

func GetLocalStorageClusterStateMachine() *statemachine.StateMachine

func GetLocalStorageClusterWfManager

func GetLocalStorageClusterWfManager() *wfengine.WfManager

func GetSharedStorageClusterStateMachine

func GetSharedStorageClusterStateMachine() *statemachine.StateMachine

func GetSharedStorageClusterWfManager

func GetSharedStorageClusterWfManager() *wfengine.WfManager

Types

type LocalStorageClusterStepBase

type LocalStorageClusterStepBase struct {
	wfengine.StepAction
	Resource *v1.MPDCluster
	Service  *service.LocalStorageClusterService
	Model    *domain.LocalStorageCluster
}

func (*LocalStorageClusterStepBase) DoStep

func (*LocalStorageClusterStepBase) Init

func (s *LocalStorageClusterStepBase) Init(ctx map[string]interface{}, logger logr.Logger) error

func (*LocalStorageClusterStepBase) Output

func (s *LocalStorageClusterStepBase) Output(logger logr.Logger) map[string]interface{}

type MpdClusterResource

type MpdClusterResource struct {
	implement.KubeResource
	Logger logr.Logger
}

func (*MpdClusterResource) Fetch

Fetch 重新获取资源

func (*MpdClusterResource) GetMpdCluster

func (s *MpdClusterResource) GetMpdCluster() *v1.MPDCluster

func (*MpdClusterResource) GetScheme

func (s *MpdClusterResource) GetScheme() *runtime.Scheme

GetScheme ...

func (*MpdClusterResource) GetState

func (s *MpdClusterResource) GetState() statemachine.State

GetState 获取资源当前状态

func (*MpdClusterResource) IsCancelled

func (s *MpdClusterResource) IsCancelled() bool

func (*MpdClusterResource) Update

func (s *MpdClusterResource) Update() error

更新资源信息

func (*MpdClusterResource) UpdateState

UpdateState 更新资源当前状态(string)

type SharedStorageClusterStepBase

type SharedStorageClusterStepBase struct {
	wfengine.StepAction
	Resource *v1.MPDCluster
	Service  *service.SharedStorageClusterService
	Model    *domain.SharedStorageCluster
}

func (*SharedStorageClusterStepBase) DoStep

func (*SharedStorageClusterStepBase) Init

func (s *SharedStorageClusterStepBase) Init(ctx map[string]interface{}, logger logr.Logger) error

func (*SharedStorageClusterStepBase) Output

func (s *SharedStorageClusterStepBase) Output(logger logr.Logger) map[string]interface{}

Jump to

Keyboard shortcuts

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