actions

package
v0.54.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ActionIDLogField is the log field name for action ID.
	// This field is used in backend to detect actions ID in logs.
	ActionIDLogField = "id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionHandler

type ActionHandler interface {
	Handle(ctx context.Context, action *castai.ClusterAction) error
}

type ApproveCSRHandler

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

func NewApproveCSRHandler

func NewApproveCSRHandler(log logrus.FieldLogger, clientset kubernetes.Interface) *ApproveCSRHandler

func (*ApproveCSRHandler) Handle

func (h *ApproveCSRHandler) Handle(ctx context.Context, action *castai.ClusterAction) error

type ChartRollbackHandler

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

func NewChartRollbackHandler

func NewChartRollbackHandler(log logrus.FieldLogger, helm helm.Client, version string) *ChartRollbackHandler

func (*ChartRollbackHandler) Handle

type ChartUninstallHandler

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

func NewChartUninstallHandler

func NewChartUninstallHandler(log logrus.FieldLogger, helm helm.Client) *ChartUninstallHandler

func (*ChartUninstallHandler) Handle

type ChartUpsertHandler

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

func NewChartUpsertHandler

func NewChartUpsertHandler(log logrus.FieldLogger, helm helm.Client) *ChartUpsertHandler

func (*ChartUpsertHandler) Handle

func (c *ChartUpsertHandler) Handle(ctx context.Context, action *castai.ClusterAction) error

type CheckNodeDeletedHandler

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

func NewCheckNodeDeletedHandler

func NewCheckNodeDeletedHandler(log logrus.FieldLogger, clientset kubernetes.Interface) *CheckNodeDeletedHandler

func (*CheckNodeDeletedHandler) Handle

type CheckNodeStatusHandler

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

func NewCheckNodeStatusHandler

func NewCheckNodeStatusHandler(log logrus.FieldLogger, clientset kubernetes.Interface) *CheckNodeStatusHandler

func (*CheckNodeStatusHandler) Handle

type CreateEventHandler

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

func NewCreateEventHandler

func NewCreateEventHandler(log logrus.FieldLogger, clientset kubernetes.Interface) *CreateEventHandler

func (*CreateEventHandler) Close

func (h *CreateEventHandler) Close() error

func (*CreateEventHandler) Handle

func (h *CreateEventHandler) Handle(ctx context.Context, action *castai.ClusterAction) error

type CreateHandler

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

func NewCreateHandler

func NewCreateHandler(log logrus.FieldLogger, client dynamic.Interface) *CreateHandler

func (*CreateHandler) Handle

func (h *CreateHandler) Handle(ctx context.Context, action *castai.ClusterAction) error

type DeleteHandler

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

func NewDeleteHandler

func NewDeleteHandler(log logrus.FieldLogger, client dynamic.Interface) *DeleteHandler

func (*DeleteHandler) Handle

func (h *DeleteHandler) Handle(ctx context.Context, action *castai.ClusterAction) error

type DeleteNodeHandler

type DeleteNodeHandler struct {
	DrainNodeHandler
	// contains filtered or unexported fields
}

func NewDeleteNodeHandler

func NewDeleteNodeHandler(log logrus.FieldLogger, clientset kubernetes.Interface) *DeleteNodeHandler

func (*DeleteNodeHandler) Handle

func (h *DeleteNodeHandler) Handle(ctx context.Context, action *castai.ClusterAction) error

type DisconnectClusterHandler

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

func NewDisconnectClusterHandler

func NewDisconnectClusterHandler(log logrus.FieldLogger, client kubernetes.Interface) *DisconnectClusterHandler

func (*DisconnectClusterHandler) Handle

type DrainNodeHandler

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

func NewDrainNodeHandler

func NewDrainNodeHandler(log logrus.FieldLogger, clientset kubernetes.Interface, castNamespace string) *DrainNodeHandler

func (*DrainNodeHandler) Handle

func (h *DrainNodeHandler) Handle(ctx context.Context, action *castai.ClusterAction) error

type PatchHandler

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

func NewPatchHandler

func NewPatchHandler(log logrus.FieldLogger, client dynamic.Interface) *PatchHandler

func (*PatchHandler) Handle

func (h *PatchHandler) Handle(ctx context.Context, action *castai.ClusterAction) error

type PatchNodeHandler

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

func NewPatchNodeHandler

func NewPatchNodeHandler(log logrus.FieldLogger, clientset kubernetes.Interface) *PatchNodeHandler

func (*PatchNodeHandler) Handle

func (h *PatchNodeHandler) Handle(ctx context.Context, action *castai.ClusterAction) error

type SendAKSInitDataHandler

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

func NewSendAKSInitDataHandler

func NewSendAKSInitDataHandler(log logrus.FieldLogger, client castai.CastAIClient) *SendAKSInitDataHandler

func (*SendAKSInitDataHandler) Handle

Directories

Path Synopsis
Package mock_actions is a generated GoMock package.
Package mock_actions is a generated GoMock package.

Jump to

Keyboard shortcuts

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