Versions in this module Expand all Collapse all v0 v0.2.0 Dec 12, 2023 Changes in this version + type Progress struct + func NewProgress(descripiton string, tasks uint, out io.Writer) *Progress + func (p *Progress) Add(completed uint) + func (p *Progress) Clear() + func (p *Progress) SetDescription(desciption string) + func (p *Progress) SetTasks(tasks uint) v0.1.0 Dec 9, 2023 Changes in this version + const StatusBlocked + const StatusPartlyBlocked + const StatusUnblocked + func Execute() + type BlackholeStatus string + type BlockedCluster struct + APIServerAddresses []string + Context string + NodeAddresses []string + RouteAddresses []string + func NewBlockedCluster(config *api.Config, context string) (*BlockedCluster, error) + func (c *BlockedCluster) AllAddresses() []string + func (c *BlockedCluster) Inspect() error + type ClusterStatus struct + Nodes map[string]BlackholeStatus + Valid bool + type Command struct + Cluster *BlockedCluster + Targets []*TargetCluster + func NewCommand(blockedContext string, targetContexts []string, kubeconfig string) (*Command, error) + func (c *Command) BlockCluster() error + func (c *Command) ClusterStatus() (map[string]*ClusterStatus, error) + func (c *Command) InspectClusters() error + func (c *Command) UnblockCluster() error + type Result struct + Context string + Err error + Node string + Routes sets.Set[string] + type TargetCluster struct + Context string + NodeNames []string + func NewTargetCluster(config *api.Config, context string) (*TargetCluster, error) + func (c *TargetCluster) Inspect() error