imageprepullcontroller

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImagePrePullNodeFSM

func NewImagePrePullNodeFSM(taskName, nodeName string) *fsm.FSM

func NewImagePrePullTaskFSM

func NewImagePrePullTaskFSM(taskName string) *fsm.FSM

Types

type ImagePrePullController

type ImagePrePullController struct {
	sync.Mutex
	*controller.BaseController
}

func NewImagePrePullController

func NewImagePrePullController(messageChan chan util.TaskMessage) (*ImagePrePullController, error)

func (*ImagePrePullController) GetNodeStatus

func (ndc *ImagePrePullController) GetNodeStatus(name string) ([]v1alpha1.TaskStatus, error)

func (*ImagePrePullController) ReportNodeStatus

func (ndc *ImagePrePullController) ReportNodeStatus(taskID, nodeID string, event fsm.Event) (api.State, error)

func (*ImagePrePullController) ReportTaskStatus

func (ndc *ImagePrePullController) ReportTaskStatus(taskID string, event fsm.Event) (api.State, error)

func (*ImagePrePullController) StageCompleted

func (ndc *ImagePrePullController) StageCompleted(taskID string, state api.State) bool

func (*ImagePrePullController) Start

func (ndc *ImagePrePullController) Start() error

func (*ImagePrePullController) UpdateNodeStatus

func (ndc *ImagePrePullController) UpdateNodeStatus(name string, nodeStatus []v1alpha1.TaskStatus) error

Jump to

Keyboard shortcuts

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