Documentation
¶
Index ¶
Constants ¶
View Source
const ( // None of cluster addresses are blocked in target cluster. StatusUnblocked = BlackholeStatus("unblocked") // All cluster addresses are blocked in target cluster. StatusBlocked = BlackholeStatus("blocked") // Some of cluster addresses are blocked in target cluster. StatusPartlyBlocked = BlackholeStatus("partly-blocked") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlackholeStatus ¶
type BlackholeStatus string
type BlockedCluster ¶
type BlockedCluster struct { Context string NodeAddresses []string APIServerAddresses []string RouteAddresses []string // contains filtered or unexported fields }
func NewBlockedCluster ¶
func NewBlockedCluster(config *api.Config, context string) (*BlockedCluster, error)
func (*BlockedCluster) AllAddresses ¶
func (c *BlockedCluster) AllAddresses() []string
AllAddresses return sorted list of uniqe cluster address that must be blocked on the target cluster.
func (*BlockedCluster) Inspect ¶
func (c *BlockedCluster) Inspect() error
type ClusterStatus ¶
type ClusterStatus struct { Valid bool Nodes map[string]BlackholeStatus }
type Command ¶
type Command struct { Cluster *BlockedCluster Targets []*TargetCluster // contains filtered or unexported fields }
func NewCommand ¶
func (*Command) BlockCluster ¶
func (*Command) ClusterStatus ¶
func (c *Command) ClusterStatus() (map[string]*ClusterStatus, error)
func (*Command) UnblockCluster ¶
type Progress ¶ added in v0.2.0
type Progress struct {
// contains filtered or unexported fields
}
func NewProgress ¶ added in v0.2.0
NewProgress return a new progress indicator.
func (*Progress) SetDescription ¶ added in v0.2.0
SetDescription changes the description.
type TargetCluster ¶
type TargetCluster struct { Context string NodeNames []string // contains filtered or unexported fields }
func NewTargetCluster ¶
func NewTargetCluster(config *api.Config, context string) (*TargetCluster, error)
func (*TargetCluster) Inspect ¶
func (c *TargetCluster) Inspect() error
Click to show internal directories.
Click to hide internal directories.