Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminClient ¶
type AdminClient interface { // GetStatus gets the database's status GetStatus() (*fdbtypes.FoundationDBStatus, error) // ConfigureDatabase sets the database configuration ConfigureDatabase(configuration fdbtypes.DatabaseConfiguration, newDatabase bool) error // ExcludeProcesses starts evacuating processes so that they can be removed // from the database. ExcludeProcesses(addresses []fdbtypes.ProcessAddress) error // IncludeProcesses removes processes from the exclusion list and allows // them to take on roles again. IncludeProcesses(addresses []fdbtypes.ProcessAddress) error // GetExclusions gets a list of the addresses currently excluded from the // database. GetExclusions() ([]fdbtypes.ProcessAddress, error) // CanSafelyRemove checks whether it is safe to remove processes from the // cluster. // // The list returned by this method will be the addresses that are *not* // safe to remove. CanSafelyRemove(addresses []fdbtypes.ProcessAddress) ([]fdbtypes.ProcessAddress, error) // KillProcesses restarts processes KillProcesses(addresses []fdbtypes.ProcessAddress) error // ChangeCoordinators changes the coordinator set ChangeCoordinators(addresses []fdbtypes.ProcessAddress) (string, error) // GetConnectionString fetches the latest connection string. GetConnectionString() (string, error) // VersionSupported reports whether we can support a cluster with a given // version. VersionSupported(version string) (bool, error) // GetProtocolVersion determines the protocol version that is used by a // version of FDB. GetProtocolVersion(version string) (string, error) // StartBackup starts a new backup. StartBackup(url string, snapshotPeriodSeconds int) error // StopBackup stops a backup. StopBackup(url string) error // PauseBackups pauses the backups. PauseBackups() error // ResumeBackups resumes the backups. ResumeBackups() error // ModifyBackup modifies the configuration of the backup. ModifyBackup(int) error // GetBackupStatus gets the status of the current backup. GetBackupStatus() (*fdbtypes.FoundationDBLiveBackupStatus, error) // StartRestore starts a new restore. StartRestore(url string, keyRanges []fdbtypes.FoundationDBKeyRange) error // GetRestoreStatus gets the status of the current restore. GetRestoreStatus() (string, error) // Close shuts down any resources for the client once it is no longer // needed. Close() error // GetCoordinatorSet returns a set of the current coordinators. GetCoordinatorSet() (map[string]struct{}, error) // SetKnobs sets the knobs that should be used for the commandline call. SetKnobs([]string) }
AdminClient describes an interface for running administrative commands on a cluster
type LockClient ¶
type LockClient interface { // Disabled determines whether the locking is disabled. Disabled() bool // TakeLock attempts to acquire a lock. TakeLock() (bool, error) // AddPendingUpgrades registers information about which process groups are // pending an upgrade to a new version. AddPendingUpgrades(version v1beta1.FdbVersion, processGroupIDs []string) error // GetPendingUpgrades returns the stored information about which process // groups are pending an upgrade to a new version. GetPendingUpgrades(version v1beta1.FdbVersion) (map[string]bool, error) // ClearPendingUpgrades clears any stored information about pending // upgrades. ClearPendingUpgrades() error // GetDenyList retrieves the current deny list from the database. GetDenyList() ([]string, error) // UpdateDenyList updates the deny list to match a list of entries. UpdateDenyList(locks []v1beta1.LockDenyListEntry) error }
LockClient provides a client for getting locks on operations for a cluster.
Click to show internal directories.
Click to hide internal directories.