Documentation ¶
Index ¶
- func GetAndSetRoster(log logr.Logger, hostConns []*HostConn, policy *as.ClientPolicy, ...) error
- func GetClusterNamespaces(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn) (map[string][]string, error)
- func GetInfoOnHosts(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn, cmd string) (map[string]InfoResult, error)
- func GetQuiescedNodes(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn) ([]string, error)
- func InfoQuiesce(log logr.Logger, policy *aero.ClientPolicy, ...) error
- func InfoQuiesceUndo(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn) error
- func IsClusterAndStable(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn) (bool, error)
- func IsUpgrade(fromVersion, toVersion string) (bool, error)
- func IsValidUpgrade(fromVersion, toVersion string) error
- func ParseInfoIntoMap(str, del, sep string) (map[string]string, error)
- func SetMigrateFillDelay(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn, ...) error
- func ValidateSCClusterState(log logr.Logger, hostConns []*HostConn, policy *as.ClientPolicy, ...) error
- type ASConn
- func (asc *ASConn) AlumniReset(aerospikePolicy *aero.ClientPolicy) error
- func (asc *ASConn) RunInfo(aerospikePolicy *aero.ClientPolicy, command ...string) (map[string]string, error)
- func (asc *ASConn) TipClearHostname(aerospikePolicy *aero.ClientPolicy, address string, heartbeatPort int) error
- func (asc *ASConn) TipHostname(aerospikePolicy *aero.ClientPolicy, address string, heartbeatPort int) error
- type HostConn
- type InfoResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAndSetRoster ¶
func GetClusterNamespaces ¶
func GetClusterNamespaces(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn) (map[string][]string, error)
GetClusterNamespaces gets the cluster namespaces
func GetInfoOnHosts ¶ added in v1.2.0
func GetInfoOnHosts(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn, cmd string) (map[string]InfoResult, error)
func GetQuiescedNodes ¶
func GetQuiescedNodes(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn) ([]string, error)
GetQuiescedNodes returns a list of node hostIDs of all nodes that are pending_quiesce=true.
func InfoQuiesce ¶
func InfoQuiesce(log logr.Logger, policy *aero.ClientPolicy, allHosts, selectedHosts []*HostConn, removedNamespaces []string) error
InfoQuiesce quiesce hosts.
func InfoQuiesceUndo ¶
InfoQuiesceUndo revert the effects of quiesce on the next recluster event
func IsClusterAndStable ¶
func IsClusterAndStable(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn) (bool, error)
IsClusterAndStable returns true if the cluster formed by the set of hosts is stable.
func IsValidUpgrade ¶
IsValidUpgrade validates fromVersion and toVersion for all upgrade/downgrade restrictions
func ParseInfoIntoMap ¶
ParseInfoIntoMap parses info string into a map.
func SetMigrateFillDelay ¶
func SetMigrateFillDelay(log logr.Logger, policy *aero.ClientPolicy, allHosts []*HostConn, migrateFillDelay int) error
SetMigrateFillDelay sets the given migrate-fill-delay on all the given cluster nodes
Types ¶
type ASConn ¶
type ASConn struct { Log logr.Logger AerospikeHostName string // host name of the machine to connect through aerospike AerospikeTLSName string // tls name of the aerospike connection AerospikePort int // aerospike port to connect to }
func (*ASConn) AlumniReset ¶
func (asc *ASConn) AlumniReset(aerospikePolicy *aero.ClientPolicy) error
AlumniReset runs services alumni reset
func (*ASConn) RunInfo ¶
func (asc *ASConn) RunInfo( aerospikePolicy *aero.ClientPolicy, command ...string, ) (map[string]string, error)
RunInfo runs info command on given host
func (*ASConn) TipClearHostname ¶
func (asc *ASConn) TipClearHostname( aerospikePolicy *aero.ClientPolicy, address string, heartbeatPort int, ) error
TipClearHostname runs tip clear
func (*ASConn) TipHostname ¶
func (asc *ASConn) TipHostname( aerospikePolicy *aero.ClientPolicy, address string, heartbeatPort int, ) error
TipHostname runs tip clear
type HostConn ¶
HostConn has all parameters to connect to an aerospike host and the machine.
func NewHostConn ¶
NewHostConn returns a new HostConn