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 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 (*State) IsResourcesDestroyed ¶
func (*State) SetResourcesDestroyed ¶
type StaticMastersDestroyer ¶
func NewStaticMastersDestroyer ¶
func NewStaticMastersDestroyer(c *ssh.Client, ips []NodeIP) *StaticMastersDestroyer
func (*StaticMastersDestroyer) DestroyCluster ¶
func (d *StaticMastersDestroyer) DestroyCluster(ctx context.Context, autoApprove bool) error
Click to show internal directories.
Click to hide internal directories.