destroy

package
v0.0.0-...-d2dd387 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDestroyer

type ClusterDestroyer struct {
	PhasedExecutionContext phases.DefaultPhasedExecutionContext

	CommanderMode bool
	CommanderUUID uuid.UUID
	// contains filtered or unexported fields
}

func NewClusterDestroyer

func NewClusterDestroyer(params *Params) (*ClusterDestroyer, error)

func (*ClusterDestroyer) DestroyCluster

func (d *ClusterDestroyer) DestroyCluster(ctx context.Context, autoApprove bool) error

func (*ClusterDestroyer) GetMasterNodesIPs

func (d *ClusterDestroyer) GetMasterNodesIPs(ctx context.Context) ([]NodeIP, error)

type DeckhouseDestroyer

type DeckhouseDestroyer struct {
	DeckhouseDestroyerOptions
	// contains filtered or unexported fields
}

func NewDeckhouseDestroyer

func NewDeckhouseDestroyer(sshClient *ssh.Client, state *State, opts DeckhouseDestroyerOptions) *DeckhouseDestroyer

func (*DeckhouseDestroyer) DeleteResources

func (g *DeckhouseDestroyer) DeleteResources(ctx context.Context, cloudType string) error

func (*DeckhouseDestroyer) GetKubeClient

func (g *DeckhouseDestroyer) GetKubeClient(ctx context.Context) (*client.KubernetesClient, error)

func (*DeckhouseDestroyer) StopProxy

func (g *DeckhouseDestroyer) StopProxy()

func (*DeckhouseDestroyer) UnlockConverge

func (g *DeckhouseDestroyer) UnlockConverge(fullUnlock bool)

type DeckhouseDestroyerOptions

type DeckhouseDestroyerOptions struct {
	CommanderMode bool
	CommanderUUID uuid.UUID
}

type Destroyer

type Destroyer interface {
	DestroyCluster(ctx context.Context, autoApprove bool) error
}

type NodeIP

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

type Params

type Params struct {
	NodeInterface          node.Interface
	StateCache             dhctlstate.Cache
	OnPhaseFunc            phases.DefaultOnPhaseFunc
	PhasedExecutionContext phases.DefaultPhasedExecutionContext

	SkipResources bool

	CommanderMode bool
	CommanderUUID uuid.UUID
	*commander.CommanderModeParams

	TerraformContext *tf.TerraformContext
}

type State

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

func NewDestroyState

func NewDestroyState(stateCache state.Cache) *State

func (*State) Clean

func (s *State) Clean()

func (*State) IsResourcesDestroyed

func (s *State) IsResourcesDestroyed() (bool, error)

func (*State) SetResourcesDestroyed

func (s *State) SetResourcesDestroyed() error

type StaticMastersDestroyer

type StaticMastersDestroyer struct {
	SSHClient *ssh.Client
	IPs       []NodeIP
}

func NewStaticMastersDestroyer

func NewStaticMastersDestroyer(c *ssh.Client, ips []NodeIP) *StaticMastersDestroyer

func (*StaticMastersDestroyer) DestroyCluster

func (d *StaticMastersDestroyer) DestroyCluster(ctx context.Context, autoApprove bool) error

Jump to

Keyboard shortcuts

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