clusterworkflow

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CreateNodePoolLabelSetActivityName = "create-node-pool-label-set"
View Source
const DeleteClusterActivityName = "delete-cluster"
View Source
const DeleteClusterWorkflowName = "delete-cluster"
View Source
const DeleteNodePoolLabelSetActivityName = "delete-node-pool-label-set"
View Source
const RemoveClusterFromGroupActivityName = "remove-cluster-from-group"
View Source
const SetClusterStatusActivityName = "set-cluster-status"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterGroupManager

type ClusterGroupManager interface {
	RemoveClusterFromGroup(ctx context.Context, clusterID uint) error
}

type CreateNodePoolLabelSetActivity

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

func NewCreateNodePoolLabelSetActivity

func NewCreateNodePoolLabelSetActivity(
	dynamicClientFactory DynamicClientFactory,
	namespace string,
) CreateNodePoolLabelSetActivity

NewCreateNodePoolLabelSetActivity returns a new CreateNodePoolLabelSetActivity.

func (CreateNodePoolLabelSetActivity) Execute

type CreateNodePoolLabelSetActivityInput

type CreateNodePoolLabelSetActivityInput struct {
	ClusterID   uint
	RawNodePool cluster.NewRawNodePool
}

type DeleteClusterActivity

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

func MakeDeleteClusterActivity

func MakeDeleteClusterActivity(clusterDeleter cluster.Deleter) DeleteClusterActivity

func (DeleteClusterActivity) Execute

type DeleteClusterActivityInput

type DeleteClusterActivityInput struct {
	ClusterID uint
	Force     bool
}

type DeleteClusterWorkflow

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

func NewDeleteClusterWorkflow

func NewDeleteClusterWorkflow(v2IntegratedServiceEnabled bool) *DeleteClusterWorkflow

func (*DeleteClusterWorkflow) Execute

type DeleteClusterWorkflowInput

type DeleteClusterWorkflowInput struct {
	ClusterID uint
	Force     bool
}

type DeleteNodePoolLabelSetActivity

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

func NewDeleteNodePoolLabelSetActivity

func NewDeleteNodePoolLabelSetActivity(
	dynamicClientFactory DynamicClientFactory,
	namespace string,
) DeleteNodePoolLabelSetActivity

NewDeleteNodePoolLabelSetActivity returns a new DeleteNodePoolLabelSetActivity.

func (DeleteNodePoolLabelSetActivity) Execute

type DeleteNodePoolLabelSetActivityInput

type DeleteNodePoolLabelSetActivityInput struct {
	ClusterID    uint
	NodePoolName string
}

type DynamicClientFactory

type DynamicClientFactory interface {
	// FromClusterID creates a dynamic Kubernetes client for a cluster from a cluster ID.
	FromClusterID(ctx context.Context, clusterID uint) (dynamic.Interface, error)
}

DynamicClientFactory returns a dynamic Kubernetes client.

type RemoveClusterFromGroupActivity

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

func MakeRemoveClusterFromGroupActivity

func MakeRemoveClusterFromGroupActivity(clusterGroupManager ClusterGroupManager) RemoveClusterFromGroupActivity

func (RemoveClusterFromGroupActivity) Execute

type RemoveClusterFromGroupActivityInput

type RemoveClusterFromGroupActivityInput struct {
	ClusterID uint
}

type SetClusterStatusActivity

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

func NewSetClusterStatusActivity

func NewSetClusterStatusActivity(store cluster.Store) SetClusterStatusActivity

func (SetClusterStatusActivity) Execute

type SetClusterStatusActivityInput

type SetClusterStatusActivityInput struct {
	ClusterID     uint
	Status        string
	StatusMessage string
}

Jump to

Keyboard shortcuts

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